I enhance a mobile page by ASP MVC. How can I embed the video file in the cshtml page that iphone/android can autoplay the video when browse the page?
Need to use html5 ?
Thanks
Joe
There is no difference between ASP.NET MVC or any other web development framework.
Here is sample from w3schools.com on HTML5 video autoplay Attribute
<video controls="controls" autoplay="autoplay">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
Your browser does not support the video tag.
</video>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With