Skip to content

Commit

Permalink
Making the tests work cross-browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
etianen committed Jul 9, 2011
1 parent 3a786d9 commit 57be4c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/html5media/html5media.js
Expand Up @@ -326,9 +326,8 @@
url: fixPath(html5media.flowplayerControlsSwf),
display: "none"
}
replacement.style.height = 0;
}
// HACK: The Flowplayer audio plugin will autoplay clips and never stop if autobuffering is enabled.
playlist.slice(-1)[0].autoBuffering = false;
}
// Load the Flowplayer.
var config = {
Expand Down
12 changes: 12 additions & 0 deletions src/test.html
Expand Up @@ -40,6 +40,18 @@ <h2>MP4 with no fallback</h2>
<video class="video" src="demo/video.mp4" poster="demo/poster.jpg" width="854" height="480" controls preload></video>
<audio class="audio" src="demo/audio.mp3" controls preload></audio>

<h2>No preloading</h2>
<video class="video" src="demo/video.mp4" poster="demo/poster.jpg" width="854" height="480" controls></video>
<audio class="audio" src="demo/audio.mp3" controls></audio>

<h2>No controls</h2>
<video class="video" src="demo/video.mp4" poster="demo/poster.jpg" width="854" height="480" preload></video>
<audio class="audio" src="demo/audio.mp3" preload autoplay></audio>

<h2>Looping</h2>
<video class="video" src="demo/video.mp4" poster="demo/poster.jpg" width="854" height="480" controls preload loop></video>
<audio class="audio" src="demo/audio.mp3" controls preload loop></audio>

</section>
<footer>
<p>Developed by <a href="http://www.etianen.com/" title="Developed by Dave Hall">Dave Hall</a>.</p>
Expand Down

0 comments on commit 57be4c9

Please sign in to comment.