更新时间:2023-02-14 14:07:18
奇怪的是,对代码进行了很小的调整即可解决该问题.
Strangely a very small tweak in code fixes the problem.
使用DOCUMENT_ROOT不仅可以解决$videoPath = "/path/to/file.mp4";
问题,而且还可以解决此问题.除了该文档代码是完美的.
Instead of just $videoPath = "/path/to/file.mp4";
using DOCUMENT_ROOT solves the issue. Other than that code of documentation is perfect.
$videoPath = $_SERVER["DOCUMENT_ROOT"] . "/mapapp/videos/test.mp4";