media.gstreamer
Platypush documentation
media.gstreamer
- class platypush.plugins.media.gstreamer.MediaGstreamerPlugin(sink: Optional[str] = None, *args, **kwargs)[source]
Bases:
MediaPlugin
Plugin to play media over GStreamer.
Requires:
gst-python
On Debian and derived systems:
[sudo] apt-get install python3-gi python3-gst-1.0
On Arch and derived systems:
[sudo] pacman -S gst-python
- __init__(sink: Optional[str] = None, *args, **kwargs)[source]
- Parameters:
sink – GStreamer audio sink (default:
None
, automatic).
- play(resource: Optional[str] = None, **args)[source]
Play a resource.
- Parameters:
resource – Resource to play - can be a local file or a remote URL
- seek(position: float) dict [source]
Seek backward/forward by the specified number of seconds.
- Parameters:
position – Number of seconds relative to the current cursor.