public abstract class TransportStream extends Object
A TransportStream object models a specific transport stream that can be accessed through a specific network interface. This implies that a Transport Stream object has implicitly a connection to a specific network interface. Thus, if two or more network interfaces can deliver the same transport stream, this will be modeled by two or more separate TransportStream objects. A network interface does not need to be tuned to a transport stream if an application wants to use the corresponding TransportStream object.
If the corresponding network interface is currently tuned to the TransportStream, then an application can query the TransportStream for the services it contains, and the services for which elementary streams it contains. If the corresponding network interface is not currently tuned to the TransportStream, then the application can query the TransportStream for the services it contains. If the STB has cached the required information it can return it, otherwise it should return null. If an application queries a Service object for elementary stream information and the corresponding TransportStream is not currently tuned to, then the Service object should return null.
If an application has two references to a TransportStream object and those TransportStream objects model the same transport stream coming from the same network interface, then the equals() method (inherited from java.lang.Object) return true when comparing both TransportStream objects. The references themselves are not necessarily the same, although they may be.
Note: If an application wants to know to which network interface a TransportStream object is connected to, it should use the Tuning API if it is available.
| Modifier | Constructor and Description |
|---|---|
protected |
TransportStream() |
public int getTransportStreamId()
public Service retrieveService(int serviceId)
serviceId - the id of the requested service within this transport streampublic Service[] retrieveServices()
Copyright © 2012 code4tv.com. All Rights Reserved.