Skip to content

Commit

Permalink
15.1.0
Browse files Browse the repository at this point in the history
- Adds support for using rmp-vast in Flutter apps for mobile with webview_flutter plugin
- Updates to eslint 9.3.0 and flat config
- Adds debugRawConsoleLogs setting to enable raw debug console logs for Flutter apps and legacy platforms
- Removes calls to Logger class for minified files
- Rewrites test to build CTRF report
- Adds test:patch script for patch releases
- Prints meaningful warning to console with production builds
- Moves tracking.js and utils.js files to src/js/helpers folder
  • Loading branch information
radiantmediaplayer committed May 30, 2024
1 parent 39470fa commit f96f209
Show file tree
Hide file tree
Showing 180 changed files with 23,817 additions and 4,620 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"corejs": 3,
"helpers": true,
"regenerator": true,
"version": "^7.21.4"
"version": "^7.24.6"
}
]
]
Expand Down
64 changes: 0 additions & 64 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MIT License
rmp-vast is released under MIT License.
Terms are outlined below (from opensource.org)

Copyright (c) 2015-2024 Radiant Media Player | https://www.radiantmediaplayer.com
Copyright (c) 2015-present Radiant Media Player | https://www.radiantmediaplayer.com

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A client-side JavaScript solution to load, parse, ping and display VAST resources (advertising).

It aims at implementing the [IAB VAST specification](https://iabtechlab.com/standards/vast/) for web-based environments (e.g. browser, Ionic, Electron, smart TV ...) where both HTML5 video and JavaScript are available. We support VAST 3 and VAST 4 up to VAST 4.3. VAST 2 support has been deprecated with rmp-vast 15 and we no longer test for VAST 2 tags.
It aims at implementing the [IAB VAST specification](https://iabtechlab.com/standards/vast/) for web-based environments (e.g. browser, Ionic, Flutter, Cordova, Electron, smart TV ...) where both HTML5 video and JavaScript are available. We support VAST 3 and VAST 4 up to VAST 4.3. VAST 2 support has been deprecated with rmp-vast 15 and we no longer test for VAST 2 tags.

rmp-vast comes as a compiled library (./dist/ folder) but it can also be imported as a ES2015 module. rmp-vast is written in ES2017.

Expand Down Expand Up @@ -144,19 +144,21 @@ We support VAST standard up to VAST 4.3, this includes:
Desktop means Windows 7+, macOS 10.11+, Linux (latest LTS Ubuntu).
#### WebViews (Ionic, Cordova, WebView)
#### WebViews (Ionic, Flutter, Cordova, WebView created from native code)
- Android 5+
- iOS 12+ (WKWebView)
With the announcement of Apple in december 2019, to remove support for UIWebView API by end 2020, we only support WKWebView API for iOS apps built with Cordova, Ionic or WebView. [See this blog post](https://www.radiantmediaplayer.com/blog/updating-ios-apps-for-wkwebview.html) to help you update to WKWebView API.
With the announcement of Apple in december 2019, to remove support for UIWebView API by end 2020, we only support WKWebView API for iOS apps built with Ionic, Flutter, Cordova or WebView created from native code. [See this blog post](https://www.radiantmediaplayer.com/blog/updating-ios-apps-for-wkwebview.html) to help you update to WKWebView API.
#### Smart TV & OTT (Native web, Cordova or WebView)
For Flutter apps we support using rmp-vast with [webview_flutter](https://pub.dev/packages/webview_flutter) plugin. See a guide for adding WebView to your [Flutter app here](https://codelabs.developers.google.com/codelabs/flutter-webview).
#### Smart TV & OTT (Native web, Cordova or WebView created from native code)
- Samsung Tizen 3+ apps
- LG webOS 3+ apps
- Electron 6+ apps
- Android TV 9+ apps with Cordova or WebView
- Android TV 9+ apps with Cordova or WebView created from native code
- Fire TV apps (Web Apps and Hybrid Apps) with fireOS 6+
[Back to documentation sections](#documentation-sections)
Expand Down Expand Up @@ -211,6 +213,7 @@ 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: true.
- `params.debugHlsJS: Boolean` Enables debugging of HLS creatives with hls.js in rmp-vast. Default: false.
- `params.debugRawConsoleLogs: Boolean` Enables raw debug console log for Flutter apps and legacy platforms. Default: false.
- `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 @@ -585,18 +588,10 @@ When your changes are ready for commit, build rmp-vast:
Before committing for a pull request - run test:
`npm run test`
For testing on Android use:
`npm run testAndroid`
For testing on macOS Safari use:
`npm run testSafari`
`npm run test:patch`
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.
Make sure the ctrf-chrome.json file in report/v${version} has all test passed - test manually for false negative.
Also note we test on Safari for macOS and Chrome for Android. Some more advanced tests require manual verification and are located in test/spec/manualSpec/ and should be run in latest Chrome for Windows|macOS|Linux.
[Back to documentation sections](#documentation-sections)
Expand Down
9 changes: 3 additions & 6 deletions app/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@
</div>
</div>
<script>
var id = 'vast-player';
const macrosMap = new Map();
macrosMap.set('CLIENTUA', encodeURIComponent('MyPlayer/1.0 rmp-vast/15.0.0'));
macrosMap.set('PLAYBACKMETHODS', 2);
const id = 'vast-player';
const params = {
showControlsForAdPlayer: true,
macros: macrosMap
debugRawConsoleLogs: true
};
var container = document.getElementById(id);
var ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/inline-linear-custom-macros.xml';
var ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/inline-linear-1.xml';
/*ADTAG = 'https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/simid&description_url=https%3A%2F%2Fdevelopers.google.com%2Finteractive-media-ads&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=' + Date.now();*/


Expand Down
Loading

0 comments on commit f96f209

Please sign in to comment.