Skip to content

Commit

Permalink
16.1.1
Browse files Browse the repository at this point in the history
- Updates .browserslistrc
- Removes disableRemotePlayback and disablePictureInPicture properties on video ad player as deprecated
  • Loading branch information
radiantmediaplayer committed Dec 17, 2024
1 parent f5050ec commit 937c241
Show file tree
Hide file tree
Showing 14 changed files with 2,905 additions and 4,940 deletions.
7 changes: 3 additions & 4 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Browsers that we support (woff2)
defaults
>0.3%
chrome 55
firefox 53
opera 42
ios 12
ios_saf 12
not ios_saf 11
safari 12
edge 15
samsung 9.2
not ie 11
not op_mini all
not kaios 2.5
not kaios 3
not and_qq 10.4
not dead
915 changes: 379 additions & 536 deletions dist/rmp-vast.js

Large diffs are not rendered by default.

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.

6,850 changes: 2,487 additions & 4,363 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rmp-vast",
"version": "16.1.0",
"version": "16.1.1",
"author": "Radiant Media Player <[email protected]>",
"description": "A client-side JavaScript solution to load, parse and display VAST resources (advertising)",
"repository": {
Expand Down Expand Up @@ -45,42 +45,42 @@
},
"homepage": "https://www.radiantmediaplayer.com/rmp-vast/app/",
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.25.3",
"@eslint/js": "^9.9.0",
"@stylistic/eslint-plugin": "^2.6.4",
"babel-loader": "^9.1.3",
"babel-plugin-polyfill-corejs3": "^0.10.6",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@eslint/js": "^9.17.0",
"@stylistic/eslint-plugin": "^2.12.1",
"babel-loader": "^9.2.1",
"babel-plugin-polyfill-corejs3": "^0.11.0",
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^7.1.2",
"eslint": "^9.9.0",
"eslint": "^9.17.0",
"eslint-webpack-plugin": "^4.2.0",
"globals": "^15.9.0",
"globals": "^15.13.0",
"handlebars": "^4.7.8",
"handlebars-loader": "^1.7.3",
"html-webpack-plugin": "^5.6.0",
"html-webpack-plugin": "^5.6.3",
"ip": "^2.0.1",
"less": "^4.2.0",
"less": "^4.2.1",
"less-loader": "^12.2.0",
"open": "^10.1.0",
"postcss-less": "^6.0.0",
"selenium-webdriver": "^4.23.0",
"selenium-webdriver": "^4.27.0",
"style-loader": "^4.0.0",
"stylelint": "^16.8.2",
"stylelint": "^16.12.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-webpack-plugin": "^5.0.1",
"terser": "^5.31.6",
"terser-webpack-plugin": "^5.3.10",
"typescript": "^5.5.4",
"webpack": "^5.93.0",
"terser": "^5.37.0",
"terser-webpack-plugin": "^5.3.11",
"typescript": "^5.7.2",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
"webpack-dev-server": "^5.2.0"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.25.0",
"@types/node": "^22.4.1",
"core-js-pure": "^3.38.0",
"@babel/runtime-corejs3": "^7.26.0",
"@types/node": "^22.10.2",
"core-js-pure": "^3.39.0",
"whatwg-fetch": "^3.6.20"
}
}
7 changes: 4 additions & 3 deletions src/js/players/ad-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ export default class AdPlayer {

this.#rmpVast.currentAdPlayer = this.#adPlayer = document.createElement('video');
Logger.printVideoEvents(this.#rmpVast.debugRawConsoleLogs, this.#adPlayer, 'ad');
// disable native UI cast/PiP for ad player
this.#adPlayer.disableRemotePlayback = true;
this.#adPlayer.disablePictureInPicture = true;
// disable native UI cast/PiP for ad player
// DEPRECATED - this is no longer necessary
//this.#adPlayer.disableRemotePlayback = true;
//this.#adPlayer.disablePictureInPicture = true;
this.#adPlayer.className = 'rmp-ad-vast-video-player';
if (this.#params.showControlsForAdPlayer) {
this.#adPlayer.controls = true;
Expand Down
4 changes: 1 addition & 3 deletions src/js/players/simid/simid_player.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,7 @@ export default class SimidPlayer {
const videoDimensions = this.getFullDimensions_(this.contentVideoElement_);
// Since the creative starts as hidden it will take on the
// video element dimensions, so tell the ad about those dimensions.
const creativeDimensions = this.isLinearAd_ ?
this.getFullDimensions_(this.contentVideoElement_) :
this.getNonlinearDimensions_();
const creativeDimensions = this.isLinearAd_ ? this.getFullDimensions_(this.contentVideoElement_) : this.getNonlinearDimensions_();

const environmentData = {
videoDimensions,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions types/js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,11 @@ export default class RmpVast {
/**
* @return {HTMLMediaElement|null}
*/
get adPlayer(): HTMLMediaElement;
get adPlayer(): HTMLMediaElement | null;
/**
* @return {HTMLMediaElement|null}
*/
get contentPlayer(): HTMLMediaElement;
get contentPlayer(): HTMLMediaElement | null;
/**
* @type {() => boolean}
*/
Expand Down
2 changes: 1 addition & 1 deletion types/js/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion types/js/players/ad-player.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion types/js/players/simid/simid_player.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 937c241

Please sign in to comment.