Getting BeginningOfContentEvent for TSB maximum depth
The test creates a TSB that has a duration of 35 seconds and pauses the TSB at 30 seconds. Then waits for 1.5 minutes for the BeginningOfContentEvent that should be sent when the starting media time is going to over write the paused media time. It never receives the event.
Looking at the code the TSBServicePresentation will never send this event unless an AlternativeContentEvent with reason RATING_PROBLEM occurs. This seems to go agents the spec which stats.
If the write point of the time-shift buffer is about to overwrite the location corresponding to the current
media time due to circular buffer reaching its depth, the implementation SHALL set the playback rate
to 1.0 in order to prevent the location corresponding to the current media time being invalidated. The
implementation SHALL send a BeginningOfContentEvent to any registered controller
listeners. This SHOULD occur only when the playback is at a rate less than 1.0. The time-shift buffer
implementation SHOULD make sure that the location corresponding to the current media time is never
How is this event supposed to occur?