mp4 from PHP - Not playing in HTML5 Video tag

≯℡__Kan透↙ 提交于 2019-11-27 14:31:21

The above code is working. After i changed the src url for .php files, it did actually work. Now it plays in moz, ie, chrome with only php files as sources in the video tag.

You will have to echo the path after retrieving it and pass it to the 'src' attribute of the Video Tag of HTML5. Your Current Strategy won't work well, i hope...

For example,

<source src="<?php echo getMp4VideoUrl(); ?>" type='video/mp4'/>

The browser identifies the video content from the header sent to it with the request. Just manipulate the header and keep the PHP extension. It will work perfect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!