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

用fetch接口,视频变成了音频 #164

Closed
happyming9527 opened this issue Jul 25, 2016 · 7 comments
Closed

用fetch接口,视频变成了音频 #164

happyming9527 opened this issue Jul 25, 2016 · 7 comments

Comments

@happyming9527
Copy link

happyming9527 commented Jul 25, 2016

@forresty @rainux @lidaobing @ledowong 你好, 我按照你的examples里面的fetch的例子,用七牛从外链获取资源.获取图片没有任何问题,但是获取视频,明明是mp4的格式,七牛获取之后变成了audio/mpeg3格式.请问这是怎么回事?

@longbai
Copy link
Contributor

longbai commented Jul 26, 2016

我们看下

@longbai
Copy link
Contributor

longbai commented Jul 26, 2016

麻烦给下 资源 链接

@happyming9527
Copy link
Author

happyming9527 commented Jul 26, 2016

@happyming9527
Copy link
Author

@longbai 我发现上传上去的文件,只是七牛识别成了audio/mpeg3,下载下来,或者加到html页面中播放,并不影响使用.也不影响截帧操作.不过,不知道是否有其他影响?

@rwifeng
Copy link

rwifeng commented Jul 26, 2016

@happyming9527 你的源文件响应的content type就是:audio/mpeg3
我们识别的信息就是http响应的头的:Content-Type

curl -I http://img.mamashai.com/upload/video/2013-08-06/1/path/tixhr-655512128.mp4
HTTP/1.1 200 OK
Server: AliyunOSS
Date: Tue, 26 Jul 2016 06:35:55 GMT
Content-Type: audio/mpeg3
Content-Length: 28038867
Connection: keep-alive
x-oss-request-id: 579704CB3E7845F85B3D486D
x-oss-bucket-storage-type: standard
Accept-Ranges: bytes
ETag: "ACCD0B6F79D0534975688B1A0AEA208F"
Last-Modified: Tue, 29 Apr 2014 03:50:43 GMT
x-oss-object-type: Normal
x-oss-server-time: 9

@happyming9527
Copy link
Author

@rwifeng 阿里云的响应是没法改了, 那请问文件迁移到七牛后, 这个文件格式有接口修改么,我只想改下它在你们系统中被识别的格式.文件本身下载下来是没有任何播放问题的

@longbai
Copy link
Contributor

longbai commented Jul 26, 2016

可以改,有API,portal上也可以改

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

3 participants