From dfe4294a7249dc20b5a3625c446e642cdb0cd39d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 13 Aug 2019 11:04:27 +0200 Subject: [PATCH] Fix nl_NL locale --- .../p2p-media-loader-plugin.ts | 18 +++++++++++++++++- client/src/locale/target/angular_nl_NL.xml | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts b/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts index bbd3e008d..7a0af6e8a 100644 --- a/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts +++ b/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts @@ -57,6 +57,7 @@ class P2pMediaLoaderPlugin extends Plugin { initVideoJsContribHlsJsPlayer(player) this.startTime = timeToInt(options.startTime) + console.log(this.startTime) player.src({ type: options.type, @@ -98,10 +99,25 @@ class P2pMediaLoaderPlugin extends Plugin { this.runStats() this.hlsjs.on('hlsLevelLoaded', () => { - if (this.startTime) this.player.currentTime(this.startTime) + console.log('hello1') + if (this.startTime) { + this.player.currentTime(this.startTime) + } this.hlsjs.off('hlsLevelLoaded', this) }) + + this.hlsjs.on('hlsFragParsed', () => { + console.log('hello2') + }) + + this.hlsjs.on('hlsFragBuffered', () => { + console.log('hello 3') + }) + + this.player.one('loadedmetadata', () => { + console.log('hello 4') + }) } private runStats () { diff --git a/client/src/locale/target/angular_nl_NL.xml b/client/src/locale/target/angular_nl_NL.xml index c30c6351a..fd18f5231 100644 --- a/client/src/locale/target/angular_nl_NL.xml +++ b/client/src/locale/target/angular_nl_NL.xml @@ -2907,7 +2907,7 @@ Het ziet ernaar uit dat je op een server bent zonder HTTPS. Op je webserver moet {VAR_PLURAL, plural, =1 {result} other {results} } - {VAR_PLURAL, plural, =1 {result} anderer {results} } + {VAR_PLURAL, plural, =1 {result} other {results} } 23 -- 2.41.0