form html5 version of the player, how is it possible to remove the black bars and fit the video to the video player and mantain the ratio? (so zoom it )
second question: is there any JS function to previously check if the vast tag will sends an ads or if it sends blank?
zooming the video is not supported in the HTML5 player. The best way to get a perfect fit of the video is to use the Studio application and set the exact player width and height to match the video size.
As for the second question, if a VAST tag is empty, no ads will load and the video playback will not be stopped. Is there any reason you need to detect this situation?
we’re using the HTML5 Player with an outstream/video in read format, this means that after the ads there’s no content to play.
Also the player expand itself in a page to play the ads, and it would be very useful to know if there will be an ads to serve to choose to show or not to show the player.
Do you think there’s some js api to use to check this?
Our ad API events do not provide this information (how many ads were loaded from the VAST XML).
You can probably add it if you have access to the player code but it is not available out of the box.
This following link demonstrates VAST ad events with the Kaltura player - maybe this can help: