2012年10月1日 星期一

MJPEG Streaming Issue on iOS6

Well done Apple, I got many complains from users that their app will crash after upgrade to iOS6.

After I checked the log, there are all error messages from CFNetwork.
Seems the internal error will lead to run out of memory!

CFNetwork internal error (0xc01a:/SourceCache/CFNetwork_Sim/CFNetwork-609/Connection/URLConnectionClient.cpp:1145)

What's more, only particular ip camera will have this issue....@#$%
Can't wait to console worldwide users, that I am using workaround:

Due to mjpeg stream is consist of continuous jpeg images.
Thus I using snapshot cgi rather than mjpeg stream cgi.

Will keep digging the root cause, and will update if have any news~ sigh

update:2012/10/05
Seems the boundary format is invalid!
Because the vendor defines boundary=--video boundary-- in the header
But comes out --video boundary--
It should be ----video boundary--

Here is the wiki definition of MIME multipart message

update:2012/10/13
Fix the boundary format issue, but still have the same problem >"<
Back to the origin...

update:2012/10/18

Bingo! We got a new f/w and fix another format issue~
The CFNetwork error never happen anymore, but I believe there are still other traps will cause the error! The fault tolerance of CFNetwork is too weak!!


Right Format






















Wrong Format

沒有留言:

張貼留言

內容回應