info-beamer/package-scheduled-player

Skipping a page from a tile/plugin

quintenstar opened this issue · 1 comments

I don't think it's possible yet, but it would be awesome if it were possible to be able to tell the scheduler to skip a page/slide from a child tile/plugin.

It would be nice for cases when there is no dynamic content available to be shown by the plugin. And not having to display fallback assets as an alternative.

This is actually possible already: If the tile exports a can_show function and that function returns false, the whole page will be skipped during each scheduling round. See

function M.can_show(config)
local mode = config.mode or 'all_talks'
print("probing frab mode", mode)
-- these can always play
if mode == "day" or
mode == "clock" or
mode == "all_talks"
then
return true
end
return not not current_room
end