1
0
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:
Sangwon Oh
2023-12-27 14:48:49 +09:00
parent 75f1d615ed
commit 283382ba61
5 changed files with 14 additions and 11 deletions

2
dist/ovenplayer.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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));