vlcplayer

The vlcplayer module contains our VLC component wrapper

class openlp.core.ui.media.vlcplayer.VlcPlayer(parent)[source]

Bases: openlp.core.ui.media.mediaplayer.MediaPlayer

A specialised version of the MediaPlayer class, which provides a VLC display.

check_available()[source]

Return the availability of VLC

get_info()[source]

Return some information about this player

load(display)[source]

Load a video into VLC

media_state_wait(display, media_state)[source]

Wait for the video to change its state Wait no longer than 60 seconds. (loading an iso file needs a long time)

pause(display)[source]

Pause the current item

play(display)[source]

Play the current item

reset(display)[source]

Reset the player

resize(display)[source]

Resize the player

seek(display, seek_value)[source]

Go to a particular position

set_visible(display, status)[source]

Set the visibility

setup(display)[source]

Set up the media player

stop(display)[source]

Stop the current item

update_ui(display)[source]

Update the UI

volume(display, vol)[source]

Set the volume

openlp.core.ui.media.vlcplayer.get_vlc()[source]

In order to make this module more testable, we have to wrap the VLC import inside a method. We do this so that we can mock out the VLC module entirely.

Returns:The “vlc” module, or None