Hi Andy,

Good to see that the problem is not only specific to my environment :)
And I hope we could find a solution, or at least one Android engineer
will take a look at this post.

I still stuck on it... I tried on Android 1.6 (G1) and Android 2.1
(HTC Desire). Both do not work.

I'm currently looking into the MediaPlayer sources, to see if I can
get more details about the error and maybe fix the bug myself.

Cheers
Jean

On May 24, 9:45 am, Andy Savage <[email protected]> wrote:
> Hi there,
>
> Any answer to this question? It's bugging me too. Jean, can you tell
> us what version you are testing this on? Have you tried 2.1?
>
> Cheers,
> Andy
>
> On May 6, 3:32 pm, debelyoo <[email protected]> wrote:
>
>
>
> > Hi dillirao,
>
> > I don't receive onPrepared callback.
>
> > After requesting the live stream through the SDP file (http://
> > server_ip/live.sdp) I receive the following callbacks:
> > - onBufferingUpdate --> Buffering 100%
> > - onErrorCallback --> Command PLAYER_INIT completed with an error or
> > info PVMFErrCorrupt
>
> > My file is encoded in MPEG-4 part 2, audio is AAC, file format
> > is .mp4, resolution is 320x240. I have a bitrate of 700kbps but bw
> > should not be a problem since I'm on Wi-Fi.
> > I can stream the same file with a RTSP request from the Darwin server.
> > It works smoothly.
>
> > Any idea why the device returns this error ? evn though it can play
> > the same stream via RTSP ?
>
> > Jean
>
> > On May 5, 3:06 pm, dillirao malipeddi <[email protected]> wrote:
>
> > > did u received OnPrepared callback.
> > > Plz write a onErrorcallback and see, if you get error callback.
>
> > > whats video profile and audio profile you are using.
>
> > > use : h263/h264 15fps; 176x144 or 320x240  and use low bit rate , on
> > > internet ; if lan, bw is not issu
> > > for audio: use aac/ again try low bit rate encoding;... amr/ is ok...
>
> > > Thanks
>
> > > On Thu, Apr 29, 2010 at 6:32 PM, debelyoo <[email protected]> wrote:
> > > > I try to play a live stream on my android phone using the MediaPlayer
> > > > object. But I definitely see a black screen. Does anybody have any
> > > > experience with streaming on Android ?
>
> > > > Here is what I'm doing:
> > > > I broadcast a stream with Darwin streaming server (via
> > > > PlaylistBroadcast) to my Android phone. The stream is sent over RTP to
> > > > the IP of my device (unicast). A .sdp file describes my stream.
>
> > > > In my app, I try to play the stream with the following code where url
> > > > is "rtsp://server_ip/live.sdp"
>
> > > > private void playVideo(String url) {
> > > >        try {
> > > >                //media.setEnabled(false);
>
> > > >                if (player==null) {
> > > >                        //System.out.println("create MediaPlayer");
> > > >                        player=new MediaPlayer();
> > > >                        player.setScreenOnWhilePlaying(true);
> > > >                } else {
> > > >                        player.stop();
> > > >                        player.reset();
> > > >                }
>
> > > >                player.setDataSource(url);
> > > >                //holder.setFixedSize(320, 240);
> > > >                player.setDisplay(holder);
>
> > > >                player.setAudioStreamType(AudioManager.STREAM_MUSIC);
> > > >                player.setOnPreparedListener(this);
> > > >                player.prepareAsync();
> > > >                player.setOnBufferingUpdateListener(this);
> > > >                player.setOnCompletionListener(this);
> > > >        } catch (Throwable t) {
> > > >                System.out.println("Exception in media prep:
> > > > "+t.toString());
> > > >        }
> > > >    }
>
> > > > public void onPrepared(MediaPlayer mp) {
> > > >                //System.out.println("onPrepared");
>
> > > >                int width=player.getVideoWidth();
> > > >                int height=player.getVideoHeight();
>
> > > >                if (width!=0 && height!=0) {
> > > >                         holder.setFixedSize(width, height);
> > > >                         player.start();
> > > >                }
> > > > }
>
> > > > I always have a black screen, buffering remains at 0%.
> > > > I checked that I can play this live stream on VLC and QT on a desktop,
> > > > and it works fine. If I request the same file via a direct RTSP
> > > > request (rtsp://server_IP/myVideo.mp4) the file plays correctly on my
> > > > android phone.
>
> > > > I also tried to request the .sdp file by an HTTP request (http://
> > > > server_IP/live.sdp) but the result is the same (black screen).
>
> > > > Does anybody have already succeeded in playing a live stream on an
> > > > android phone ?
>
> > > > Cheers
> > > > Jean
>
> > > > --
> > > > 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]<android-developers%2Bunsubs
> > > >  [email protected]>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Thank you,
> > > Dilli Rao. Mwww.arijasoft.com
>
> > > --
> > > 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 
> > > athttp://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 
> > [email protected]
> > For more options, visit this group 
> > athttp://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 
> athttp://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

Reply via email to