Hi Steven

   Really thanks for your answer am try this its working but  play the
remote mp4 url videos thats my problem i use the following code but its
show error in some device please help me .i want to play the you tube and
remote mp4 videos  within my app kindly help me.Its very urgent.

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.

On Fri, Oct 14, 2011 at 10:31 AM, Studio LFP <studio....@gmail.com> wrote:

> You normally don't add the YouTube player into your application, you call
> an ACTION_VIEW intent on a YouTube URL.
>
> Intent iVisitSite = new Intent( Intent.ACTION_VIEW, Uri.parse(
> YOUTUBE_URL_HERE ) );
> startActivity( iVisitSite );
>
> I think some people have tried to get it to work in a WebView, but you'd
> have to Google search that.
>
> Steven
> Studio LFP
> http://www.studio-lfp.com
>
>
>
> On Thursday, October 13, 2011 5:28:19 AM UTC-5, Muthu S wrote:
>>
>> Hi all
>>
>>         If anybody knows how to integrate the youtube player in
>> android app.
>
>  --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
*Thanks  and Regards
S.MUTHU MCA
Web Developer in Contus Support *
*Think-Operate-Prove   *

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to