Source code for platypush.message.event.video

from platypush.message.event.media import MediaEvent


[docs]class VideoEvent(MediaEvent): """ Base class for video events """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class VideoPlayEvent(VideoEvent): """ Event triggered when a new video content is played """
[docs] def __init__(self, video=None, *args, **kwargs): """ :param video: File name or URI of the played video :type video: str """ super().__init__(*args, video=video, **kwargs)
[docs]class VideoStopEvent(VideoEvent): """ Event triggered when a video is stopped """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class VideoPauseEvent(VideoEvent): """ Event triggered when a video playback is paused """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class NewPlayingVideoEvent(VideoEvent): """ Event triggered when a video playback is paused """
[docs] def __init__(self, video=None, *args, **kwargs): """ :param video: File name or URI of the played video :type video: str """ super().__init__(*args, video=video, **kwargs)
# vim:sw=4:ts=4:et: