Comparing version 0.2.58 to 0.2.59
@@ -15,3 +15,5 @@ module.exports = { | ||
"expect": false, | ||
"it": false | ||
"it": false, | ||
"beforeEach": false, | ||
"sinon": false | ||
}, | ||
@@ -18,0 +20,0 @@ "extends": "eslint:recommended", |
@@ -44,2 +44,4 @@ ## Built-in Plugins & Embed Parameters | ||
If you want to provide your translations, create a PR by editing the [Strings][https://github.com/clappr/clappr/blob/master/src/plugins/strings.js#L36-L50] plugin. | ||
##### Allow user interaction (in chromeless mode) | ||
@@ -46,0 +48,0 @@ Add `allowUserInteraction: true` if you want the player to handle clicks/taps when in chromeless mode. By default it's set to `false` on desktop browsers, and `true` on mobile browsers (due to playback start only being allowed when started through user interaction). |
{ | ||
"name": "clappr", | ||
"version": "0.2.58", | ||
"version": "0.2.59", | ||
"description": "An extensible media player for the web", | ||
@@ -5,0 +5,0 @@ "main": "./dist/clappr.js", |
@@ -18,2 +18,5 @@ // Copyright 2014 Globo.com Player authors. All rights reserved. | ||
export default class ContainerFactory extends BaseObject { | ||
get options() { return this._options } | ||
set options(options) { this._options = options } | ||
constructor(options, loader, i18n) { | ||
@@ -58,3 +61,3 @@ super(options) | ||
options = $.extend(options, {playback: playback}) | ||
options = $.extend({}, options, {playback: playback}) | ||
@@ -61,0 +64,0 @@ var container = new Container(options, this._i18n) |
@@ -9,2 +9,3 @@ // Copyright 2014 Globo.com Player authors. All rights reserved. | ||
// TODO: remove this playback and change HTML5Video to HTML5Playback (breaking change, only after 0.3.0) | ||
export default class HTML5Audio extends HTML5Video { | ||
@@ -11,0 +12,0 @@ get name() { return 'html5_audio' } |
@@ -36,2 +36,3 @@ // Copyright 2014 Globo.com Player authors. All rights reserved. | ||
// TODO: rename this Playback to HTML5Playback (breaking change, only after 0.3.0) | ||
export default class HTML5Video extends Playback { | ||
@@ -299,3 +300,3 @@ get name() { return 'html5_video' } | ||
var playheadShouldBeMoving = !this.el.ended && !this.el.paused | ||
var buffering = this._loadStarted && !this.el.ended && !this.stopped && ((playheadShouldBeMoving && !this._playheadMoving) || this.el.readyState < this.el.HAVE_FUTURE_DATA) | ||
var buffering = this._loadStarted && !this.el.ended && !this._stopped && ((playheadShouldBeMoving && !this._playheadMoving) || this.el.readyState < this.el.HAVE_FUTURE_DATA) | ||
if (this._bufferingState !== buffering) { | ||
@@ -302,0 +303,0 @@ this._bufferingState = buffering |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
5
7179692
173
35480
91