woob.tools.application.media_player

exception InvalidMediaPlayer(player_name)[source]

Bases: Exception

class MediaPlayer(logger=None)[source]

Bases: object

Black magic invoking a media player to this world.

Presently, due to strong disturbances in the holidays of the ether world, the media player used is chosen from a static list of programs. See PLAYERS for more information.

guess_player_name()[source]
play(media, player_name=None, player_args=None)[source]

Play a media object, using programs from the PLAYERS list.

This function dispatch calls to either _play_default or _play_rtmp for special rtmp streams using SWF verification.

exception MediaPlayerNotFound[source]

Bases: Exception