vision.playout module

class vision.playout.Playout(service, player_class=None)[source]

Bases: object

cancel_still()[source]
cue_next_program()[source]

Starts the next program

Set the next program with Playout.set_next_program

cue_program(program, resume_offset=0)[source]

Starts the given program

getDelayForNext()[source]
on_idle()[source]
on_program_ended()[source]
try:
logging.debug(“Video ‘%s’ #%i ended with %.1fs left. ” % (
self.playing_program.title, self.playing_program.media_id, self.player.seconds_until_end_of_playing_video()) )

pass

# TODO: Add proper exception/exceptionlogging except:

logging.warning(“Excepted while trying to log on_program_ended”)
play_ident()[source]
play_jukebox()[source]
resume_current_program()[source]
resume_playback()[source]
set_next_program(program)[source]
set_schedule(schedule)[source]

Set schedule and start playing

show_still(filename='stills/tekniskeprover.png')[source]
start_schedule()[source]
stop_schedule()[source]
class vision.playout.PlayoutService[source]

Bases: object

add_observer(observer)[source]
on_playback_started(program)[source]
on_set_next_program(program)[source]
on_set_schedule(program)[source]
on_still(name)[source]
remove_observer(observer)[source]
vision.playout.start_test_player()[source]