1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-26 08:51:09 +02:00
Video.js - open source HTML5 video player
Go to file
David LaPalomento 875fc2ff32 Allow poster to be changed after init. Fixes #525
When poster() is called with a URL, fire a `posterchange` event to update the PosterImage source and update the video element attribute.

Trigger posterchange after updating the tech
Wait until the tech has updated its poster image before alerting components so they don't see the intermediate state in event handlers. Remove unused variable from PosterImage.createEl.

Don't create new img elements each time the poster is set on ie8
Create the img fallback for the poster during PosterImage initialization on ie8 so we can avoid having to check and possibly create it each time the src is set. Add a test to ensure that new elements are not appended to the poster component when the img fallback is in use and the src attribute is modified.

fixing a broken IE8 test, and adding a negative test, for poster switching.

modified the poster-switching test to accomodate IE8
added a negative test for an undefined poster

fixed the assertion message in the 'undefined' image case

fixed test breakage in Firefox and IE10 (quotes were not being handled properly in the test data)

testing:
ran the tests at the command line, and in Chrome, Firefox, IE8, IE10, Firefox and Safari
all passed
2013-11-25 14:49:49 -08:00
build Updated demo.html to have a subtitles example. Added demo to CDN. 2013-11-04 15:35:44 -08:00
docs Merge pull request #826 from dsteinbrunner/patch-3 2013-11-12 18:32:14 -08:00
sandbox Close GH-644: LESS for CSS. 2013-07-19 20:18:39 -07:00
src Allow poster to be changed after init. Fixes #525 2013-11-25 14:49:49 -08:00
test Allow poster to be changed after init. Fixes #525 2013-11-25 14:49:49 -08:00
.bunyipconfig.js.example First pass at automated multi-browser/device testing. closes #419 2013-04-12 16:51:04 -07:00
.editorconfig Added .editorconfig and travis CI badge 2012-12-11 14:33:42 -08:00
.gitignore Close GH-801: API Doc Generation 2. Fixes #747 2013-10-28 18:25:28 -07:00
.jshintrc Update grunt and jshint to lint the gruntfile and test files 2013-02-08 17:02:39 -05:00
.travis.yml Added Travis CI config, and also supporting package.json. 2012-12-10 18:51:48 -08:00
browsers.json First pass at automated multi-browser/device testing. closes #419 2013-04-12 16:51:04 -07:00
CHANGELOG.md Fixed changelog version 2013-11-04 16:15:15 -08:00
contrib.json Updated contrib.json to match new contribflow values 2013-05-31 09:50:16 -07:00
CONTRIBUTING.md Close GH-714: Added support for running tests with Karma. 2013-09-19 09:24:06 -07:00
Gruntfile.js Updated demo.html to have a subtitles example. Added demo to CDN. 2013-11-04 15:35:44 -08:00
LICENSE switched license over from LGPLv3 to Apache2 2013-04-21 20:36:44 -07:00
package.json Bump version to 4.3.0 2013-11-04 16:14:04 -08:00
README.md Added block quote to readme. 2013-07-19 10:47:30 -07:00

Video.js - HTML5 Video Player Build Status

Video.js is a web video player built from the ground up for an HTML5 world. It supports HTML5 and Flash video, as well as YouTube and Vimeo (through plugins). It supports video playback on desktops and mobile devices. This project was started mid 2010, and the player is now used on over 50,000 websites.

Visit videojs.com for an overview, download options, and instructions on how to use the player on your site.

Contributing

Video.js is a free and open source library, and we appreciate any help you're willing to give. Check out the contributing guide.

Building your own Video.js from source

To build your own custom version read the section on contributing code and "Building your own copy" in the contributing guide.

License

Video.js is licensed under the Apache License, Version 2.0. View the license file

Copyright 2013 Brightcove, Inc.