Skip to content

hlssink3: Post hls-segment-added message

Posts a simple 'hlsbasesink-segment-added' message with the segment location and current running time. With hlssink2, it was possible to catch 'splitmuxsink-fragment-closed', but since hlssink3 doesn't forward that message (and hlscmafsink doesn't even use that mux), the new one was added to allow for listening for new fragments being added.

I extended the existing tests to check whether this message is posted correctly. They theoretically only cover hlssink3, but hlscmafsink uses the same base class so it should be alright for now.

Not sure about the name though, let me know if it should be element-specific rather than shared.

Merge request reports

Loading