1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-13 10:32:26 +02:00

Created "Behaviors" and reorgainzed functions based on them.

This commit is contained in:
Steve Heffernan 2010-11-12 15:04:46 -08:00
parent 004fb9ee13
commit c211869e6a
4 changed files with 504 additions and 417 deletions

View File

@ -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
defaultVolume: 0.85, // Will be overridden by user's last volume if available
flashVersion: 9, // Required flash version for fallback
linksHiding: true, // Hide download links when video is supported
flashIsDominant: false // Always use Flash when available
});

View File

@ -9,11 +9,11 @@
<script type="text/javascript">
VideoJS.DOMReady(function(){
var myPlayer = VideoJS.setup("example_video_1", {
controlsHiding: false,
controlsHiding: true,
controlsBelow: false,
showControlsAtStart: true
});
myPlayer.activateControl(document.getElementById("scrub"), "loadProgressBar");
myPlayer.activateElement(document.getElementById("scrub"), "loadProgressBar");
var vid = document.getElementById("example_video_1"),
attrTable = document.getElementById("attributes"),
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.webm" type='video/webm; codecs="vp8, 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. -->
<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">

View File

@ -219,7 +219,7 @@ div.vjs-big-play-button span {
---------------------------------------------------------*/
/* CSS Spinners by Kilian Valkhof - http://kilianvalkhof.com/2010/css-xhtml/css3-loading-spinners-without-images/ */
.vjs-spinner { display: none; position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; z-index: 1; margin: -50px 0 0 -50px;
/* Scaling makes the circles look smoother. */
/* Scaling makes the circles look smoother. */
transform: scale(0.5); -webkit-transform:scale(0.5); -moz-transform:scale(0.5);
}
/* Spinner circles */

913
video.js

File diff suppressed because it is too large Load Diff