forked from Mediacore/mediaserver
Playback demo
This commit is contained in:
parent
5a67358fbf
commit
14dbe0f480
2 changed files with 13 additions and 1 deletions
|
@ -134,7 +134,7 @@ class BasicPlayer(GObject.GObject):
|
|||
self.pipeline = Gst.ElementFactory.make("playbin", None)
|
||||
self.videosink = Gst.ElementFactory.make("glimagesink", None)
|
||||
self.videosink.set_window_handle(self.window_handle)
|
||||
self.alsasink = Gst.ElementFactory.make("alsasink", None)
|
||||
self.alsasink = Gst.ElementFactory.make("fakesink", None)
|
||||
|
||||
# set output device
|
||||
#devicename = self.config["Devices.Output"].getStr('name')
|
||||
|
|
12
playvideo.py
Executable file
12
playvideo.py
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
import os, sys
|
||||
from mediaserver import client
|
||||
|
||||
player = client.MediaClient()
|
||||
|
||||
file = sys.argv[1]
|
||||
|
||||
print(f"Requesting playback of {file}")
|
||||
player.QuickPlay(file)
|
||||
|
||||
|
Loading…
Reference in a new issue