nova-video-player / aos-AVP

NOVA opeN sOurce Video plAyer: main repository to build them all
Apache License 2.0
3.33k stars 198 forks source link

[FEAT]: Ordered Chapter Playback #1264

Open ItsMe-Haris opened 1 month ago

ItsMe-Haris commented 1 month ago

Description

Ordered chapters provide seamless, uninterrupted viewing experience when chapters reference external files or segments within the same file. They can be used to create an episode playlist or skip certain segments within the same file. We can skip intros, credits etc with this support easily.

If you are able to parse the chapters of MKV file, then you can check if EditionEntry contains EditionFlagOrdered flag. Then modify ExoPlayer's Timeline accordingly to create a dynamic timeline that only plays the timestamps included in the chapters hence skipping parts that are not included.

Additional information

If you are having trouble reading txt files due to Android limitations, this feature can help as an alternative. I asked for this feature in Just Player repository as well (moneytoo/Player#604) but I didn't get any response. In my testing, only 'mpv-android' supports this. It'd be nice to have it implemented in a player based on ExoPlayer since 'mpv-android' have trouble playing HDR.

ottoosworth commented 3 weeks ago

Would also love this feature, really miss it from Kodi, not sure if something similar can be implemented where the dpad up and down buttons navigate between the chapters, but the dpad up is already in use to bring up the menu