org.dvb.locator
Class NetworkInterfaceBoundMediaLocator
java.lang.Object
javax.media.MediaLocator
org.dvb.locator.NetworkInterfaceBoundMediaLocator
- public class NetworkInterfaceBoundMediaLocator
- extends MediaLocator
Class representing a MediaLocator combined with a network interface.
Used by applications that want to control which network interface is
used by JMF when multiple network interfaces exist which are connected
to the same actual network, for example a multi-tuner PVR.
JMF players constructed using instances of this class shall only
use the specified network interface. If the media referenced by that
media locator is not available via that network interface, the JMF
player shall behave as if the media is not available at all, even if
it is in fact available by another network interface.
- Since:
- MHP 1.1.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NetworkInterfaceBoundMediaLocator
public NetworkInterfaceBoundMediaLocator(MediaLocator locator,
NetworkInterface ni)
- Construct an instance of this class
- Parameters:
locator
- the MediaLocator to be combined with a NetworkInterfaceni
- a NetworkInterface
getNetworkInterface
public NetworkInterface getNetworkInterface()
- Return the network interface aspect of this MediaLocator
- Returns:
- the network interface passed into the constructor