Skip to content

Commit

Permalink
fix: Change source for examples to something that supports https. (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbuso committed Mar 27, 2018
1 parent 2158ba0 commit 6810fb3
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples/advanced/index.html
Expand Up @@ -64,9 +64,9 @@

<div id="ima-sample-videoplayer">
<video id="content_video" class="video-js vjs-default-skin"
poster = "../posters/android.png" controls preload="auto"
poster = "../posters/bbb_poster.jpg" controls preload="auto"
width="640" height="360">
<source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"
<source src="//commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
type="video/mp4" ></source>
</video>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/autoplay/index.html
Expand Up @@ -25,9 +25,9 @@

<body>
<video id="content_video" class="video-js vjs-default-skin"
poster = "../posters/android.png" controls preload="auto" width="640"
poster = "../posters/bbb_poster.jpg" controls preload="auto" width="640"
height="360" autoplay muted playsinline>
<source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"
<source src="//commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
type="video/mp4" ></source>
</video>
<script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions examples/multiple/index.html
Expand Up @@ -26,19 +26,19 @@
<body>
<div>
<video id="content_video" class="video-js vjs-default-skin"
poster = "../posters/android.png" controls preload="auto" width="640"
poster = "../posters/bbb_poster.jpg" controls preload="auto" width="640"
height="360">
<source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"
<source src="//commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
type="video/mp4" ></source>
</video>
<button onclick="pause('content_video');">Pause Ad</button>
</div>
<br>
<div>
<video id="content_video1" class="video-js vjs-default-skin"
poster = "../posters/android.png" controls preload="auto" width="640"
poster = "../posters/stock_poster.jpg" controls preload="auto" width="640"
height="360">
<source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"
<source src="//s0.2mdn.net/4253510/google_ddm_animation_480P.mp4"
type="video/mp4" ></source>
</video>
<button onclick="pause('content_video1');">Pause Ad</button>
Expand Down
8 changes: 5 additions & 3 deletions examples/playlist/ads.js
Expand Up @@ -46,9 +46,11 @@ var Ads = function() {
adsManagerLoadedCallback: this.adsManagerLoadedCallback.bind(this)
};

this.contents = ['http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4',
'http://rmcdn.2mdn.net/Demo/html5/output.mp4'];
this.posters = ['../posters/android.png', '../posters/dfp.png'];
this.contents =
['//commondatastorage.googleapis.com/gtv-videos-bucket/sample/' +
'BigBuckBunny.mp4',
'//s0.2mdn.net/4253510/google_ddm_animation_480P.mp4'];
this.posters = ['../posters/bbb_poster.jpg', '../posters/stock_poster.png'];
this.currentContent = 0;

this.console = document.getElementById('ima-sample-console');
Expand Down
Binary file removed examples/playlist/img/android_preview.jpg
Binary file not shown.
Binary file added examples/playlist/img/bbb_preview.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed examples/playlist/img/doubleclick_preview.jpg
Binary file not shown.
Binary file added examples/playlist/img/stock_preview.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions examples/playlist/index.html
Expand Up @@ -57,9 +57,9 @@

<div id="ima-sample-videoplayer">
<video id="content_video" class="video-js vjs-default-skin"
poster="../posters/android.png" controls preload="auto" width="640"
poster="../posters/bbb_poster.jpg" controls preload="auto" width="640"
height="360">
<source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"
<source src="//commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
type="video/mp4" ></source>
</video>
</div>
Expand All @@ -78,12 +78,12 @@
<div id="ima-sample-playlistDiv">
<div class="ima-sample-playlistItem">
<img id="0" class="ima-sample-playlistImg"
src="img/android_preview.jpg" />
src="img/bbb_preview.jpg" />
Video 1
</div>
<div class="ima-sample-playlistItem">
<img id="1" class="ima-sample-playlistImg"
src="img/doubleclick_preview.jpg" />
src="img/stock_preview.jpg" />
Video 2
</div>
</div>
Expand Down
Binary file removed examples/posters/android.png
Binary file not shown.
Binary file added examples/posters/bbb_poster.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed examples/posters/dfp.png
Binary file not shown.
Binary file added examples/posters/stock_poster.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/simple/index.html
Expand Up @@ -25,9 +25,9 @@

<body>
<video id="content_video" class="video-js vjs-default-skin"
poster = "../posters/android.png" controls preload="auto" width="640"
poster = "../posters/bbb_poster.jpg" controls preload="auto" width="640"
height="360">
<source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"
<source src="//commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
type="video/mp4" ></source>
</video>
<script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/style.css
Expand Up @@ -40,7 +40,7 @@ footer {
}

#ima-sample-placeholder {
background-image: url("posters/android.png");
background-image: url("posters/poster.jpg");
width: 640px;
height: 360px;
}
Expand Down

0 comments on commit 6810fb3

Please sign in to comment.