Bug 260798 - mediaTime reported using requestVideoFrameCallback is not accurate on iOS
Summary: mediaTime reported using requestVideoFrameCallback is not accurate on iOS
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-28 08:37 PDT by Kevin Dorion
Modified: 2023-08-28 09:29 PDT (History)
6 users (show)

See Also:


Attachments
Side-by-side comparison of the mediaTime precision (MacOS Chrome vs iOS Safari) (744.74 KB, image/png)
2023-08-28 08:37 PDT, Kevin Dorion
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Dorion 2023-08-28 08:37:26 PDT
Created attachment 467458 [details]
Side-by-side comparison of the mediaTime precision (MacOS Chrome vs iOS Safari)

On iOS devices, the mediaTime reported when listening to requestVideoFrameCallback is not accurate (floating point issue).
On desktops and other devices, the mediaTime is exactly accurate with what is reported by ffmpeg.
Please see the attachment for a side-by-side comparison of the same frame on Chrome Version 116.0.5845.110 and iPhone 16.2
Reproducible on https://web.dev/requestvideoframecallback-rvfc/
Comment 1 Radar WebKit Bug Importer 2023-08-28 09:29:17 PDT
<rdar://problem/114568575>