mirror of
https://github.com/videojs/video.js.git
synced 2025-11-06 09:19:15 +02:00
Merge branch 'stable'
This commit is contained in:
@@ -14,6 +14,11 @@ CHANGELOG
|
|||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
## 5.10.5 (2016-06-07)
|
||||||
|
* @gkatsev pinned dependencies to direct versions ([view](https://github.com/videojs/video.js/pull/3338))
|
||||||
|
* @gkatsev fixed minified vjs in ie8 when initialized with id string ([view](https://github.com/videojs/video.js/pull/3357))
|
||||||
|
* @IJsLauw fixed unhandled exception in deleting poster on ios7 ([view](https://github.com/videojs/video.js/pull/3337))
|
||||||
|
|
||||||
## 5.10.4 (2016-05-31)
|
## 5.10.4 (2016-05-31)
|
||||||
* Patch release to fix dist on npm
|
* Patch release to fix dist on npm
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "video.js",
|
"name": "video.js",
|
||||||
"description": "An HTML5 and Flash video player with a common API and skin for both.",
|
"description": "An HTML5 and Flash video player with a common API and skin for both.",
|
||||||
"version": "5.10.4",
|
"version": "5.10.5",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"videojs",
|
"videojs",
|
||||||
"html5",
|
"html5",
|
||||||
|
|||||||
16
package.json
16
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "video.js",
|
"name": "video.js",
|
||||||
"description": "An HTML5 and Flash video player with a common API and skin for both.",
|
"description": "An HTML5 and Flash video player with a common API and skin for both.",
|
||||||
"version": "5.10.4",
|
"version": "5.10.5",
|
||||||
"copyright": "Copyright Brightcove, Inc. <https://www.brightcove.com/>",
|
"copyright": "Copyright Brightcove, Inc. <https://www.brightcove.com/>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -23,16 +23,16 @@
|
|||||||
"main": "./dist/video.js",
|
"main": "./dist/video.js",
|
||||||
"style": "./dist/video-js.css",
|
"style": "./dist/video-js.css",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"global": "^4.3.0",
|
"global": "4.3.0",
|
||||||
"lodash-compat": "^3.9.3",
|
"lodash-compat": "3.10.2",
|
||||||
"object.assign": "^4.0.1",
|
"object.assign": "4.0.3",
|
||||||
"safe-json-parse": "^4.0.0",
|
"safe-json-parse": "4.0.0",
|
||||||
"tsml": "1.0.1",
|
"tsml": "1.0.1",
|
||||||
"videojs-font": "^2.0.0",
|
"videojs-font": "2.0.0",
|
||||||
"videojs-ie8": "1.1.2",
|
"videojs-ie8": "1.1.2",
|
||||||
"videojs-swf": "5.0.1",
|
"videojs-swf": "5.0.1",
|
||||||
"videojs-vtt.js": "^0.12.1",
|
"videojs-vtt.js": "0.12.1",
|
||||||
"xhr": "~2.2.0"
|
"xhr": "2.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel": "^5.2.2",
|
"babel": "^5.2.2",
|
||||||
|
|||||||
@@ -773,7 +773,12 @@ class Player extends Component {
|
|||||||
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
||||||
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
||||||
if (this.src() && this.tag && this.options_.autoplay && this.paused()) {
|
if (this.src() && this.tag && this.options_.autoplay && this.paused()) {
|
||||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
try {
|
||||||
|
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
log('deleting tag.poster throws in some browsers', e);
|
||||||
|
}
|
||||||
this.play();
|
this.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ if (typeof HTMLVideoElement === 'undefined') {
|
|||||||
* @mixes videojs
|
* @mixes videojs
|
||||||
* @method videojs
|
* @method videojs
|
||||||
*/
|
*/
|
||||||
let videojs = function(id, options, ready){
|
function videojs(id, options, ready){
|
||||||
let tag; // Element of ID
|
let tag; // Element of ID
|
||||||
|
|
||||||
// Allow for element or ID to be passed in
|
// Allow for element or ID to be passed in
|
||||||
@@ -97,7 +97,7 @@ let videojs = function(id, options, ready){
|
|||||||
// Element may have a player attr referring to an already created player instance.
|
// Element may have a player attr referring to an already created player instance.
|
||||||
// If not, set up a new player and return the instance.
|
// If not, set up a new player and return the instance.
|
||||||
return tag['player'] || Player.players[tag.playerId] || new Player(tag, options, ready);
|
return tag['player'] || Player.players[tag.playerId] || new Player(tag, options, ready);
|
||||||
};
|
}
|
||||||
|
|
||||||
// Add default styles
|
// Add default styles
|
||||||
if (window.VIDEOJS_NO_DYNAMIC_STYLE !== true) {
|
if (window.VIDEOJS_NO_DYNAMIC_STYLE !== true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user