Skip to content

Commit

Permalink
Fixed some error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
moay committed Sep 21, 2017
1 parent 257b0ee commit 203a701
Show file tree
Hide file tree
Showing 6 changed files with 365 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/afterglow.min.js

Large diffs are not rendered by default.

Binary file modified dist/afterglow.zip
Binary file not shown.
33 changes: 33 additions & 0 deletions sandbox/releasetest_101.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>afterglow development sandbox</title>
<!-- SCRIPTS -->
<script type="text/javascript" src="../dist/afterglow.min.js"></script>

<style>
body{
max-width:1000px;
margin: 0 auto;
padding:0 50px 50px;
}
</style>

</head>
<body>
<h1>This is just a sandbox for development.</h1>

<!-- LIGHTBOX TEST -->
<!-- LOCAL TEST -->
<!-- LOCAL TEST -->
<h2>Youtube opened in lightbox</h2>
<a href="#video4" class="afterglow">Open the lightbox</a>
<video id="video4" width="1920" height="1080" data-youtube-id="HgbHx4CY300" preload="none"></video>


<h2>Vimeo opened in lightbox</h2>
<a href="#video5" class="afterglow">Open the lightbox</a>
<video id="video5" width="1920" height="1080" data-vimeo-id="191169455" preload="none"></video>
</body>
</html>
7 changes: 7 additions & 0 deletions sandbox/test_101.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,12 @@ <h2>Local video, single source, with poster and bound play event</h2>
<a class="afterglow" href="#video1"> Test 2</a>
<video id="video1" width="1920" height="1080" poster="http://afterglowplayer.com/sandbox/video/Snapshots/afterglow_local.jpg" preload="none" data-youtube-id="HgbHx4CY300"></video>
<video id="video2" class="afterglow" width="1920" height="1080" poster="http://afterglowplayer.com/sandbox/video/Snapshots/afterglow_local.jpg" preload="none" src="http://afterglowplayer.com/sandbox/video/MP4/afterglow_local.mp4"></video>




<h2>Vimeo opened in lightbox</h2>
<a href="#video5" class="afterglow">Open the lightbox</a>
<video id="video5" width="1920" height="1080" data-vimeo-id="191169455" preload="none"></video>
</body>
</html>
10 changes: 6 additions & 4 deletions vendor/videojs/plugins/Youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ THE SOFTWARE. */
var Youtube = videojs.extend(Tech, {

constructor: function(options, ready) {
if (typeof document !== 'undefined'){
loadScript('https://www.youtube.com/iframe_api', apiLoaded);
injectCss();
}
loadScript('https://www.youtube.com/iframe_api', apiLoaded);

Tech.call(this, options, ready);

this.setPoster(options.poster);
Expand Down Expand Up @@ -739,6 +737,10 @@ THE SOFTWARE. */

Youtube.apiReadyQueue = [];

if (typeof document !== 'undefined'){
injectCss();
}

// Older versions of VJS5 doesn't have the registerTech function
if (typeof videojs.registerTech !== 'undefined') {
videojs.registerTech('Youtube', Youtube);
Expand Down
317 changes: 316 additions & 1 deletion vendor/videojs/plugins/videojs-vimeo.js

Large diffs are not rendered by default.

0 comments on commit 203a701

Please sign in to comment.