Mp4下载而不是在Safari中播放 [英] Mp4 downloading instead of playing in Safari

查看:1075
本文介绍了Mp4下载而不是在Safari中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS设备中遇到了一个奇怪的问题。我正在使用一个在桌面上运行mp4文件的流程图。说到iphone和ipad,视频没有播放。相同的文件取自( http://techslides.com/demos/sample-videos/small .mp4 )在浏览器中打开,但上传到我的服务器时没有播放。

I am facing a wierd issue in iOS devices. I am using a flowplayer which has mp4 file working in desktops. When it comes to iphone and ipad, the video is not playing. The same file taken from (http://techslides.com/demos/sample-videos/small.mp4) is opening in browser but when uploaded to my server is not playing.

我试图用Mac Safari麻烦。互联网位置的文件正在浏览器中播放,但上传到我的服务器的文件正在下载。

I tried to troublehsoot with Mac Safari. The file at internet location is playing in browser but the same file uploaded to my server is getting downloaded.

我怀疑请求或respose中的标题有问题。有什么帮助?

I doubt there is something wrong with headers in request or respose. Any help ?

推荐答案

好的,我得到了答案。我的服务器没有mp4的MIME类型,它正在以视频/ octet的形式提供视频..我改为视频/ mp4并且工作正常:)

Okay, I got the answer. My server does nt have the MIME type for mp4 and it was serving the video as application/octet.. I changed to video/mp4 and it worked :)

这篇关于Mp4下载而不是在Safari中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆