Android MediaPlayer Streaming from a PHP Redirect does not work-out!

BikiDas

New Member
The company I work for is developing an Android App that plays a video file from a URL on web. Thevideo URL is a parameter for a PHP script that encode it properly and redirects to the encoded video as shown below:\[code\]header('Content-Type: video/'.$format);header('Location:'.$output_video);\[/code\]Where \[code\]$output_video\[/code\] is the URL to the encoded video (it works if we use this URL in the browser) and \[code\]$format\[/code\] is the video format.But when I try executing the MediaPlayerDemo_Video from the API Demos using the streaming mode, I get an error like this:\[code\]MediaPlayer Command PLAYER INIT completed with an error or info PVMFErrCorruptMediaPlayer error (1. -10)MediaPlayer Error (1.-10)\[/code\]If we hard-code the URL and format in the PHP script, it also does not work out, but with a different error:\[code\]MediaPlayer info/warning (1. 28)MediaPlayer Info (1 .28)\[/code\]Does anyone have an idea on how to workaround this?Thanks in advance!
 
Back
Top