Jump to content

In-progress DVR: refresh added chapters without restarting playback


Recommended Posts

daddystorm
Posted

Hi,

Is there a supported way to refresh the chapter list while an in-progress DVR recording keeps playing in Emby for Android?

I would like spoiler-free text chapters for hockey period starts, intermissions and interviews to become available as the recording grows. This question concerns refreshing chapters that already exist on the server.

Tested environment: Emby Server 4.10.0.40; Emby for Android 3.5.72 running on Android TV, using the app's own player. A short, separate native DVR recording of SVT1 was used.

Controlled test:

1. While recording, save one text chapter at 00:00 through a small server plugin using IItemRepository.SaveChapters. The recording item DTO contains it, but native PlaybackInfo.MediaSources[0].Chapters is empty. The TV plays the recording without showing the chapter.
2. In an explicitly scoped experiment, add the saved chapters to a copy of the final PlaybackInfo response for that single test recording. Playback capabilities and other source fields are unchanged. After opening the recording, the TV now shows the initial chapter.
3. Keep playback running and append a second chapter at 00:30. Both the item DTO and the enriched PlaybackInfo source now contain two chapters.
4. The new chapter does not appear on TV, including after closing and reopening just the chapter list.
5. Stop and reopen the same still-active recording: both chapters are visible, and selecting the second chapter plays picture and sound successfully.

The experimental plugin and test recordings have been removed. I have not physically repeated this on 3.5.76 or the just-released 3.5.77, so the device result above applies to 3.5.72.

Could you clarify:
- Is there a supported API or notification to refresh chapter metadata in an already-playing client without restarting its stream?
- If this is currently unsupported, could dynamic text chapters for active DVR recordings be supported, including passing existing chapters through native PlaybackInfo?

I searched first and found these related discussions, but not this specific add-during-playback case:
https://emby.media/community/topic/139458-skip-forwardbackward-10-minutes-in-recordings/
https://emby.media/community/topic/149933-chapters-android-vs-android-tv/

Thanks.

Posted

Hi, this is not currently possible but it could be a future enhancement.

But then again, where would this information come from? OTS mpegts typically is not going to have chapters embedded into the video stream. Unless you're suggesting that we i insert markers during the recording process, which could be interesting.

Posted
Quote

- Is there a supported API or notification to refresh chapter metadata in an already-playing client without restarting its stream?
 

you can refresh metadata, but the players will not adapt to changing media info during playback.

daddystorm
Posted

Thanks, that clarifies the current limitation.

Yes, the intended source is markers created on the server while the recording is growing. They would be stored as chapter metadata in Emby's repository, rather than embedded in the MPEG-TS stream.

To clarify the test: the plugin only published manually supplied test chapters through IItemRepository.SaveChapters. Automatic detection of hockey events is not implemented yet. The planned external detector would analyse the file Emby is already recording and identify period starts, intermissions and interviews. Emby itself would not need hockey-specific detection rules.

The recording item DTO already reflected newly saved chapters during our test. Could a future client enhancement fetch that current chapter list when the chapter menu opens, or periodically for an active recording, and update the menu while keeping the existing stream and playback position? This would also need to handle a recording whose initial chapter list is empty.

I understand that this would be a feature enhancement. Refreshing just the chapter metadata during uninterrupted playback would cover the client-side requirement for this use case.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...