Class OppoIp
java.lang.Object
org.harctoolbox.harchardware.misc.OppoIp
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class communicates with an Oppo 93, 9, 103, 105 over IP. Reference:
OPPO BDP-9X/10X Blu-ray Disc Player Network Remote Control Protocol
(Version 1.0, September 25, 2012).
-
Constructor Summary
ConstructorDescriptionOppoIp()
This version of the constructor searches on the local LAN by using the IP address of the host with last byte replaced by a 0 as broadcast address.OppoIp
(boolean verbose) OppoIp
(InetAddress broadcast, int timeout, boolean verbose) General constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static void
Just for testing.void
sendCommand
(String cmd) Sends a command to the connected Oppo.
-
Constructor Details
-
OppoIp
public OppoIp(String broadcast, int timeout, boolean verbose) throws IOException, TransformerException - Throws:
IOException
TransformerException
-
OppoIp
This version of the constructor searches on the local LAN by using the IP address of the host with last byte replaced by a 0 as broadcast address.- Throws:
IOException
TransformerException
-
OppoIp
- Throws:
IOException
TransformerException
-
OppoIp
public OppoIp(InetAddress broadcast, int timeout, boolean verbose) throws IOException, TransformerException General constructor.- Parameters:
broadcast
- Broadcast address for searching for the Oppo.timeout
-verbose
-- Throws:
IOException
TransformerException
-
-
Method Details
-
main
Just for testing.- Parameters:
args
-
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
sendCommand
Sends a command to the connected Oppo.- Parameters:
cmd
- String like "EJT" (for eject).- Throws:
IOException
TransformerException
-