开发者

how to make a video play that has browser support?

开发者 https://www.devze.com 2023-04-02 13:19 出处:网络
Is there any plugins required? I don\'t want users to download a plugin in order to play a video. Is there any video player that supports playing the video in all browsers?

Is there any plugins required?

I don't want users to download a plugin in order to play a video. Is there any video player that supports playing the video in all browsers?

The code below is for playing audio files. Is there any way to play video files using the same code but renaming the "Content type" to that of which supports video?

I have no idea how this works. How do I even tell php that I want my video to stream which is saved in mysql?

<?php
header("Content-type: audio/mp3");
$con=mysql_connect("localhost","root","");
$db=mysql_select_db("test");
$query="select VideoClip from Video where VideoID=1";
$r开发者_开发技巧s=mysql_query($query);
$song=mysql_result($rs,0,0);
echo $song;
?> 


Short answer: no.

Longer answer: all browser and operating systems have their preferred way of rendering video (see this for more explanation) so if you both want your users to not have to use a plugin AND use the same player, you're out of luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号