Hey, I recently fell into similar problem. Browsing through web i came to know the problem is known to amazon, follow the thread for the same " https://forums.aws.amazon.com/thread.jspa?threadID=77663" It has to do with "https" protocol. Try using "http" instead, works very well to me.
Br, Varun On Thu, Oct 6, 2011 at 4:20 PM, Alen Mujezinovic <[email protected]>wrote: > Hello group > > I've run into a problem today that I can't solve. We're building a small > app that stores video files on S3 and offers playback in the browser. This > works fine on desktop browsers and iOS mobile devices but when trying to > play the videos on Android an error message pops up: > > *Cannot play video* > > Sorry, this video cannot be played. > > > When serving the same file from our servers though, it plays fine. > > Here's the headers returned from the local server and from S3: > > $ curl -I 127.0.0.1:8000/media/videos/2011/09/07/test-edit-1.mp4 > HTTP/1.0 200 OK > Date: Thu, 06 Oct 2011 10:47:35 GMT > Server: WSGIServer/0.1 Python/2.6.1 > Last-Modified: Fri, 09 Sep 2011 11:31:34 GMT > Content-Length: 1595696 > Content-Type: video/mp4 > > > $ curl -I > https://theeditpool.s3.amazonaws.com/test-client/foo/videos/2011-10-06-asdf.mp4 > > HTTP/1.1 200 OK > x-amz-id-2: > 8yyvFaVj7+2/VnKnk+HgZOxr0xjYu15UmOh5MUsJBJ2QVDRMPj/vWDMpS1edIZ5c > x-amz-request-id: 33DE6C6C051A3A15 > Date: Thu, 06 Oct 2011 10:48:42 GMT > Cache-Control: max-age=604800 > Last-Modified: Thu, 06 Oct 2011 10:02:12 GMT > ETag: "8b29fe5416377e4fde563756558310aa" > Accept-Ranges: bytes > Content-Type: video/mp4 > Content-Length: 1595696 > Server: AmazonS3 > > > Logcat output when attempting to play the file in the browser: > > D/MediaPlayer(11669): Couldn't open file on client side, trying server side > I/StagefrightPlayer( 68): setDataSource(' > https://theeditpool.s3.amazonaws.com/test-client/foo/videos/2011-10-06-asdf.mp4 > ') > E/MediaPlayer(11669): error (1, -2147483648) > E/MediaPlayer(11669): Error (1,-2147483648) > D/VideoView(11669): Error: 1,-2147483648 > > > When opening the url *directly* the browser downloads the video file. > > > Any pointers would really be appreciated. I've not found out what is going > wrong here... > > Alen > > > -- > 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 -- 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

