Hide the Player if There Are No Videos

What if someone deletes the wrong video, or forgets to add videos to a playlist, so the player on your home page has no content? You can handle this situation through the Brightcove Player API by listening for player load errors and taking programmatic action. You can see a sample page that demonstrates this -- in this case the player is simply hidden by changing CSS properties if it has no content. The works for both single video and playlist players. View the source code to see how it's done.