The code is in the following.
                    Uri uri=Uri.parse(url);
                    Intent intent =new Intent();
                    intent.setDataAndType(uri, "video/*");
                    intent.setClassName("com.android.camera",
"com.android.camera.MovieView");
                    intent.setAction(Intent.ACTION_VIEW);
                    startActivity(intent);
url is a internet address begin with "http://"; or"rtsp://".
_________________________________________________________________________________________

On Aug 25, 11:26 pm, "Balwinder Kaur (T-Mobile USA)" <balwinder.k...@t-
mobile.com> wrote:
> You have not setup the MediaPlayer properly that is why you have an
> error. Could you please post your code ?
> Also, I guess you mean VideoView not MovieView (although I do some
> references to a MovieView in the documentation for MediaStore)
>
> Balwinder Kaur
> Open Source Development Center
> ·T· · ·Mobile· stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 25, 3:57 am, yjshi <[email protected]> wrote:
>
> > I use the movieview.java to playback the movie comes from the
> > internet.In a activity ,I wrote a Intent that jump to the movieview
> > and pass the movieview a url.But after several seconds,It  is closed
> > because something is wrong.
>
> > ________________________________________________________________________
> > W/InputManagerService( 1075): Starting input on non-focused client
> > com.android.internal.view.iinputmethodclient$stub$pr...@437bc7f0
> > (uid=10003 pid=1305)
> > W/IInputConnectionWrapper( 1305): showStatusIcon on inactive
> > InputConnection
> > I/ActivityManager( 1075): Displayed activity
> > com.android.stk/.StkDialogActivity: 439 ms (total 439 ms)
> > V/VideoView( 1305): reset duration to -1 in openVideo
> > W/IInputConnectionWrapper( 1119): showStatusIcon on inactive
> > InputConnection
> > E/PlayerDriver( 1030): Command PLAYER_PREPARE completed with an error
> > or info PVMFFailure
> > W/PlayerDriver( 1030): PVMFInfoErrorHandlingComplete
> > E/MediaPlayer( 1305): error (1, -1)
> > E/MediaPlayer( 1305): Error (1,-1)
> > D/VideoView( 1305): Error: 1,-1
> > E/MediaPlayer( 1305): stop called in state 0
> > E/MediaPlayer( 1305): error (-38, 0)
> > W/MediaPlayer( 1305): mediaplayer went away with unhandled events
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to