mediaplayer¶
The mediaplayer
module contains the MediaPlayer class.
-
class
openlp.core.ui.media.mediaplayer.
MediaPlayer
(parent, name='media_player')[source]¶ Bases:
openlp.core.common.registryproperties.RegistryProperties
This is the base class media Player class to provide OpenLP with a pluggable media display framework.
-
load
(display)[source]¶ Load a new media file and check if it is valid
Parameters: display – The display to be updated.
-
play
(display)[source]¶ Starts playing of current Media File
Parameters: display – The display to be updated.
-
reset
(display)[source]¶ Remove the current loaded video
Parameters: display – The display to be updated.
-
resize
(display)[source]¶ If the main display size or position is changed, the media widgets should also resized
Parameters: display – The display to be updated.
-
seek
(display, seek_value)[source]¶ Change playing position of current Media File
Parameters: - display – The display to be updated.
- seek_value – The where to seek to.
-
set_live_state
(state)[source]¶ Set the State of the Live player :param state: State to be set :return: None
-
set_preview_state
(state)[source]¶ Set the state of the Preview Player :param state: State to be set :return: None
-
set_state
(state, display)[source]¶ Set the State based on the display being processed :param state: State to be set :param display: Identify the Display type :return: None
-
set_visible
(display, status)[source]¶ Show/Hide the media widgets
Parameters: - display – The display to be updated.
- status – The status to be set.
-
setup
(display)[source]¶ Create the related widgets for the current display
Parameters: display – The display to be updated.
-
stop
(display)[source]¶ Stop playing of current Media File
Parameters: display – The display to be updated.
-