video-js

所属分类:JavaScript/JQuery
开发工具:JavaScript
文件大小:28KB
下载次数:93
上传日期:2012-01-17 00:33:02
上 传 者nc.gd.gz@gmail.com
说明:  网页播放器 支持格式:wma/wmv/mp3/mov/rm
(web player for wma/wmv/mp3/mov/rm)

文件列表:
demo-subtitles.srt (161, 2010-11-14)
video.js (67773, 2010-12-10)
video-js.css (14971, 2010-12-10)
skins\hu.css (6255, 2010-11-22)
skins\tube.css (6146, 2010-11-22)
skins\vim.css (6214, 2010-11-22)
.DS_Store (6148, 2010-12-10)
demo.html (4240, 2010-11-22)
skins (0, 2010-10-21)

VideoJS - [HTML5 Video Player](http://videojs.com) ================================================== Version 2.0.2 View [VideoJS.com](http://videojs.com) for a demo and overview. VideoJS is an HTML5 video player that uses the HTML5 video tag built into modern browsers, and uses javascript to add custom controls, new functionality, and to fix cross browser bugs. The base of VideoJS is Kroc Camen's [Video for Everybody](http://camendesign.com/code/video_for_everybody), which is a video embed code that falls back to a Flash video player or download links for browsers and devices that don't support HTML5 video. View demo.html for an example of how to use it. Originally based on [this tutorial](http://blog.steveheffernan.com/2010/04/how-to-build-an-html5-video-player/). Contributors (Github Username) ------------------------------ heff, dz0ny, sentientbit, tvdeyen, brandonarbini, gordonbrander, Shraymonks, albertogasparin, sandaru1, nicholasbs, majornista, Fredust85, @wonderboymusic Getting Started --------------- ### Step 1: Include VideoJS Javascript and CSS files in your page. Change the src/href to the appropriate location on your server. ### Step 2: Add the VideoJS setup code to your page or another script. Must run after the VideoJS javascript file has been included ### Step 3: Add the VideoJS embed code to your page (grab the latest version for demo.html). Change the video and image files to your own. You can even swap out the Flash Fallback for your own, just maintain the "vjs-flash-fallback" class on the object. I know, seems like a lot of HTML, but it's super compatible. [Check it](http://camendesign.com/code/video_for_everybody/test.html).

Download Video: MP4, WebM, Ogg
HTML5 Video Player by VideoJS

Storing a Reference to the Player(s) ------------------------------------ You can set up the player(s) in a way that allows you to access it later, and control things like the video playback. In this case, the setup has to happen after the DOM has been loaded. You can use any library's DOM Ready method, or the one built into VideoJS. ### Using a Video's ID or Element VideoJS.DOMReady(function(){ var myPlayer = VideoJS.setup("example_video_1"); }); ### Using an array of video elements/IDs Note: It returns an array of players VideoJS.DOMReady(function(){ var myManyPlayers = VideoJS.setup(["example_video_1", "example_video_2", video3Element]); }); ### All videos on the page with the "video-js" class VideoJS.DOMReady(function(){ var myManyPlayers = VideoJS.setup("All"); }); ### After you have references to your players you can...(example) VideoJS.DOMReady(function(){ var myPlayer = VideoJS.setup("example_video_1"); myPlayer.play(); // Starts playing the video for this player. }); Setting Options --------------- Set options when setting up the videos. The defaults are shown here. VideoJS.setupAllWhenReady({ controlsBelow: false, // Display control bar below video instead of in front of controlsHiding: true, // Hide controls when mouse is not over the video defaultVolume: 0.85, // Will be overridden by user's last volume if available flashPlayerVersion: 9, // Required flash version for fallback }); ### Or as the second option of VideoJS.setup VideoJS.DOMReady(function(){ var myPlayer = VideoJS.setup("example_video_1", { // Same options }); }); Coming Next ----------- - API to Flash fallback Changelog --------- 2.0.2 (2010-12-10) - Feature: Rewrote and optimized subtitle code. - Feature: Protecting against volume ranges outside of 1 and 0. - Fix: Bug in Safari for Mac OS 10.5 (Leopard) that was breaking fullscreen. 2.0.1 (2010-11-22) - Fix: Issue with big play button when multiple videos are on the page. - Fix: Optimized play progress tracking. - Fix: Optimized buffer progress checking. - Fix: Firefox not showing Flash fallback object. 2.0.0 (2010-11-21) - Feature: Created "behaviors" concept for adding behaviors to elements - Feature: Switched back to divs for controls, for more portable styles - Feature: Created playerFallbackOrder array option. ["html5", "flash", "links"] - Feature: Created playerType concept, for initializing different platforms - Feature: Added play button for Android - Feature: Added spinner for iPad (non-fullscreen) - Feature: Split into multiple files for easier development - Feature: Combined VideoJS & _V_ into the same variable to reduce confusion - Fix: Checking for m3u8 files (Apple HTTP Streaming) - Fix: Catching error on localStorage full that safari seems to randomly throw - Fix: Scrubbing to end doesn't trigger onEnded 1.1.5 (2010-11-09) - Feature: Switched to track method for setting subtitles. Now works like spec. - Feature: Created "players" concept for defining fallbacks and fallback order - Fix: Android playback bug. - Fix: Massive reorganization of code to make easier to navigate 1.1.4 (2010-11-06) - Feature: Added loading spinner. - Feature: Improved styles loaded checking. - Feature: Added volume() function to get and set volume through the player. - Fix: Fix issue where FF would loop video in background when ended. - Fix: Bug in Chrome that shows poster & plays audio if you set currentTime too quickly. - Fix: Bug in Safari where waiting is triggered and shows spinner when not needed - Fix: Updated to show links if only unplayable sources and no Flash. - Fix: Issue where if play button was loaded after play, it wouldn't hide. 1.1.3 (2010-10-19) - Feature: Width/Height functions for resizing the player - Feature: Made initial click & hold trigger new value on progress and volume - Feature: Made controls not hide when hovering over them - Feature: Added big play button as default starting control. - Fix: Removed trailing comma that was breaking IE7 - Fix: Removed some vars from global scope - Fix: Changed a document.onmousemove to an eventListener to prevent conflicts - Fix: Added a unique ID to FlowPlayer demo object to fix a FlowPlayer bug. Thanks @emirpprime. - Fix: Safari error on unloaded video 1.1.2 (2010-09-20) - Added a fix for the poster bug in iPad/iPhone - Added more specificity to styles 1.1.1 (2010-09-14) - First Formally Versioned Release 1.0.0 (2010-05-18) - First released

近期下载者

相关文件


收藏者