Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 881 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 881 Bytes

MythTV-Service-API

MythTV Service API Library for Java

Implementation of MythTV .27 Services API for Java

Basic building block for MythTV oriented applications in the Java realm.

org.mythtv.services.api.ServerVersionQuery should be used to get the backend version number:

  1. Check if the server is reachable:
    boolean isReachable = org.mythtv.services.api.ServerVersionQuery.isServerReachable("http://backendIP:backendPort(Typically 6544)");
  1. Get the server version
    ApiVersion version = org.mythtv.services.api.ServerVersionQuery.getMythVersion("http://backendIP:backendPort(Typically 6544)");
  1. Build the MythTVApiContext:
    MythTvApi027Context ctxt = (MythTvApiContext)MythTvApiContext.newBuilder().setHostName("192.168.0.2").setVersion(ApiVersion.v027).build();