Bug 245724 - getStartDate() value inconsistent when seeking
Summary: getStartDate() value inconsistent when seeking
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-27 06:26 PDT by Robert Bryer
Modified: 2022-09-30 09:09 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Bryer 2022-09-27 06:26:31 PDT
This is present on iOS/iPadOS 15.7 but not on desktop versions of Safari.

When seeking in a livestream, the value returned by video.getStartDate() is inconsistent.

You can see it on this page here:
https://is.gd/iwokev

And you can log the values with this:
const video = window.embeddedMedia.players[0].toucan.playbackController.currentPlayback.videoElement;
video.addEventListener("timeupdate", () => {console.log("timeupdate", video.currentTime, video.getStartDate().getTime()/1000)});
video.addEventListener("seeking", () => {console.log("seeking", video.currentTime, video.getStartDate().getTime()/1000)});
video.addEventListener("seeked", () => {console.log("seeked", video.currentTime, video.getStartDate().getTime()/1000)});

When seeking on the player, we can see the startDate jump around randomly, here from 1664276072 to 1664272274:

[Log] timeupdate – 7192.9013990300045 – 1664276072
[Log] timeupdate – 7192.902806654998 – 1664276072
[Log] seeking – 3394.9170031547546 – 1664276072
[Log] timeupdate – 3394.9170031547546 – 1664272274
[Log] timeupdate – 3394.9249128916604 – 1664272274
[Log] seeked – 3394.9268130166643 – 1664272274
[Log] timeupdate – 3394.9336368916743 – 1664276072
[Log] timeupdate – 3394.9364625166677 – 1664276072
[Log] timeupdate – 3394.8134785423435 – 1664276072
Comment 1 Radar WebKit Bug Importer 2022-09-30 09:09:05 PDT
<rdar://problem/100624800>