wait for event canplay to create the panel