CromeCast flashing between videos

Hi all, Im using the Chrome Cast app to try and make a digital signage app. I’m currently doing it using a collection of YouTube videos that Im trying to stream one after another but this just leads to the screen flashing at the end of every video, then a homey logo spinning followed by a clunky/ flashing start to the next video. Is there anyone here who has done anything similar or who has any ideas of how to make it look professional