mirror of
https://github.com/videojs/video.js.git
synced 2025-01-27 11:22:06 +02:00
Created "Behaviors" and reorgainzed functions based on them.
This commit is contained in:
parent
004fb9ee13
commit
c211869e6a
@ -114,7 +114,6 @@ Set options when setting up the videos. The defaults are shown here.
|
|||||||
controlsHiding: true, // Hide controls when mouse is not over the video
|
controlsHiding: true, // Hide controls when mouse is not over the video
|
||||||
defaultVolume: 0.85, // Will be overridden by user's last volume if available
|
defaultVolume: 0.85, // Will be overridden by user's last volume if available
|
||||||
flashVersion: 9, // Required flash version for fallback
|
flashVersion: 9, // Required flash version for fallback
|
||||||
linksHiding: true, // Hide download links when video is supported
|
|
||||||
flashIsDominant: false // Always use Flash when available
|
flashIsDominant: false // Always use Flash when available
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
VideoJS.DOMReady(function(){
|
VideoJS.DOMReady(function(){
|
||||||
var myPlayer = VideoJS.setup("example_video_1", {
|
var myPlayer = VideoJS.setup("example_video_1", {
|
||||||
controlsHiding: false,
|
controlsHiding: true,
|
||||||
controlsBelow: false,
|
controlsBelow: false,
|
||||||
showControlsAtStart: true
|
showControlsAtStart: true
|
||||||
});
|
});
|
||||||
myPlayer.activateControl(document.getElementById("scrub"), "loadProgressBar");
|
myPlayer.activateElement(document.getElementById("scrub"), "loadProgressBar");
|
||||||
var vid = document.getElementById("example_video_1"),
|
var vid = document.getElementById("example_video_1"),
|
||||||
attrTable = document.getElementById("attributes"),
|
attrTable = document.getElementById("attributes"),
|
||||||
attrNames = ["error", "networkState", "readyState", "preload", "buffered",
|
attrNames = ["error", "networkState", "readyState", "preload", "buffered",
|
||||||
@ -76,6 +76,7 @@
|
|||||||
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
|
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
|
||||||
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm; codecs="vp8, vorbis"' />
|
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm; codecs="vp8, vorbis"' />
|
||||||
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg; codecs="theora, vorbis"' />
|
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg; codecs="theora, vorbis"' />
|
||||||
|
<track kind="subtitles" src="../demo-subtitles.srt" srclang="en-US" label="English"></track>
|
||||||
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
|
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
|
||||||
<object id="flash_fallback_1" class="vjs-flash-fallback" width="640" height="264" type="application/x-shockwave-flash"
|
<object id="flash_fallback_1" class="vjs-flash-fallback" width="640" height="264" type="application/x-shockwave-flash"
|
||||||
data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
|
data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user