public class StreamTable extends Object
| Modifier and Type | Method and Description |
|---|---|
static TransportStream[] |
getTransportStreams(Locator locator)
Returns the transport streams that match the locator.
|
static Locator[] |
listTransportStreams()
Returns all known transport streams on all network
interfaces as an array of Locators
|
public static TransportStream[] getTransportStreams(Locator locator) throws NetworkInterfaceException
The locator must uniquely identify the transport stream (i.e. for DVB networks, it must specify the orig_network_id and the transport_stream_id). If the locator is more specific than just identifying the transport stream, any more specific part of it will be disregarded.
Since the same transport stream may be received via multiple networks and via multiple network interfaces, this function returns an array of all the possible transport stream objects that can be used for receiving this transport stream.
locator - A locator that points to a broadcast transport streamIncorrectLocatorException - raised if the locator does not reference a
broadcast transport streamNetworkInterfaceExceptionpublic static Locator[] listTransportStreams()
Copyright © 2012 code4tv.com. All Rights Reserved.