Add our plugin instance to template context
Related: Support autoContinue timer, auto playback after
moved changeMedia into separate method