Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(VAST-39): Deploy demo on Github Pages #27

Merged
merged 34 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
67e35af
VAST-33 : refactor wip
kasty Mar 29, 2023
500ae3b
comment
kasty Mar 29, 2023
ec7f3f6
VAST-33 add nonlinear and companion
privaloops Mar 29, 2023
c97fa71
read multiple ads (WIP)
kasty Mar 29, 2023
4681fcd
VAST-33 add companions in provided slotId dom elements
privaloops Apr 3, 2023
e2e41c9
VAST-33 condition listeners for non linearCreative as linearCreative …
privaloops Apr 3, 2023
c8b6db8
VAST-33 don't use canplay event as it is triggered when autoplay is f…
privaloops Apr 3, 2023
d5daed1
VAST-33 remove unneeded console
privaloops Apr 3, 2023
f799aa3
VAST-33 watcher on bundle for demo page
privaloops Apr 4, 2023
ef41f4f
VAST-33 add some more VAST examples
privaloops Apr 4, 2023
6f1e458
VAST-33 adpods
privaloops Apr 4, 2023
67dd915
VAST-33 icons
kasty Apr 4, 2023
aa88eb3
VAST-33 macros
kasty Apr 4, 2023
add69dc
VAST-33 move big functions outside of the class
kasty Apr 4, 2023
8c0d58d
VAST-33 remove console
kasty Apr 4, 2023
39e5f41
VAST-33 ads verification
kasty Apr 4, 2023
32f0cc2
VAST-33 reuse domElements array
kasty Apr 4, 2023
a18849a
VAST-33 import Vast for static methods
kasty Apr 5, 2023
58cca39
VAST-33 vmap wip
kasty Apr 5, 2023
c2f5070
VAST-33 vmap WIP + eslint
kasty Apr 12, 2023
7baf32a
VAST-33 vmap midroll
kasty Apr 12, 2023
1391fd4
VAST-33 manage different offset format
kasty Apr 12, 2023
81e1447
VAST-33 clean
kasty Apr 12, 2023
b065618
VAST-33 add skip button
kasty Apr 12, 2023
c008361
VAST-33 fix ad timeout
kasty Apr 12, 2023
e45fe08
VAST-33 add ctaDiv to domElements array
kasty Apr 12, 2023
c212289
Add E2E tests and demo page 😍
privaloops Apr 13, 2023
52c2c44
add missing skip example
privaloops Apr 13, 2023
d3027ba
VAST-33 clean options and complete doc
kasty Apr 17, 2023
3c54dd7
Merge remote-tracking branch 'origin/feature/VAST-33' into feature/VA…
kasty Apr 17, 2023
fdefcda
VAST-33: fix timeout option bug
kasty Apr 18, 2023
1825b90
VAST-33: add macros for OMID
kasty Apr 18, 2023
b42e024
VAST-39 rename public folder to docs
privaloops Apr 19, 2023
c981e9f
Merge branch 'develop' into feature/VAST-39
privaloops May 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions docs/demo.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/demo.js.map

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions docs/fixtures/vmap-inline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<vmap:VMAP version="1.0" xmlns:vmap="http://www.iab.net/videosuite/vmap" >
<vmap:AdBreak breakId="8661748b-b25a-4569-b03e-9dd33a43b28c" breakType="linear" timeOffset="start">
<vmap:AdSource allowMultipleAds="true" followRedirects="true" id="-1675117733">
<vmap:VASTAdData>
<VAST version="3.0" xmlns="http://www.iab.net/videosuite/vast">
<Ad id="8661748b-b25a-4569-b03e-9dd33a43b28c" sequence="1">
<Wrapper>
<AdSystem>SMART AdServer</AdSystem>
<VASTAdTagURI><![CDATA[https://www.arte.tv/static/artevpv7/vast/vast.xml]]></VASTAdTagURI>
<Error><![CDATA[https://example.com/error]]></Error>
<Impression><![CDATA[https://example.com/impression]]></Impression>
<Creatives/>
</Wrapper>
</Ad>
</VAST>
</vmap:VASTAdData>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak breakId="67d32666-1613-4a8d-b7f9-34a8064770b3" breakType="linear" timeOffset="50%">
<vmap:AdSource allowMultipleAds="true" followRedirects="true" id="907710148">
<vmap:VASTAdData>
<VAST version="3.0" xmlns="http://www.iab.net/videosuite/vast">
<Ad id="67d32666-1613-4a8d-b7f9-34a8064770b3" sequence="1">
<Wrapper>
<AdSystem>SMART AdServer</AdSystem>
<VASTAdTagURI><![CDATA[https://www.arte.tv/static/artevpv7/vast/vast.xml]]></VASTAdTagURI>
<Error><![CDATA[https://example.com/error]]></Error>
<Impression><![CDATA[https://example.com/impression]]></Impression>
<Creatives/>
</Wrapper>
</Ad>
</VAST>
</vmap:VASTAdData>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak breakId="485e36e3-50ed-4723-bf3a-826aa6d6e52f" breakType="linear" timeOffset="end">
<vmap:AdSource allowMultipleAds="true" followRedirects="true" id="1243253271">
<vmap:VASTAdData>
<VAST version="3.0" xmlns="http://www.iab.net/videosuite/vast">
<Ad id="485e36e3-50ed-4723-bf3a-826aa6d6e52f" sequence="1" xmlns="http://www.iab.net/videosuite/vast">
<Wrapper>
<AdSystem>SMART AdServer</AdSystem>
<VASTAdTagURI><![CDATA[https://www.arte.tv/static/artevpv7/vast/vast.xml]]></VASTAdTagURI>
<Error><![CDATA[https://example.com/error]]></Error>
<Impression><![CDATA[https://example.com/impression]]></Impression>
<Creatives/>
</Wrapper>
</Ad>
</VAST>
</vmap:VASTAdData>
</vmap:AdSource>
</vmap:AdBreak>
</vmap:VMAP>
30 changes: 30 additions & 0 deletions docs/fixtures/vmap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll">
<vmap:AdSource id="preroll-ads" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
https://opencdn.b-cdn.net/pub/5.0/e-v-1/preroll.xml
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:00:03.123" breakType="linear" breakId="midroll">
<vmap:AdSource id="midroll-ads" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
https://www.arte.tv/static/artevpv7/vast/vast.xml
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:00:06.000" breakType="linear" breakId="midroll">
<vmap:AdSource id="midroll-ads" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
https://www.arte.tv/static/artevpv7/vast/vast.xml
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="end" breakType="linear" breakId="postroll">
<vmap:AdSource id="postroll" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
https://opencdn.b-cdn.net/pub/5.0/e-v-1/postroll.xml
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
</vmap:VMAP>
44 changes: 44 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<head>
<link href="https://vjs.zencdn.net/8.0.4/video-js.css" rel="stylesheet" />
</head>

<body>
<video id="my-video" class="video-js" controls preload="auto" width="640" height="360">
<source src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_30MB.mp4"
type="video/mp4" />
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a
web browser that
<a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>
<p><select name='vastUrl' id="vastUrl" onchange="document.location.href = '?vastUrl=' + this.value">
<option value=''>Select an adType</option>
<option
value='https://raw.githubusercontent.com/InteractiveAdvertisingBureau/VAST_Samples/master/VAST%204.2%20Samples/Inline_Simple.xml'>
Inline</option>
<option
value='https://raw.githubusercontent.com/InteractiveAdvertisingBureau/VAST_Samples/master/VAST%204.2%20Samples/Wrapper_Tag-test.xml'>
Wrapper</option>
<option value='https://www.arte.tv/static/artevpv7/vast/vast_skip.xml'>Skip</option>
<option
value='https://raw.githubusercontent.com/InteractiveAdvertisingBureau/VAST_Samples/master/VAST%204.2%20Samples/IconClickFallbacks.xml'>
Icon</option>
<option
value='https://raw.githubusercontent.com/InteractiveAdvertisingBureau/VAST_Samples/master/VAST%204.2%20Samples/Inline_Companion_Tag-test.xml'>
Companion</option>
<option
value='https://raw.githubusercontent.com/dailymotion/vast-client-js/b5a72b04226a6880da1e00191033edb150f6b956/test/vastfiles/wrapper-ad-pod.xml'>
Adpod</option>
<option
value='https://raw.githubusercontent.com/dailymotion/vast-client-js/b5a72b04226a6880da1e00191033edb150f6b956/test/vastfiles/empty-no-ad.xml'>
Empty VAST</option>
<option
value='https://raw.githubusercontent.com/InteractiveAdvertisingBureau/VAST_Samples/master/VAST%204.0%20Samples/Ad_Verification-test.xml'>
Ad Verification</option>
</select></p>
<script src="demo.js"></script>
<script>
document.getElementById('vastUrl').value = encodeURI(getURLParameter('vastUrl'));
</script>
</body>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"build:cjs": "node ./esbuild.js -t commonjs",
"build:esm": "node ./esbuild.js -t es6",
"build:local": "yarn build && yalc push",
"bundle:demo": "esbuild ./src/demo.js --bundle --outfile=public/demo.js --minify --sourcemap",
"bundle:demo": "esbuild ./src/demo.js --bundle --outfile=docs/demo.js --minify --sourcemap",
"build": "yarn build:cjs && yarn build:esm",
"lint": "eslint ./src",
"start": "concurrently \"serve -l 3000 public\" \"watch --interval=1 'yarn bundle:demo' ./src/\"",
"start": "concurrently \"serve -l 3000 docs\" \"watch --interval=1 'yarn bundle:demo' ./src/\"",
"test": "npm run test:e2e",
"test:e2e": "npm run start && wait-on http://localhost:3000/ & cypress run --browser chrome",
"test:open": "cypress open",
Expand Down