Skip to main content

Swap Tuners

1 reply [Last post]
sdyavarashetti
Offline
Joined: 2010-07-27
Points: 0

I want to test two scenarios with the two tuners on OCAP RI.
1.LiveTv->Pause->LiveTV
In this case when i click LiveTv first time it is tuning to ch x, then i have given pause so presentation of ch x is paused.
Then i have given LiveTV again then it is tuning to ch y.
Here i want to get the confirmation that should the ch y be in pause mode or play mode?
2.LiveTv->Pause->LiveTV->LiveTv
In this case when i give LiveTv first time it is tuning to ch x,, then i have given pause so presentation of ch x is paused.
Then i have given LiveTV again then it is tuning to ch y then i have given LiveTv again so it is tuing back to ch x.
Here i want to get the confirmation that should the ch x be in pause mode or play mode?
Could you please help me.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cpratt
Offline
Joined: 2008-12-18
Points: 0

I'm a bit confused about the scenario you're running.
Normally I would expect an xlet to respond to the "LiveTV" button by changing the media time on the presenting JMF Player to POSITIVE_INFINITY (Player.setMediaTime(Double.POSITIVE_INFINITY).
In your test, is it doing some kind of "flash-back" functionality (tuning to the last channel you were tuned to) when the "LiveTv" button is pressed?
If so, the player will resume at the live point when selecting another broadcast Service *unless* the xlet has explicitly told the ServiceContext to resume at a particular time/rate via ServiceContext/TimeShiftProperties.setPresentation().
So unless you're using setPresentation(), your test should not expect the Service to be paused when you tune back to it.