Skip to content

Commit

Permalink
13.2.0
Browse files Browse the repository at this point in the history
- adds forceUseContentPlayerForAdsOniOS setting
- updates to OM Web SDK 1.4.12
- updates to hls.js 1.5.4
- updates dependencies
  • Loading branch information
radiantmediaplayer committed Feb 12, 2024
1 parent 2af926b commit 102d27d
Show file tree
Hide file tree
Showing 96 changed files with 30,621 additions and 27,756 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "eslint:recommended",
"ignorePatterns": [
"externals/hls/*",
"externals/omweb-js-1.4.2/*",
"externals/omweb-js-1.4.12/*",
"src/assets/*",
"dist/*",
"test/lib/*"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ Once rmp-vast is loaded on your page you can create a new rmp-vast instance as f
- `params.vpaidSettings.desiredBitrate: Number` Default: 500. In kbps.
- `params.useHlsJS: Boolean` Enables rendering of HLS creatives with hls.js in rmp-vast. Default: false. BETA feature.
- `params.debugHlsJS: Boolean` Enables debugging of HLS creatives with hls.js in rmp-vast. Default: false. BETA feature.
- `params.forceUseContentPlayerForAds: Boolean` Forces player to use content player for ads - on Apple devices we may have a need to set useContentPlayerForAds differently based on content playback type (native vs. MSE playback). Default: false.
- `params.forceUseContentPlayerForAds: Boolean` Forces player to use content player for ads - this may be needed on OTT platforms with limited resources available. Default: false. Note that this is automatically set to true for iOS due to platform restrictions. See `forceUseContentPlayerForAdsOniOS` below.
- `params.forceUseContentPlayerForAdsOniOS: Boolean` Forces player to use content player for ads on iOS. This is enabled by default due to platform restrictions. With the introduction of Managed Media Source API on iOS 17.1, it becomes however possible to use 2 different players, 1 for content and 1 for advertisement. Default: true.
- `params.omidSupport: Boolean` Enables OMID (OM Web SDK) support in rmp-vast. Default: false. Refer to the [AdVerifications OM Web SDK](#adverifications-om-web-sdk) section for more information.
- `params.omidAllowedVendors: Array` List of allowed vendors for ad verification. Vendors not listed will be rejected. Default: [].
- `params.omidUnderEvaluation: Boolean` When debugging set this parameter to true. Default: false.
Expand Down Expand Up @@ -505,7 +506,7 @@ rmpVast.on("adstarted", function () {
## AdVerifications OM Web SDK
rmp-vast supports AdVerifications through the [IAB OM Web SDK](https://iabtechlab.com/standards/open-measurement-sdk/). Our implementation is based on IAB GitHub [Open-Measurement-JSClients](https://github.com/InteractiveAdvertisingBureau/Open-Measurement-JSClients) and sports OM Web SDK version 1.3.37
rmp-vast supports AdVerifications through the [IAB OM Web SDK](https://iabtechlab.com/standards/open-measurement-sdk/). Our implementation is based on IAB GitHub [Open-Measurement-JSClients](https://github.com/InteractiveAdvertisingBureau/Open-Measurement-JSClients) and sports OM Web SDK version 1.4.12
- This feature needs to be activated through `omidSupport: true` setting
- You need to add ./externals/omweb-js-X.X.X/Service/omweb-v1.js and ./externals/omweb-js-X.X.X/Session-Client/omid-session-client-v1.js to your page through a script tag
Expand Down
4 changes: 2 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link rel="stylesheet" href="./css/app.css">
<script src="../externals/hls/hls.min.js"></script>
<script src="../externals/omweb-js-1.4.2/Service/omweb-v1.js"></script>
<script src="../externals/omweb-js-1.4.2/Session-Client/omid-session-client-v1.js"></script>
<script src="../externals/omweb-js-1.4.12/Service/omweb-v1.js"></script>
<script src="../externals/omweb-js-1.4.12/Session-Client/omid-session-client-v1.js"></script>
<script src="../dist/rmp-vast.js"></script>
</head>

Expand Down
4 changes: 2 additions & 2 deletions app/omid.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<title>RmpVast - Example</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
<script src="../externals/omweb-js-1.4.2/Service/omweb-v1.js"></script>
<script src="../externals/omweb-js-1.4.2/Session-Client/omid-session-client-v1.js"></script>
<script src="../externals/omweb-js-1.4.12/Service/omweb-v1.js"></script>
<script src="../externals/omweb-js-1.4.12/Session-Client/omid-session-client-v1.js"></script>
<script src="../dist/rmp-vast.js"></script>
</head>

Expand Down
21 changes: 12 additions & 9 deletions dist/rmp-vast.js
Original file line number Diff line number Diff line change
Expand Up @@ -15259,14 +15259,15 @@ var Utils = /*#__PURE__*/function () {
useHlsJS: false,
debugHlsJS: false,
forceUseContentPlayerForAds: false,
forceUseContentPlayerForAdsOniOS: true,
// OM SDK params
omidSupport: false,
omidAllowedVendors: [],
omidUnderEvaluation: false,
omidRunValidationScript: false,
omidAutoplay: false,
partnerName: 'rmp-vast',
partnerVersion: "13.1.1"
partnerVersion: "13.2.0"
};
this.params = defaultParams;
if (inputParams && _typeof(inputParams) === 'object') {
Expand Down Expand Up @@ -15407,13 +15408,6 @@ var Utils = /*#__PURE__*/function () {
this.adPod = false;
this.adPodLength = 0;
this.adSequence = 0;
// on iOS we use content player to play ads
// to avoid issues related to fullscreen management and autoplay
// as fullscreen on iOS is handled by the default OS player
if (ENV.isIos[0]) {
this.useContentPlayerForAds = true;
console.log("".concat(FW.consolePrepend, " vast player will be content player"), FW.consoleStyle, '');
}
}
}, {
key: "resetVariablesForNewLoadAds",
Expand Down Expand Up @@ -19364,7 +19358,16 @@ var RmpVast = /*#__PURE__*/function () {

// set useContentPlayerForAds if needed
if (this.params.forceUseContentPlayerForAds) {
console.log("".concat(FW.consolePrepend, " forceUseContentPlayerForAds enabled"), FW.consoleStyle, '');
console.log("".concat(FW.consolePrepend, " forceUseContentPlayerForAds enabled - vast player will be content player"), FW.consoleStyle, '');
this.useContentPlayerForAds = true;
}

// on iOS we use content player to play ads
// to avoid issues related to fullscreen management and autoplay
// With the introduction of Managed Media Source API on iOS 17.1, it becomes however possible to use 2 different
// players, 1 for content and 1 for advertisement
if (ENV.isIos[0] && this.params.forceUseContentPlayerForAdsOniOS) {
console.log("".concat(FW.consolePrepend, " forceUseContentPlayerForAdsOniOS enabled - vast player will be content player for iOS"), FW.consoleStyle, '');
this.useContentPlayerForAds = true;
}
console.log("".concat(FW.consolePrepend, " Filtered params follow"), FW.consoleStyle, '');
Expand Down
2 changes: 1 addition & 1 deletion dist/rmp-vast.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rmp-vast.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rmp-vast.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 102d27d

Please # to comment.