New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

youbora-adapter-hlsjs

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youbora-adapter-hlsjs - npm Package Compare versions

Comparing version 6.8.1 to 6.8.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## [6.8.2] - 2022-01-03
### Added
- Reduced seek and buffer logic to the minimum: first event defines what is sent after: seeking is seek, waiting is buffer, pause is pause, playing ends all the previous. No playhead monitor
## [6.8.1] - 2021-12-15

@@ -2,0 +6,0 @@ ### Added

4

manifest.json

@@ -6,4 +6,4 @@ {

"author": "Jesus Lopez",
"version": "6.8.1",
"built": "2021-12-16",
"version": "6.8.2",
"built": "2022-01-03",
"repo": "https://bitbucket.org/npaw/hlsjs-adapter-js",

@@ -10,0 +10,0 @@ "libVersion": "^6.8.10",

{
"name": "youbora-adapter-hlsjs",
"version": "6.8.1",
"version": "6.8.2",
"main": "src/adapter.js",

@@ -5,0 +5,0 @@ "description": "Youbora adapter for hlsjs",

@@ -128,3 +128,3 @@ /* global Hls */

// Enable playhead monitor (buffer = true, seek = false)
this.monitorPlayhead(true, true)
// this.monitorPlayhead(true, true)
this.hlsReference = this.hlsErrorListener.bind(this)

@@ -187,23 +187,9 @@ this.hlsMediaReference = this.getTagListener.bind(this)

playingListener: function (e) {
var thisStamp = e.timeStamp
if (this.flags.isPaused) {
if (this.chronos.pause.getDeltaTime() <= 0) {
if (!this.plugin || !this.plugin.getAdsAdapter() || !this.plugin.getAdsAdapter().flags.isStarted) {
this.fireResume()
this.fireBufferBegin()
}
} else if (this.chronos.pause.getDeltaTime() <= 100 && this.pauseStamp !== thisStamp) {
this.fireSeekBegin({},false)
this.fireSeekEnd()
}
}
/*if (this.flags.isPaused && this.chronos.pause.getDeltaTime() <= 100 && this.pauseStamp !== e.timeStamp) {
this.fireSeekBegin({},false)
this.fireSeekEnd()
}*/
this.fireJoin()
if (this.flags.isBuffering) {
this.fireBufferEnd()
if (this.monitor) this.monitor.skipNextTick()
}
if (this.flags.isSeeking) {
this.fireSeekEnd()
if (this.monitor) this.monitor.skipNextTick()
}
this.fireBufferEnd()
this.fireSeekEnd()
this.fireResume()

@@ -213,7 +199,9 @@ },

seekingListener: function (e) {
if (!this.flags.isBuffering) {
this.fireSeekBegin()
}
this.fireSeekBegin({}, false)
},
bufferingListener: function(e) {
this.fireBufferBegin()
},
/** Listener for 'error' event. */

@@ -233,3 +221,3 @@ errorListener: function (e) {

this.fireFatalError(error.details, 'PLAYER FAILURE')
}
} //Nonfatal are ignored
},

@@ -241,6 +229,2 @@

this.registerListeners()
},
bufferingListener: function(e) {
if (!this.flags.isSeeking) this.fireBufferBegin()
}

@@ -247,0 +231,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc