I was wondering how to have the boxart or flyer's delay? I found this online for video snap's as wondering how i would change it for boxart and flyer's.
local settings = {
delay_timer = 0,
play_delay = 3000
}
local artwork = fe.add_artwork("snap", 0, 0, 480, 360)
function on_transition(ttype, var, transition_time) {
if ( ttype == Transition.StartLayout || ttype == Transition.ToNewList || ttype == Transition.FromOldSelection ) {
artwork.video_flags = Vid.NoAutoStart
settings.delay_timer = fe.layout.time
}
return false
}
function on_tick(tick_time) {
if ( !artwork.video_playing && tick_time - settings.delay_timer >= settings.play_delay ) artwork.video_playing = true
}
fe.add_ticks_callback(this, "on_tick")
fe.add_transition_callback(this, "on_transition")