Skip to main content

When RI send TimeShiftEvent with TIME_SHIFT_BUFFER_FOUND as reason code

6 replies [Last post]
krushna
Offline
Joined: 2010-09-21

Hi

1. I am setting the minimum duration to the ServiceContext.(Enabling TSB)

2. calling serviceContext.select()

Will i get TimeShiftEvent with TIME_SHIFT_BUFFER_FOUND as a reason code.

Or when do we get that event.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ramks
Offline
Joined: 2010-06-17

The contention is how will you define "tsb not available". When you start service selection there would not be any tsb for that service. TSB would be available only during service presentation which means that the event TSB FOUND has to be sent.

scottdeboy
Offline
Joined: 2009-02-02

According to DVR I06 6.2.1.3.4 h, TIME_SHIFT_BUFFER_FOUND is only sent when a timeshift buffer was unavailable (resulting in NO_TIME_SHIFT_BUFFER) and then a timeshift buffer becomes available.

Scott

steve_wadsworth
Offline
Joined: 2010-07-14

Thank you for the clarification

scottdeboy
Offline
Joined: 2009-02-02

You will be notified of TimeShiftEvents if you add TimeShiftEventListener to the TimeShiftProperties (the ServiceContext on platforms providing the DVR extension):

Here is a link to a similar question posted on the forum.

http://forums.java.net/jive/thread.jspa?messageID=478722

steve_wadsworth
Offline
Joined: 2010-07-14

I think the real question here is:

After calling serviceContext.select() should we always expect to see a TIME_SHIFT_BUFFER_FOUND TimeShiftEvent. Or should that only occur if a NO_TIME_SHIFT_BUFFER TimeShiftEvent has previously occured and then a buffer has become available?

ramks
Offline
Joined: 2010-06-17

Only way for application to know if buffering is actually happening is to listen for TimeShiftEvents. So I expect RI to give event for service selection.