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

使用此播放器播放存储在腾讯云的flv,播放不了,但是这个flv地址通过其他播放器是可以的 #8

Closed
solocao opened this issue Nov 6, 2017 · 7 comments
Assignees

Comments

@solocao
Copy link

solocao commented Nov 6, 2017

flv地址:http://1253804432.vod2.myqcloud.com/3712977fvodgzp1253804432/f3f31e5f9031868223411915443/f0.flv

vlc播放成功、腾讯tcplayer也能播放。
2017-11-06 4 21 17
使用chimee播放报错。

Failed to load http://1253804432.vod2.myqcloud.com/3712977fvodgzp1253804432/f3f31e5f9031868223411915443/f0.flv: Response for preflight has invalid HTTP status code 400

2017-11-06 4 22 37

麻烦团队大牛帮我看一下,是解码器的问题吗?

@toxic-johann
Copy link
Member

提供一个线上复现环境

看上去像是视频源的问题。

@songguangyu 关注一下。

@huzunjie
Copy link
Member

huzunjie commented Nov 6, 2017

@solocao 需要您确认一下腾讯云的视频资源是否有开启防盗链拦截? 通过现象看是服务端直接拒绝了视频资源请求。

@songguangyu
Copy link
Member

nginx 请求需要配置 OPTIONS, nginx 在请求时需要配置跨域请求header

@songguangyu
Copy link
Member

看了一下视频流 只有视频 没有音频, 这个问题会在下个小版本 修复次问题。感谢 @solocao 的反馈 !
@332065255 编解码那块需要支持一下。

@songguangyu
Copy link
Member

@solocao chimee-kernel-flv@1.2.2 chimee-kernel-flv模块更新到1.2.2 可以支持only video 模式

@solocao
Copy link
Author

solocao commented Nov 8, 2017

换成最新包已经解决了播放问题。还有一个问题,就是现在获取视频资源会先发预检请求,腾讯云的链接资源是可以下载的,但是会报跨域的错。

Failed to load http://1253804432.vod2.myqcloud.com/3712977fvodgzp1253804432/f3f31e5f9031868223411915443/f0.flv: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:10001' is therefore not allowed access. The response had HTTP status code 403. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

可以提供其他的请求配置吗。解决一下这个跨域问题。(PS 要是存放到自己服务器,我们会服务器端配置,但是腾讯云控制台没有看到相关配置功能,只有个白名单、黑名单),其他某些flash播放器,是直接可以播放的额。

@songguangyu
Copy link
Member

下一版会支持 start end 的get 参数查询

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

No branches or pull requests

4 participants