mirror of
https://github.com/AirenSoft/OvenPlayer.git
synced 2025-03-15 19:12:50 +00:00
Fix grid thumbnail was not showing properly
This commit is contained in:
2
dist/ovenplayer.js
vendored
2
dist/ovenplayer.js
vendored
File diff suppressed because one or more lines are too long
2
dist/ovenplayer.js.map
vendored
2
dist/ovenplayer.js.map
vendored
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ovenplayer",
|
||||
"version": "0.10.33",
|
||||
"version": "0.10.33.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ovenplayer",
|
||||
"version": "0.10.31",
|
||||
"version": "0.10.33.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"core-js": "^3.16.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ovenplayer",
|
||||
"version": "0.10.33",
|
||||
"version": "0.10.33.1",
|
||||
"description": "OvenPlayer is Open-Source HTML5 Player. OvenPlayer supports WebRTC Signaling from OvenMediaEngine for Sub-Second Latency Streaming.",
|
||||
"main": "dist/ovenplayer.js",
|
||||
"scripts": {
|
||||
|
@ -126,10 +126,13 @@ const ProgressBar = function ($container, api, isAd, metadata) {
|
||||
$preview.show();
|
||||
}
|
||||
|
||||
let duration = 0;
|
||||
let second = 0;
|
||||
|
||||
if (hlsLive && !nativeHlsLive) {
|
||||
|
||||
let duration = api.getDvrWindow();
|
||||
let second = duration * (1 - percentage);
|
||||
duration = api.getDvrWindow();
|
||||
second = duration * (1 - percentage);
|
||||
if (api.isTimecodeMode()) {
|
||||
$time.text('- ' + naturalHms(second));
|
||||
} else {
|
||||
@ -137,8 +140,8 @@ const ProgressBar = function ($container, api, isAd, metadata) {
|
||||
}
|
||||
} else if (hlsLive && nativeHlsLive) {
|
||||
|
||||
let duration = getNativeHlsDvrWindow();
|
||||
let second = duration * (1 - percentage);
|
||||
duration = getNativeHlsDvrWindow();
|
||||
second = duration * (1 - percentage);
|
||||
if (api.isTimecodeMode()) {
|
||||
$time.text('- ' + naturalHms(second));
|
||||
} else {
|
||||
@ -146,8 +149,8 @@ const ProgressBar = function ($container, api, isAd, metadata) {
|
||||
}
|
||||
} else {
|
||||
|
||||
let duration = api.getDuration();
|
||||
let second = duration * percentage;
|
||||
duration = api.getDuration();
|
||||
second = duration * percentage;
|
||||
|
||||
if (api.isTimecodeMode()) {
|
||||
$time.text(naturalHms(second));
|
||||
|
Reference in New Issue
Block a user