Skip to content

Play/pause should have different behavior at end of video #3689

@eldad-evie

Description

@eldad-evie

(I'm not sure if this qualifies as a bug or a feature request)

I'm running the sample app, and at the end of the video the pause/play button stops having any effect. The icon changes when tapped, but nothing else happens.

On YouTube, reaching the end of a video changes the button from play to a third state - replay. Pressing it seeks to the beginning and starts playback again. I think that makes for a far better user experience.

I've tried to accomplish the same thing with a PlaybackControlView.ControlDispatcher that checks the current time in dispatchSetPlayWhenReady() and if it's identical to the duration of the video, calls player.seekTo(0) then player.setPlayWhenReady(true) - this does jump back to the beginning of the video but a second press is required to actually start playback. What am I missing?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions