org.dvb.locator
Class NetworkInterfaceBoundMediaLocator

java.lang.Object
  extended byjavax.media.MediaLocator
      extended byorg.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

Constructor Summary
NetworkInterfaceBoundMediaLocator(MediaLocator locator, NetworkInterface ni)
          Construct an instance of this class
 
Method Summary
 NetworkInterface getNetworkInterface()
          Return the network interface aspect of this MediaLocator
 
Methods inherited from class javax.media.MediaLocator
getProtocol, getRemainder, getURL, toExternalForm, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkInterfaceBoundMediaLocator

public NetworkInterfaceBoundMediaLocator(MediaLocator locator,
                                         NetworkInterface ni)
Construct an instance of this class

Parameters:
locator - the MediaLocator to be combined with a NetworkInterface
ni - a NetworkInterface
Method Detail

getNetworkInterface

public NetworkInterface getNetworkInterface()
Return the network interface aspect of this MediaLocator

Returns:
the network interface passed into the constructor