Hi mkhays
The second one working i know that but its working some device only thats the problem its show the video can't played error.Its very urgent kindly help me.Otherwise could you please tell me how to integrate the youtube player in android app.How to integrate html5 player in android app.Please help me On Oct 12, 4:32 pm, mkhays <[email protected]> wrote: > Hi, the second one works if you have any video player installed on > your device.i have > tried it with .3gp links. > for the first one you may need to create your own player application > ebeded into > your application code so that you just pass the videos files to > it(using intents) > hope it helps > > On Oct 11, 10:38 am, Muthu S <[email protected]> wrote: > > > > > > > > > Hi > > > Anybody Know the solution for my issue please help me. > > > Issue: > > > How play the remote url videos in android app .Am try two kind of way > > but is not working correctly please find my two kind of codes. > > > vid="http://www.tamilclips.net/components/ > > com_contushdvideoshare/videos/24_hd.mp4" > > > 1. VideoView videoView = new VideoView(this); > > setContentView(videoView); > > MediaController mc = new MediaController(this); > > mc.setAnchorView(videoView); > > mc.setMediaPlayer(videoView); > > > videoView.setMediaController(mc); > > videoView.setKeepScreenOn(true); > > > videoView.setVideoPath(vid); > > videoView.start(); > > > 2. Uri uri = Uri.parse(vid); > > Intent intent = new Intent(Intent.ACTION_VIEW, uri); > > intent.setDataAndType(uri, "video/mp4"); > > startActivity(intent); > > > The first one not working but the second one is working but the > > android phone having streaming player option otherwise its show the > > video can't played error. -- 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

