From: Chocobozzz Date: Tue, 13 Aug 2019 09:04:27 +0000 (+0200) Subject: Fix nl_NL locale X-Git-Tag: v1.4.0-rc.1~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dfe4294a7249dc20b5a3625c446e642cdb0cd39d;p=oweals%2Fpeertube.git Fix nl_NL locale --- 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