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
ConstructorsConstructorDescriptionOppoIp()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 TypeMethodDescriptionvoidclose()static voidJust for testing.voidsendCommand(String cmd) Sends a command to the connected Oppo.
-
Constructor Details
-
OppoIp
public OppoIp(String broadcast, int timeout, boolean verbose) throws IOException, TransformerException - Throws:
IOExceptionTransformerException
-
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:
IOExceptionTransformerException
-
OppoIp
- Throws:
IOExceptionTransformerException
-
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:
IOExceptionTransformerException
-
-
Method Details
-
main
Just for testing.- Parameters:
args-
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
sendCommand
Sends a command to the connected Oppo.- Parameters:
cmd- String like "EJT" (for eject).- Throws:
IOExceptionTransformerException
-