video#

class platypush.message.event.video.NewPlayingVideoEvent(video=None, *args, **kwargs)[source]#

Bases: VideoEvent

Event triggered when a video playback is paused

__init__(video=None, *args, **kwargs)[source]#
Parameters:

video (str) – File name or URI of the played video

class platypush.message.event.video.VideoEvent(*args, **kwargs)[source]#

Bases: MediaEvent

Base class for video events

__init__(*args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event

class platypush.message.event.video.VideoPauseEvent(*args, **kwargs)[source]#

Bases: VideoEvent

Event triggered when a video playback is paused

__init__(*args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event

class platypush.message.event.video.VideoPlayEvent(video=None, *args, **kwargs)[source]#

Bases: VideoEvent

Event triggered when a new video content is played

__init__(video=None, *args, **kwargs)[source]#
Parameters:

video (str) – File name or URI of the played video

class platypush.message.event.video.VideoStopEvent(*args, **kwargs)[source]#

Bases: VideoEvent

Event triggered when a video is stopped

__init__(*args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event