PHP中的VideoStream外部URL mp4文件
请帮我处理这个视频流,因为它不工作 我有视频链接 但它不能在普通的html5视频中播放 然后我来到这里,它工作得很好。 我已经尽力了,但还是不起作用 index.phpPHP中的VideoStream外部URL mp4文件,php,video-streaming,html5-video,mp4,Php,Video Streaming,Html5 Video,Mp4,请帮我处理这个视频流,因为它不工作 我有视频链接 但它不能在普通的html5视频中播放 然后我来到这里,它工作得很好。 我已经尽力了,但还是不起作用 index.php <video width="320" height="240" controls> <source src="stream.php" type="video/mp4"> </video> 文件 请帮助
<video width="320" height="240" controls>
<source src="stream.php" type="video/mp4">
</video>
文件
请帮助我在html5视频中处理该视频流。谢谢。如果您只想使用PHP将视频文件字节提供给HTML5
,请尝试:
(1) index.php:(可以是index.html
)
(2) stream.php:
<?php
$file = "http://91.121.207.115/downloads/American.Traitor.The.Trial.of.Axis.Sally.007.BR.mp4";
$contents = readfile( $file );
echo $contents; //# send back to HTML...
exit;
?>
非常感谢。工作起来像个符咒:)但不能向前或向后寻找。
<video width="640" height="400" controls>
<source src="stream.php" type="video/mp4">
</video>
<?php
$file = "http://91.121.207.115/downloads/American.Traitor.The.Trial.of.Axis.Sally.007.BR.mp4";
$contents = readfile( $file );
echo $contents; //# send back to HTML...
exit;
?>