On Mon, Sep 27, 2010 at 2:47 AM, mahesh patil
<[email protected]> wrote:
> I have a problem in playing video file in android using VideoView.
>
> When I keep the .3gp video file locally in res/raw folder, the video
> file plays successfully.
> But when I keep this same file on live web server and stream it, it
> runs on Android G1, Nexus one and Tatoo which I have for testing.
> But It fails to stream and play on Motorola milestone.
>
> I got the error on device as: 'This video is not valid for streaming'.

I do not know if 3GP files can be streamed or what the rules are for it.

For MP4 files, the MOOV atom must appear before the first MDAT atom.
Running MP4Box -hint will fix up this problem:

http://gpac.sourceforge.net/doc_mp4box.php

You might try MP4Box with both -hint and -3gp, given an MP4 source
file, to see if it gives you a 3GP file that is safe for streaming.

Also note that the above recipe is for Android 2.1 and earlier.
Android 2.2 started the process of switching the multimedia engine
from OpenCORE to StageFright. I do not know if StageFright has the
same limitation for streaming as does OpenCORE or if Android 2.2 uses
StageFright for video playback.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to