Skip to content

Commit

Permalink
11.0.2
Browse files Browse the repository at this point in the history
- improves transition between ads in an ad pod
- improves test for iOS
  • Loading branch information
radiantmediaplayer committed Jul 3, 2023
1 parent 8c54c4a commit b59a8ba
Show file tree
Hide file tree
Showing 62 changed files with 2,426 additions and 2,085 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ The following methods provide context information for the rmp-vast instance:
- `getEnvironment()`: return `Object`, data about the environment that rmp-vast runs into.
- `getVastPlayer()`: return `HTMLMediaElement|null`, the VAST player video tag.
- `getContentPlayer()`: return `HTMLMediaElement|null`, the content player video tag.
- `getIsUsingContentPlayerForAds()`: return `Boolean`, on iOS and macOS Safari the VAST player is the content player. This is to avoid fullscreen management and autoplay issues and to provide a consistent user experience. This method will return true for iOS and macOS Safari, false otherwise.
- `getIsUsingContentPlayerForAds()`: return `Boolean`, on iOS Safari the VAST player is the content player. This is to avoid fullscreen management and autoplay issues and to provide a consistent user experience. This method will return true for iOS Safari, false otherwise.
[Back to documentation sections](#documentation-sections)
Expand Down
20 changes: 7 additions & 13 deletions app/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-container" id="rmp" style="width: 320px; height: 180px;">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline muted
controls>
Expand All @@ -23,18 +23,12 @@
var id = 'rmp';
var container = document.getElementById(id);
var ADTAG;
//var ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/iab/vast4_2/Ad_Verification-test.xml';
//var ADTAG = 'https://raw.githubusercontent.com/InteractiveAdvertisingBureau/VAST_Samples/master/VAST%204.2%20Samples/Inline_Linear_Tag-test.xml';
//ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/vpaid-3-js-linear.xml';
//ADTAG = 'https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_ad_samples&sz=640x480&cust_params=sample_ct%3Dlinearvpaid2js&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=' + Date.now();
ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/inline-linear-1.xml';
/*ADTAG = '<?xml version="1.0" encoding="UTF-8"?><VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0"><Ad id="000000001"><InLine><AdSystem>RMP</AdSystem><AdTitle>Inline linear video ad (3 sec)</AdTitle><Description><![CDATA[Test adTag for Radiant Media Player - inline linear VAST 3 video ad (3 sec)]]></Description><Error><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=error&errorcode=[ERRORCODE]]]></Error><Impression><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=impression&currenttime=[CONTENTPLAYHEAD]&cachebusting=[CACHEBUSTING]&asseturi=[ASSETURI]]]></Impression><Creatives><Creative id="00000000001" sequence="1"><Linear><Duration>00:00:03</Duration><TrackingEvents><Tracking event="start"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=start]]></Tracking><Tracking event="firstQuartile"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=firstQuartile]]></Tracking><Tracking event="midpoint"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=midpoint]]></Tracking><Tracking event="thirdQuartile"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=thirdQuartile]]></Tracking><Tracking event="complete"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=complete]]></Tracking><Tracking event="mute"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=mute]]></Tracking><Tracking event="unmute"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=unmute]]></Tracking><Tracking event="rewind"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=rewind]]></Tracking><Tracking event="pause"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=pause]]></Tracking><Tracking event="resume"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=resume]]></Tracking><Tracking event="fullscreen"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=fullscreen]]></Tracking><Tracking event="creativeView"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=creativeView]]></Tracking><Tracking event="exitFullscreen"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=exitFullscreen]]></Tracking><Tracking event="acceptInvitationLinear"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=acceptInvitationLinear]]></Tracking><Tracking event="closeLinear"><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=closeLinear]]></Tracking></TrackingEvents><VideoClicks><ClickThrough><![CDATA[https://www.radiantmediaplayer.com]]></ClickThrough><ClickTracking><![CDATA[https://www.radiantmediaplayer.com/vast/tags/ping.gif?type=clickTracking]]></ClickTracking></VideoClicks><MediaFiles><MediaFile id="RMP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="524" scalable="true" maintainAspectRatio="true"><![CDATA[https://www.radiantmediaplayer.com/vast/mp4s/ad-3s.mp4]]></MediaFile></MediaFiles></Linear></Creative></Creatives></InLine></Ad></VAST>';*/
/*ADTAG = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=' + Date.now();
ADTAG = 'https://playertest.longtailvideo.com/vast-30s-ad.xml';*/
var rmpVast = new RmpVast(id, { showControlsForVastPlayer: true, vastXmlInput: true });
/*rmpVast.on('adloaded', function () {
rmpVast.stopAds();
});*/
rmpVast.loadAds(ADTAG);

var rmpVast = new RmpVast(id);
//rmpVast.loadAds(ADTAG);
</script>

<video src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline muted controls autoplay>
</video>
</body>
Loading

0 comments on commit b59a8ba

Please sign in to comment.