systemplayer¶
The systemplayer
contains the system (aka QtMultimedia) player component.
-
class
openlp.core.ui.media.systemplayer.
CheckMediaWorker
(path)[source]¶ Bases:
PyQt5.QtMultimedia.QMediaPlayer
Class used to check if a media file is playable
-
finished
¶
-
-
class
openlp.core.ui.media.systemplayer.
SystemPlayer
(parent)[source]¶ Bases:
openlp.core.ui.media.mediaplayer.MediaPlayer
A specialised version of the MediaPlayer class, which provides a QtMultimedia display.
-
check_media
(path)[source]¶ Check if a file can be played Uses a separate QMediaPlayer in a thread
Parameters: path – Path to file to be checked Returns: True if file can be played otherwise False
-
load
(display)[source]¶ Load a video into the display
Parameters: display – The display where the media is
-
pause
(display)[source]¶ Pause the current media item
Parameters: display – The display where the media is
-
play
(display)[source]¶ Play the current media item
Parameters: display – The display where the media is
-
seek
(display, seek_value)[source]¶ Go to a particular point in the current media item
Parameters: - display – The display where the media is
- seek_value – The where to seek to
-
static
set_duration
(controller, duration)[source]¶ Parameters: - controller – the controller displaying the media
- duration – how long is the media
Returns:
-
set_visible
(display, status)[source]¶ Set the visibility of the widget
Parameters: - display – The display where the media is
- status – The visibility status to be set
-