本文介绍了Mjpeg在最近的Mobile Safari上损坏了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在播放IP摄像机的实时mjpeg流,发现在最近的Mobile Safari版本中似乎不再支持mjpeg.

I am playing with live mjpeg streams from IP cameras and found that support for mjpeg seems to be broken on recent Mobile Safari releases.

我正在使用一个带有嵌入式图像的简单HTML测试页,如下所示:

I am using a simple HTML test page with an embedded image as follows:

<img src="http://[ip_address]/[path]">

这在装有iOS 5.1的iPhone 4S上可以正常使用,但在装有iOS 7.0.3的iPad上却无法显示任何内容.

This works fine on an iPhone 4S with iOS 5.1, but doesn't show anything on an iPad with iOS 7.0.3.

有人可以确认吗?有任何已知的解决方法吗?

Can someone confirm this? Any known workarounds?

推荐答案

iPhone(以及OSX)对MJPEG的支持在过去经常遭到破坏,我可以确定现在我也遇到了同样的问题我的iPhone 5版本7.0.4上有MJPEG流.

MJPEG support on iPhone (and on OSX also) has been often broken in the past, and I can confirm that right now I'm having the same problem with MJPEG streams on my iPhone 5, version 7.0.4.

您可以在Apple网站上找到一些有关此问题的话题,其始于2013年中期,并提供了一些近期答案,例如 https://discussions.apple.com/message/22933450#22933450

You can find some threads talking about this problem in the apple website, dating from mid 2013 and with a few recent answers, like this one https://discussions.apple.com/message/22933450#22933450

如果您可以控制流,则此发布一种可能的解决方案: https://discussions.apple.com/thread/4347848

This one posts a possible solution, if you can control the stream:https://discussions.apple.com/thread/4347848

我没有尝试过此解决方案是否可行,因为我无法更改流本身.

I have not tried if this solution works, because I can't change the stream itself.

问题也出在OSX Lion上: https://discussions.apple.com/message/19028348#19028348

And the problem was also on OSX Lion :https://discussions.apple.com/message/19028348#19028348

他们说它已在OSX中修复,并且已经向ios提交了一些错误报告,但找不到是否以及何时修复它们.

They say it has been fixed in OSX, and that some bug reports has been filed for ios, but can't find if and when they will be fixed.

我再也找不到它了,但是在评论中,有人猜测是有意在iPhone上禁用/限制了MJPEG支持,因为有些用户在忘记将移动浏览器连接到流mjpeg图像的站点时会消耗其移动带宽,但是可以找不到该主张的引用.

I can't find it again, but in a comment someone speculate that MJPEG support was disabled/limited on purpose on iPhone because some users had their mobile bandwidth consumed when forgetting mobile safari connected to a site streaming mjpeg images, but can't find a reference to that claim.

这篇关于Mjpeg在最近的Mobile Safari上损坏了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 07:30