How can I play videos and vast ads using videojs.com
I have already searched on Google and tried but nothing works
Talk Programming , Career, Mental Health, Talk Personal Finance ❤️ Post a query and receive responses ✅
Post a query and receive responses. Ask anything, Ask Mitra ❤️
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can play VAST ads using videojs.com by following these steps:
1. Include the Video.js library:
<script src=”//vjs.zencdn.net/4.11/video.js”></script>
2. Create a player:
<video id=”my-video” class=”video-js” controls preload=”auto” width=”640″ height=”264″ poster=”//vjs.zencdn.net/v/oceans.png” data-setup='{}’> <source src=”//vjs.zencdn.net/v/oceans.mp4″ type=”video/mp4″> <source src=”//vjs.zencdn.net/v/oceans.webm” type=”video/webm”> <source src=”//vjs.zencdn.net/v/oceans.ogv” type=”video/ogg”> <p class=”vjs-no-js”> To view this video please enable JavaScript, and consider upgrading to a web browser that <a href=”http://videojs.com/html5-video-support/” target=”_blank”>