Comparing version 0.2.73 to 0.2.74
{ | ||
"name": "clappr", | ||
"description": "An extensible media player for the web", | ||
"version": "0.2.73", | ||
"version": "0.2.74", | ||
"homepage": "https://github.com/clappr/clappr", | ||
@@ -6,0 +6,0 @@ "authors": [ |
{ | ||
"name": "clappr", | ||
"version": "0.2.73", | ||
"version": "0.2.74", | ||
"description": "An extensible media player for the web", | ||
@@ -5,0 +5,0 @@ "main": "./dist/clappr.js", |
@@ -442,2 +442,6 @@ // Copyright 2014 Globo.com Player authors. All rights reserved. | ||
getCurrentTime() { | ||
return this.el.getPosition() | ||
} | ||
getCurrentLevelIndex() { | ||
@@ -530,6 +534,6 @@ return this._currentLevel | ||
this.trigger(Events.PLAYBACK_FRAGMENT_LOADED, loadmetrics) | ||
if (this._reportingProgress && this.el.getPosition) { | ||
const buffered = this.el.getPosition() + this.el.getbufferLength() | ||
if (this._reportingProgress && this.getCurrentTime()) { | ||
const buffered = this.getCurrentTime() + this.el.getbufferLength() | ||
this.trigger(Events.PLAYBACK_PROGRESS, { | ||
start: this.el.getPosition(), | ||
start: this.getCurrentTime(), | ||
current: buffered, | ||
@@ -536,0 +540,0 @@ total: this.el.getDuration() |
@@ -32,7 +32,9 @@ //Copyright 2014 Globo.com Player authors. All rights reserved. | ||
settingsUpdate() { | ||
this.container.$el.removeClass('pointer-enabled') | ||
if (this.container.getPlaybackType() !== Playback.LIVE || this.container.isDvrEnabled()) { | ||
this.container.$el.addClass('pointer-enabled') | ||
} | ||
const pointerEnabled = this.container.getPlaybackType() !== Playback.LIVE || this.container.isDvrEnabled() | ||
if (pointerEnabled === this.pointerEnabled) return | ||
const method = pointerEnabled ? 'addClass' : 'removeClass' | ||
this.container.$el[method]('pointer-enabled') | ||
this.pointerEnabled = pointerEnabled | ||
} | ||
} |
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
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
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
6331506
227
40170
1
5