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 <flashingpumpkin@gmail.com> wrote:
Hello groupI'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 videoSorry, 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:HTTP/1.0 200 OKDate: Thu, 06 Oct 2011 10:47:35 GMTServer: WSGIServer/0.1 Python/2.6.1Last-Modified: Fri, 09 Sep 2011 11:31:34 GMTContent-Length: 1595696Content-Type: video/mp4HTTP/1.1 200 OKx-amz-id-2: 8yyvFaVj7+2/VnKnk+HgZOxr0xjYu15UmOh5MUsJBJ2QVDRMPj/vWDMpS1edIZ5cx-amz-request-id: 33DE6C6C051A3A15Date: Thu, 06 Oct 2011 10:48:42 GMTCache-Control: max-age=604800Last-Modified: Thu, 06 Oct 2011 10:02:12 GMTETag: "8b29fe5416377e4fde563756558310aa"Accept-Ranges: bytesContent-Type: video/mp4Content-Length: 1595696Server: AmazonS3Logcat output when attempting to play the file in the browser:D/MediaPlayer(11669): Couldn't open file on client side, trying server sideI/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,-2147483648When 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment