Anna Schumaker
990a8047d9
My intention is to use this to handle GStreamer stuff so I can separate out the higher level functions like next(), previous(), and load_track() Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
12 lines
423 B
Python
12 lines
423 B
Python
# Copyright 2021 (c) Anna Schumaker.
|
|
from gi.repository import GObject
|
|
from gi.repository import Gst
|
|
|
|
class BassPlayer(GObject.GObject):
|
|
def __init__(self):
|
|
GObject.GObject.__init__(self)
|
|
self.video = Gst.ElementFactory.make("fakesink")
|
|
self.playbin = Gst.ElementFactory.make("playbin")
|
|
self.playbin.set_property("video-sink", self.video)
|
|
self.playbin.set_state(Gst.State.READY)
|