Open Bug 1717997 Opened 3 years ago Updated 3 years ago

Automatically calculate current playback position based on the playback rate and duration

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

ARM64
Android
enhancement

Tracking

()

People

(Reporter: petru, Unassigned)

References

Details

GeckoView offers an onPositionUpdate callback that should offer a glimpse into the current playback rate/position/duration but when testing on Fenix on youtube/dailymotion/souncloud I don't see this callback firing.

Asked Agi about it who said that as a public API it should work but it's a direct passt hrough so maybe the problem is a bit more on the lower levels.

The spec doesn't mandantorily require the user agent to calculate the current playback position, so Gecko only forware the postition state when the website set it explicitly via SetPositionState() method. If the callback wasn't fired on those websites, that just means that they didn't set the position state.

That will be an enhancement if we support calculating the current position based on the duration and playback rate.

Severity: -- → S4
Type: defect → enhancement
Priority: -- → P3
Summary: No media playback position updates → Automatically calculate current playback position based on the playback rate and duration
Blocks: MediaSession
See Also: → 1739151
You need to log in before you can comment on or make changes to this bug.