chore(video-player): rebuild dist for v0.1.3
This commit is contained in:
@@ -1 +1 @@
|
||||
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/react/video-player/components/video-js/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,WASzC,CAAC"}
|
||||
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/react/video-player/components/video-js/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,WAWzC,CAAC"}
|
||||
@@ -1,9 +1,10 @@
|
||||
export const formatTime = (seconds) => {
|
||||
const safeSeconds = Number.isFinite(seconds) && seconds > 0 ? seconds : 0;
|
||||
const pad = (num) => String(num).padStart(2, "0");
|
||||
const hrs = Math.floor(seconds / 3600);
|
||||
const mins = Math.floor((seconds % 3600) / 60);
|
||||
const secs = Math.floor(seconds % 60);
|
||||
if (seconds < 3600) {
|
||||
const hrs = Math.floor(safeSeconds / 3600);
|
||||
const mins = Math.floor((safeSeconds % 3600) / 60);
|
||||
const secs = Math.floor(safeSeconds % 60);
|
||||
if (safeSeconds < 3600) {
|
||||
return `${pad(mins)}:${pad(secs)}`;
|
||||
}
|
||||
return `${pad(hrs)}:${pad(mins)}:${pad(secs)}`;
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/react/video-player/components/video-js/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAe,EAAE,EAAE;IAC7C,MAAM,GAAG,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,O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G,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;AAChD,CAAC,CAAC"}
|
||||
Reference in New Issue
Block a user