Skip to content

Commit

Permalink
15.0.1
Browse files Browse the repository at this point in the history
- revert admuted event to advolumemuted event
- revert adunmuted event to advolumeunmuted event
- updates dependencies
- adds notes about manual tests
  • Loading branch information
radiantmediaplayer committed Apr 18, 2024
1 parent 47ad1e1 commit 39470fa
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 16,345 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Once rmp-vast is loaded on your page you can create a new rmp-vast instance as f
- `params.vastXmlInput: Boolean` Instead of a VAST URI, we provide directly to rmp-vast VAST XML. Default: false. See test/spec/inlineLinearSpec/raw-xml-input.html for an example.
- `params.enableSimid: Boolean` Enables SIMID support or not. Default: true.
- `params.enableVpaid: Boolean` DEPRECATED. Enables VPAID support or not. Default: true.
- `params.vpaidSettings: Object` DEPRECATED. Information required to properly display VPAID creatives - note that it is up to the parent application of rmp-vast to provide those informations - below values are default (see test/spec/vpaidSpec/ for examples):
- `params.vpaidSettings: Object` DEPRECATED. Information required to properly display VPAID creatives - note that it is up to the parent application of rmp-vast to provide those information - below values are default (see test/spec/vpaidSpec/ for examples):
- `params.vpaidSettings.width: Number` Default: 640.
- `params.vpaidSettings.height: Number` Default: 360.
- `params.vpaidSettings.viewMode: String` Default: 'normal'. Can be 'fullscreen' as well.
Expand Down Expand Up @@ -302,8 +302,8 @@ Available events are:
- `adpaused`
- `adresumed`
- `adtagstartloading`
- `admuted`
- `adunmuted`
- `advolumemuted`
- `advolumeunmuted`
- `advolumechanged`
- `adskipped`
- `adskippablestatechanged`
Expand Down Expand Up @@ -562,7 +562,7 @@ rmp-vast supports displaying outstream ads when parameter `outstream` is set to
## TypeScript support
Make sure to inluce ./types folder in your TypeScript configuration file and you can start using rmp-vast in a TypeScript environment. Note: the resulting .d.ts files are generated from JavaScript using JSDoc syntax.
Make sure to include ./types folder in your TypeScript configuration file and you can start using rmp-vast in a TypeScript environment. Note: the resulting .d.ts files are generated from JavaScript using JSDoc syntax.
## Contributing
Expand Down Expand Up @@ -595,7 +595,8 @@ For testing on macOS Safari use:
`npm run testSafari`
Before running `npm run test` make sure to update `TEST.pathToTest` in ./test/helpers/test.js with your local IP address. Running test on Android requires a [runnning adb server](https://developer.android.com/studio/command-line/adb.html).
Before running `npm run test` make sure to update `TEST.pathToTest` in ./test/helpers/test.js with your local IP address. Running test on Android requires a [running adb server](https://developer.android.com/studio/command-line/adb.html).
Also note some advanced tests require manual verification and are located in test/spec/manualSpec and need to be run manually in latest Chrome for desktop.
[Back to documentation sections](#documentation-sections)
Expand Down
1 change: 1 addition & 0 deletions app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ const _wireUI = function () {
'adexpandedchange',
'adremainingtimechange',
'advolumemuted',
'advolumeunmuted',
'advolumechanged',
'adcomplete',
'adskipped',
Expand Down
14 changes: 7 additions & 7 deletions dist/rmp-vast.js
Original file line number Diff line number Diff line change
Expand Up @@ -11286,7 +11286,7 @@ var Utils = /*#__PURE__*/function () {
omidAutoplay: false,
macros: new (map_default())(),
partnerName: 'rmp-vast',
partnerVersion: "15.0.0"
partnerVersion: "15.0.1"
};
this._rmpVast.params = defaultParams;
if (inputParams && _typeof(inputParams) === 'object') {
Expand Down Expand Up @@ -11625,8 +11625,8 @@ var Tracking = /*#__PURE__*/function () {
this._trackingApiEventMap.set('adviewable', 'viewable');
this._trackingApiEventMap.set('adviewundetermined', 'viewundetermined');
// Tracking Event Elements
this._trackingApiEventMap.set('admuted', 'mute');
this._trackingApiEventMap.set('adunmuted', 'unmute');
this._trackingApiEventMap.set('advolumemuted', 'mute');
this._trackingApiEventMap.set('advolumeunmuted', 'unmute');
this._trackingApiEventMap.set('adpaused', 'pause');
this._trackingApiEventMap.set('adresumed', 'resume');
this._trackingApiEventMap.set('adskipped', 'skip');
Expand Down Expand Up @@ -11777,9 +11777,9 @@ var Tracking = /*#__PURE__*/function () {
var muted = this._rmpVast.currentAdPlayer.muted;
var volume = this._rmpVast.currentAdPlayer.volume;
if (muted || volume === 0) {
this.dispatchTrackingAndApiEvent('admuted');
this.dispatchTrackingAndApiEvent('advolumemuted');
} else if (!muted && volume > 0) {
this.dispatchTrackingAndApiEvent('adunmuted');
this.dispatchTrackingAndApiEvent('advolumeunmuted');
}
this._rmpVast.rmpVastUtils.createApiEvent('advolumechanged');
}
Expand Down Expand Up @@ -14080,9 +14080,9 @@ var VpaidPlayer = /*#__PURE__*/function () {
}
if (typeof newVolume === 'number' && newVolume >= 0) {
if (this._vpaidCurrentVolume > 0 && newVolume === 0) {
this._rmpVast.rmpVastTracking.dispatchTrackingAndApiEvent('admuted');
this._rmpVast.rmpVastTracking.dispatchTrackingAndApiEvent('advolumemuted');
} else if (this._vpaidCurrentVolume === 0 && newVolume > 0) {
this._rmpVast.rmpVastTracking.dispatchTrackingAndApiEvent('adunmuted');
this._rmpVast.rmpVastTracking.dispatchTrackingAndApiEvent('advolumeunmuted');
}
this._vpaidCurrentVolume = newVolume;
this._rmpVast.rmpVastUtils.createApiEvent('advolumechanged');
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.

0 comments on commit 39470fa

Please sign in to comment.