Bug 207538

Summary: The video duration is updating while a VOD playback
Product: WebKit Reporter: yair.ansbacher
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Major CC: bfulgham, itay.kinnrot, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: iPhone / iPad   
OS: iOS 13   
Attachments:
Description Flags
loading sequence screenshot
none
Session log
none
session har file none

Description yair.ansbacher 2020-02-11 06:27:17 PST
Created attachment 390357 [details]
loading sequence screenshot

What I did:
play VOD content using Safari webkit HTMLVideoElement

Expected:
1. Video will play 
2. Content duration will be available immediately after the video is loaded
3. durationchanged event is fired only one time

Actual:
The contnet duration is updated continuously
durationchanged event is fired all the time, Each time the duration time is growing.

Observations:
The manifest includes muxed video and audio renditions
There is one rendition (#EXT-X-STREAM-INF) containing only audio for slow networks
The issue only happens when the following specific loading sequence happens:
1. master playlist
2. muxed av chunk list
3. audio-only chunk list load
4. 2 audio segments loaded 
5. muxed av chunk list
6. muxed segments loaded 

When the audio-only chunk list and segments not loaded the issue doesn't happen.

The sequence above can be shown in the attached screenshot.
Here the link to the har file of the session (250MB+):
https://wetransfer.com/downloads/9989c9a955561bc84af22ee6d9099ac420200211135853/5f8f034843e408820c2200dbea8b2e9120200211135853/1ac581

This issue is sporadic and it's pretty difficult to reproduce it.
I did some device restarts to make it happened.

Yair
Comment 1 yair.ansbacher 2020-02-11 06:32:02 PST
Created attachment 390359 [details]
Session log

Adding the session log from the media logging (verbose)
Comment 2 yair.ansbacher 2020-02-11 06:35:46 PST
Created attachment 390361 [details]
session har file

Adding the har file here
Comment 3 Radar WebKit Bug Importer 2020-03-05 11:14:47 PST
<rdar://problem/60091836>
Comment 4 Brent Fulgham 2022-02-10 14:44:20 PST
This is actually:
<rdar://59806776>
Comment 5 Brent Fulgham 2022-02-10 14:45:05 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

The relevant component has not confirmed a fix yet.