-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- updates to rmp-connection 2.1.0 - removes some dead CSS from IAB sample SIMID integration - adds simid-selector test - updates dependencies
- Loading branch information
1 parent
d8d3a74
commit f4fa63a
Showing
12 changed files
with
290 additions
and
193 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "rmp-vast", | ||
"version": "14.0.0", | ||
"version": "14.0.1", | ||
"author": "Radiant Media Player <[email protected]>", | ||
"description": "A client-side JavaScript solution to load, parse and display VAST resources (advertising)", | ||
"repository": { | ||
|
@@ -33,9 +33,9 @@ | |
}, | ||
"homepage": "https://www.radiantmediaplayer.com/rmp-vast/app/", | ||
"devDependencies": { | ||
"@babel/core": "^7.23.9", | ||
"@babel/plugin-transform-runtime": "^7.23.9", | ||
"@babel/preset-env": "^7.23.9", | ||
"@babel/core": "^7.24.0", | ||
"@babel/plugin-transform-runtime": "^7.24.0", | ||
"@babel/preset-env": "^7.24.0", | ||
"babel-loader": "^9.1.3", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"css-loader": "^6.10.0", | ||
|
@@ -52,16 +52,16 @@ | |
"stylelint": "^16.2.1", | ||
"stylelint-config-standard": "^36.0.0", | ||
"stylelint-webpack-plugin": "^5.0.0", | ||
"terser": "^5.28.1", | ||
"terser": "^5.29.1", | ||
"terser-webpack-plugin": "^5.3.10", | ||
"typescript": "^5.3.3", | ||
"typescript": "^5.4.2", | ||
"webpack": "^5.90.3", | ||
"webpack-cli": "^5.1.4", | ||
"webpack-dev-server": "^5.0.2" | ||
"webpack-dev-server": "^5.0.3" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime-corejs3": "^7.23.9", | ||
"@types/node": "^20.11.20", | ||
"@babel/runtime-corejs3": "^7.24.0", | ||
"@types/node": "^20.11.26", | ||
"core-js": "^3.36.0", | ||
"regenerator-runtime": "^0.14.1", | ||
"whatwg-fetch": "^3.6.20" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | ||
<title>simid-selector</title> | ||
|
||
<!-- jasmine --> | ||
<link rel="shortcut icon" type="image/png" href="../../lib/jasmine-5.1.2/jasmine_favicon.png"> | ||
<link rel="stylesheet" href="../../lib/jasmine-5.1.2/jasmine.css"> | ||
<script src="../../lib/jasmine-5.1.2/jasmine.js"></script> | ||
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script> | ||
<script src="../../lib/jasmine-5.1.2/boot0.js"></script> | ||
<script src="../../lib/jasmine-5.1.2/boot1.js"></script> | ||
<link rel="stylesheet" href="../../../app/css/app.css"> | ||
|
||
<!-- rmp-vast --> | ||
<script src="../../../dist/rmp-vast.min.js"></script> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="rmp-container" id="rmp"> | ||
<div class="rmp-content"> | ||
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture> | ||
</video> | ||
</div> | ||
</div> | ||
<br> | ||
<p>To pass test pick an ad to watch.</p> | ||
<!-- spec file --> | ||
<script src="spec/simid-selector.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
const ADTAG = 'https://www.radiantmediaplayer.com/vast/tags/simid-selector.xml'; | ||
|
||
describe('Test for simid-selector', function () { | ||
|
||
const id = 'rmp'; | ||
const container = document.getElementById(id); | ||
const video = document.querySelector('.rmp-video'); | ||
const rmpVast = new RmpVast(id); | ||
const env = rmpVast.environment; | ||
video.muted = true; | ||
if (env.isAndroid[0] || env.isIos[0]) { | ||
container.style.width = '320px'; | ||
container.style.height = '180px'; | ||
} | ||
const title = document.getElementsByTagName('title')[0]; | ||
|
||
it('should load and play simid-selector', function (done) { | ||
let validSteps = 0; | ||
|
||
const _incrementAndLog = function (event) { | ||
validSteps++; | ||
if (event && event.type) { | ||
console.log(event.type); | ||
} | ||
}; | ||
|
||
rmpVast.on('adloaded', function (e) { | ||
_incrementAndLog(e); | ||
}); | ||
rmpVast.on('addurationchange', function (e) { | ||
_incrementAndLog(e); | ||
}); | ||
rmpVast.on('adstarted', function (e) { | ||
if (env.isAndroid[0] || env.isIos[0]) { | ||
rmpVast.resizeAd(320, 180, 'normal'); | ||
} | ||
_incrementAndLog(e); | ||
}); | ||
rmpVast.on('adtagstartloading', function (e) { | ||
_incrementAndLog(e); | ||
}); | ||
rmpVast.on('adtagloaded', function (e) { | ||
_incrementAndLog(e); | ||
}); | ||
rmpVast.on('addestroyed', function (e) { | ||
_incrementAndLog(e); | ||
let timeupdateCount = 0; | ||
video.addEventListener('timeupdate', function (e) { | ||
timeupdateCount++; | ||
if (timeupdateCount === 5) { | ||
_incrementAndLog(e); | ||
if (validSteps === 7) { | ||
expect(validSteps).toBe(7); | ||
title.textContent = 'Test completed'; | ||
done(); | ||
} | ||
} | ||
}); | ||
}); | ||
|
||
rmpVast.loadAds(ADTAG); | ||
}); | ||
|
||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.