Video Element
Most of the mobile banners use standard HTML5 Video API for inserting video elements. All of the Mobile Rich Media banners can use HTML5 Video API, but some of them (e.g. 3D Cube) has custom implementation of it. Please refer to a specific documentation in such cases.
-
HTML
<video id="video" controls> <source src="assets/video.mp4" type="video/mp4"> </video>
-
Using Additional Assets
var video = document.getElementById("video"); video.src = Adform.getAsset(1); video.poster = Adform.getAsset(2);