Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The media could not be loaded, either because the server or network failed or because the format is not supported. #290

Open
Xushlin opened this issue Jun 5, 2019 · 4 comments

Comments

@Xushlin
Copy link

Xushlin commented Jun 5, 2019

播放一会就出现下面的错误这个怎么解决:The media could not be loaded, either because the server or network failed or because the format is not supported. 官网的第三个例子也出现了这个错误
https://surmon-china.github.io/vue-video-player/

@past-code
Copy link

同问,有知道的帮忙回答下?

@myf-sky
Copy link

myf-sky commented Jun 17, 2019

请问这个问题解决了吗?我也遇到了。但是我要是播放网络上的直播流,无论是rtmp的还是hls的,都可以正常播放,切换到我在阿里云推送的视频流就播放不了了,感觉像是视频流格式有什么坑。

@Xushlin
Copy link
Author

Xushlin commented Jun 20, 2019 via email

@Drikold
Copy link

Drikold commented Aug 22, 2023

注意看一下控制台,是否存在跨域问题(报错Access-Control-Allow-Origin),跨域问题需要配置一下nginx,操作参考文档:https://blog.csdn.net/m0_52789121/article/details/126789827。如何确实是否是跨域问题,尝试在谷歌浏览器中安装扩展工具:Allow CORS,安装完成后激活工具后,看视频能否播放。可以播放后,则既是跨域问题,请修改nginx。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants