Closed 1026742642 closed 5 months ago
4.1.5
Docker
Linux
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
docker-compose部署, 在线预览大文件视频,报错 请求:
curl 'http://192.168.1.2:8888/api/storage/file/item' \ -H 'Accept: application/json, text/plain, */*' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json;charset=UTF-8;' \ -H 'Cookie: wp-settings-time-1=1676004471; ajs_anonymous_id=fca1f6dd-fb63-403b-abf5-b79d5d13ae3d; Hm_lvt_43e89c38a9e9332e702161a0c19bba11=1694652320; did=swB--KYkiLfnrBQnjG-WS01bzcJHuneNUgv3dIJkqJs8pGLHQaRXpDQ1o92rFjIsTSIYO0TYd9MeSUKjA3XZqw; _SSID=fOrwQ5w5BilTsQWg-hmwSYqg-PGQ8KBZw4DQvPlRETQ; _CrPoSt=cHJvdG9jb2w9aHR0cDo7IHBvcnQ9OTM1MDsgcGF0aG5hbWU9Lzs%3D; _xsrf=2|9362d4e8|827cf4842892212af9914e897a08ba3f|1703832401; username-192-168-1-2-10000=2|1:0|10:1704156297|26:username-192-168-1-2-10000|196:eyJ1c2VybmFtZSI6ICJjZmZhYzgyODdkYzU0ZGFhYjk3ODkwZTZiM2YwZjdjZCIsICJuYW1lIjogIkFub255bW91cyBDeWxsZW5lIiwgImRpc3BsYXlfbmFtZSI6ICJBbm9ueW1vdXMgQ3lsbGVuZSIsICJpbml0aWFscyI6ICJBQyIsICJjb2xvciI6IG51bGx9|15049c78bca26642526cd3dc19ea206d5ca102abea368f450cf964f95defc690; zfile-token=2f34ad88-82a0-4df3-956d-a9356ff94db3' \ -H 'Origin: http://192.168.1.2:8888' \ -H 'Referer: http://192.168.1.2:8888/4/vedio' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \ -H 'axios-request: true' \ -H 'zfile-token: 2f34ad88-82a0-4df3-956d-a9356ff94db3' \ --data-raw '{"storageKey":"4","path":"/vedio/__fengshen.mp4__/video.m3u8","password":""}' \ --compressed \ --insecure
返回结果:
{ "code": 500, "msg": "获取文件信息失败: 文件代理下载失败, 文件路径: /vedio/__fengshen.mp4__/video.m3u8", "data": null, "dataCount": null, "traceId": "f6950919-28cd-4036-aba0-2e6a446eda26" }
查看目录没有生成相应的m3u8, 需要将整个视频缓冲下来才能看
大型视频支持流播放
参考:
zfile 不是自动生成 m3u8 文件,而是支持那种格式的文件来播放。
环境信息
4.1.5
Docker
Linux
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
复现步骤
docker-compose部署, 在线预览大文件视频,报错 请求:
返回结果:
查看目录没有生成相应的m3u8, 需要将整个视频缓冲下来才能看
预期结果
大型视频支持流播放
实际结果
大型视频支持流播放
额外信息
参考: