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
signals(origin, status)[source]
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_available()[source]

Check if the player is available

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
disconnect_slots(signal)[source]

Safely disconnect the slots from signal

get_info()[source]

Return some info about this player

get_media_display_css()[source]

Add css style sheets to htmlbuilder

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
reset(display)[source]

Reset the media player

Parameters:display – The display where the media is
resize(display)[source]

Resize the display

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
setup(display)[source]

Set up the player widgets :param display:

stop(display)[source]

Stop the current media item

Parameters:display – The display where the media is
update_ui(display)[source]

Update the UI

Parameters:display – The display where the media is
volume(display, volume)[source]

Set the volume

Parameters:
  • display – The display where the media is
  • volume – The volume to be set