Another potential option would be to start the player with the height and width set to 0 (so the viewer does not see it) and if the player fires the ‘firstFrame’ event, resize the player to the desired size. You could also listen for any ‘setupError’ or ‘error’ events, which would indicate that the stream is not live and then call remove() on that player.
And do you have access to an HLS stream? RTMP requires Flash and therefore will not work on mobile devices. We’re also starting to see more aggressive Flash blocking on desktop browsers, so switching to HLS means your streams will be viewable on more devices.
This question has received the maximum number of answers.