VlcSource module

Multicasting source.

The source takes commands as arguments and sends them to the targets. In practice, it establishes the multicast channel over which it sends, and relays, messages.

When executed from the command line, this file functions as a basic “shell” for the source. Currently available commands :

  • ack : Request acknowledgement from all targets in the multicast group.

  • play : Request playback to commence on all targets in the multicast group.

  • next : Request playback of the next item in the playlist.

  • depth : Request toggling of the depth camera window visibility.

  • stop : Request that playback ceases.

  • quit : Request all targets in the multicast group to quit. Quits.

Could be improved by accepting piped commands on STDIN so it can be scripted.

class VlcSource.VlcSource

Bases: object

Multicast source for controlling VlcGpioTarget instances.

send_message(message)
Parameters

message – The message to send to the multicast group.