IOS7 media.playVideo API Error "_itemfailedtoplaytoend"

i use media.playVideo API, 

if i play 1min MP4 File, good play… but over 10min MP4 File play, when it just show error

_itemFailedToPlayToEnd: {

    kind = 1;

    new = 2;

    old = 0;

}

how to get solve this?

Does it give you that error right away?  Perhaps there is an encoding problem on the 10m file.  I’m not 100% sure but I think audio support through that API call is a surprise feature and isn’t supported.  I know it works for some people and some files.    Keep in mind that MP4 is just a wrapper around different stream types like H.264 and others and not all mp4’s are created equally.

If you can compare information about the two different files and see what is different about them, that might give you a clue.

Does it give you that error right away?  Perhaps there is an encoding problem on the 10m file.  I’m not 100% sure but I think audio support through that API call is a surprise feature and isn’t supported.  I know it works for some people and some files.    Keep in mind that MP4 is just a wrapper around different stream types like H.264 and others and not all mp4’s are created equally.

If you can compare information about the two different files and see what is different about them, that might give you a clue.

A good FREE tool for checking out containers / codecs is gspot, open it up, drop your file on it, and voila - all the details exposed.

http://download.cnet.com/GSpot/3000-2248_4-10381198.html?tag=mncol;1

Also: I am getting the exact same fail error when I try and playback a video that was recorded on android (using media.captureVideo with medium/low setting) on an iOS device…

On ios the player fails, and spits out this same message - my guess is the droid generated 3gp file is using an unsupported audio codec on ios - maybe dchan can check into it.

A good FREE tool for checking out containers / codecs is gspot, open it up, drop your file on it, and voila - all the details exposed.

http://download.cnet.com/GSpot/3000-2248_4-10381198.html?tag=mncol;1

Also: I am getting the exact same fail error when I try and playback a video that was recorded on android (using media.captureVideo with medium/low setting) on an iOS device…

On ios the player fails, and spits out this same message - my guess is the droid generated 3gp file is using an unsupported audio codec on ios - maybe dchan can check into it.