在 HTML 视频标签中使用 php 文件包含 header 视频文件的位置
Using php file in HTML video tag containing header location to a video file
我想到了一些以前从未见过的奇怪东西。
我用了<source type="video/webm" src="test.php">
而不是<source type="video/webm" src="example.webm">
...Test.php 文件只包含这行代码:
header("Location: https://www.example.com/example.webm");
而且有效..
这是正常的还是可能对 video/loading/flash(或浏览器支持)有一些不利影响,直接使用 test.php
或 example.webm
实际上有什么区别吗?我很困惑,因为我所知道的……这好得令人难以置信,而且太简单了。将不胜感激 comment/pointer...
可以使用。浏览器在访问test.php时只是查找“https://www.example.com/example.webm”,所以负载差异很小。 (只要您的浏览器被重定向即可)。
我想到了一些以前从未见过的奇怪东西。
我用了<source type="video/webm" src="test.php">
而不是<source type="video/webm" src="example.webm">
...Test.php 文件只包含这行代码:
header("Location: https://www.example.com/example.webm");
而且有效..
这是正常的还是可能对 video/loading/flash(或浏览器支持)有一些不利影响,直接使用 test.php
或 example.webm
实际上有什么区别吗?我很困惑,因为我所知道的……这好得令人难以置信,而且太简单了。将不胜感激 comment/pointer...
可以使用。浏览器在访问test.php时只是查找“https://www.example.com/example.webm”,所以负载差异很小。 (只要您的浏览器被重定向即可)。