mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Fixed a race condition between loading data and start time calculation, fixed start time setting when player.load is ignored
This commit is contained in:
@@ -342,6 +342,9 @@ export default {
|
||||
this.setupSeekbarPreview()
|
||||
this.$player = player
|
||||
|
||||
const startTime = this.initialSkip != null && Number.isFinite(this.initialSkip) ? this.initialSkip : 0
|
||||
this.skipToTime(startTime)
|
||||
|
||||
this.$player.configure({
|
||||
preferredVideoCodecs: this.preferredVideoCodecs,
|
||||
preferredAudioCodecs: ['opus', 'mp4a'],
|
||||
@@ -357,7 +360,6 @@ export default {
|
||||
const qualityConds = quality > 0 && (this.video.audioStreams.length > 0 || this.video.livestream) && !this.audioOnly
|
||||
if (qualityConds) this.$player.configure('abr.enabled', false)
|
||||
|
||||
const startTime = this.initialSkip != null && Number.isFinite(this.initialSkip) ? this.initialSkip : 0
|
||||
player.load(uri, startTime, mime).then(() => {
|
||||
let bestFitLanguage
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user