youbora-adapter-hlsjs
Advanced tools
Comparing version 6.8.8 to 6.8.9
@@ -0,1 +1,7 @@ | ||
## [6.8.9] - 2024-05-23 | ||
### Added | ||
- Fallback to flowplayer's `getResource` and `getPlayerVersion` methods. | ||
### Library | ||
- Packaged with `lib 6.8.56` | ||
## [6.8.8] - 2023-03-17 | ||
@@ -2,0 +8,0 @@ ### Added |
@@ -5,5 +5,5 @@ { | ||
"tech": "js", | ||
"author": "Jesus Lopez", | ||
"version": "6.8.8", | ||
"built": "2023-03-17", | ||
"author": "Nice People At Work", | ||
"version": "6.8.9", | ||
"built": "2024-05-23", | ||
"repo": "https://bitbucket.org/npaw/hlsjs-adapter-js", | ||
@@ -10,0 +10,0 @@ "libVersion": "^6.8.34", |
{ | ||
"name": "youbora-adapter-hlsjs", | ||
"version": "6.8.8", | ||
"version": "6.8.9", | ||
"main": "src/adapter.js", | ||
@@ -26,3 +26,3 @@ "description": "Youbora adapter for hlsjs", | ||
}, | ||
"author": "Jesus Lopez", | ||
"author": "Nice People At Work", | ||
"license": "MIT", | ||
@@ -29,0 +29,0 @@ "bugs": { |
@@ -90,3 +90,9 @@ /* global Hls */ | ||
getResource: function () { | ||
return this.player.url | ||
let url = this.player.url | ||
if (url === null || url === '') { | ||
url = window.flowplayer.hls.url | ||
} | ||
return url | ||
}, | ||
@@ -96,3 +102,11 @@ | ||
getPlayerVersion: function () { | ||
return (typeof Hls !== 'undefined') ? Hls.version : 'unknown' | ||
if (typeof Hls !== 'undefined') { | ||
return Hls.version | ||
} | ||
if (window.flowplayer !== null) { | ||
return window.flowplayer.hls.version | ||
} | ||
return null | ||
}, | ||
@@ -99,0 +113,0 @@ |
14925
286