2021-06-30 16:10:37 -04:00
|
|
|
# Copyright 2021 (c) Anna Schumaker.
|
|
|
|
import sys
|
2021-09-02 16:10:39 -04:00
|
|
|
import tagdb
|
2021-08-30 17:29:44 -04:00
|
|
|
from gi.repository import Gst
|
2021-09-02 16:10:39 -04:00
|
|
|
from . import controls
|
2021-08-30 17:29:44 -04:00
|
|
|
from . import nowplaying
|
|
|
|
from . import player
|
2021-09-01 10:53:36 -04:00
|
|
|
from . import scale
|
2021-07-09 17:26:01 -04:00
|
|
|
|
2021-08-30 17:29:44 -04:00
|
|
|
Gst.init(sys.argv)
|
2021-07-09 17:26:01 -04:00
|
|
|
Player = player.Player()
|
2021-09-02 16:10:39 -04:00
|
|
|
tagdb.Stack.Counter = Player.Autopause
|
2021-08-30 17:29:44 -04:00
|
|
|
|
|
|
|
|
2021-09-02 16:10:39 -04:00
|
|
|
def AudioControls():
|
|
|
|
return controls.AudioControls(Player, Player.Autopause)
|
|
|
|
|
2021-08-30 17:29:44 -04:00
|
|
|
def NowPlaying():
|
|
|
|
return nowplaying.NowPlaying(Player)
|
2021-09-01 10:53:36 -04:00
|
|
|
|
|
|
|
def SeekControl():
|
|
|
|
return scale.ScaleButtonBox(scale.SeekScale(Player))
|