SiliconDust HDHomeRun Bedienungsanleitung Seite 20

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 24
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 19
IV.Library API
The libhdhomerun library can be used for direct programmatic control of the HDHomeRun.
See “Scripting - HDHomeRun Config” for platform compatibility and information on compiling.
Discovery API
The discovery API is used to find HDHomeRun units on the network - documented in
hdhomerun_discover.h.
For repetitive background polling use hdhomerun_discover_create() and
hdhomerun_discover_find_devices().
For less frequent use the hdhomerun_discover_find_devices_custom() API provides discovery
using a single call.
Note: the Discovery API will return the list of HDHomeRun units on the network but does not
indicate the number of tuners associated with each HDHomeRun unit. This will be addressed in the
future. If this affects your application please contact [email protected].
Device API
The Device API is the primary API for controlling a HDHomeRun tuner - documented in
hdhomerun_device.h.
Create:
Call hdhomerun_device_create() or hdhomerun_device_create_from_str() to create a device
object. See hdhomerun_device.h for parameters and usage.
Typically a device object will be created for each tuner to be controlled.
Get/Set:
The get/set APIs can be used in a similar way to the get/set commands of hdhomerun_config. See
hdhomerun_device.h for the complete list of get/set functions.
For example, to set a channel call:
hdhomerun_device_create()
hdhomerun_device_set_tuner_channel()
hdhomerun_device_set_tuner_program()
Note: for Get functions that return a string the string is valid until another libhdhomerun API call.
Video stream:
Option 1: libhdhomerun video socket support:
The device-video API handles the video UDP socket, target configuration, buffering, sequence
checking, etc.
After setting the channel call hdhomerun_device_stream_start() to create the video UDP socket
and start the video service thread.
Call hdhomerun_device_stream_recv() periodically to receive the video stream.
Seitenansicht 19
1 2 ... 15 16 17 18 19 20 21 22 23 24

Kommentare zu diesen Handbüchern

Keine Kommentare