determining currently presenting service
I am trying the to determine the current service presenting. I am using monapp to start the watchtv app and my own unbound app. I have a channel map assocated with the monapp run configuration with a set of channels and it works fine to start watchtv and tune to the first channel and allows changing channels.
From my app I would like to get the currently presenting service and size the video with AWTVideoSizeControl. When I run my app directly and select the service from it it works fine. But in the above configuration I don't see how to determine the currently presenting channel.
ServiceContextFactory.getInstance().getServiceContexts() only returns the application context. If I set an appropriate app id and the monitor app permission service or servicemanager to allow access to all services I only get all the application contexts. According to the javadoc if you call getService on a ServiceContext it will return null if it is not presenting. But I don't get any of the channel services.
If I use SIManager.filterServices(null) I get all the services but I don't see how to determine which is currently presenting.
Am I missing something here?