@grfzhl/vue-hls-player 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -304,6 +304,9 @@ async function parseTXT(fileUrl) {
|
|
|
304
304
|
|
|
305
305
|
// Hilfsfunktionen
|
|
306
306
|
function timeToSeconds(timestamp) {
|
|
307
|
+
if(!timestamp) {
|
|
308
|
+
return 0
|
|
309
|
+
}
|
|
307
310
|
const [hours, minutes, seconds] = timestamp.split(':').map(parseFloat);
|
|
308
311
|
return hours * 3600 + minutes * 60 + seconds;
|
|
309
312
|
}
|