Re: [android-developers] Re: How to play youtube videos within custom android activity

2011-01-06 Thread satishsalimath salimath
download youtube downlloader right click on video copy url and paste it in
downloader and viw it on real one player
With Regards
Satish.S


On Tue, Jan 4, 2011 at 6:18 PM, Sohil sohilva...@hotmail.com wrote:

 Hi,

 Try using video element of HTML5, though its experimental. but it will
 help for your problem
 put the webview component and load the static file with dynamic url to
 webview.
 It wont work for all the video that would be the limitation.
 Its supported in android 2.0+ .

 video id=video autobuffer height=240 width=360
 source src=BigBuck.m4v
 source src=BigBuck.webm type=video/webm
 source src=BigBuck.theora.ogv type=video/ogg
 /video




  --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://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 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

[android-developers] Re: How to play youtube videos within custom android activity

2011-01-04 Thread Jonathan Foley


Huh? All the mobile youtube apps that aren't flash native are pulling
down h264 video.

So the trick is not converting them, but rather figuring out what the
links are to those h264 videos. It may be special keys are required,
but there are some HTML5 demo sites floating around that have
javascript that pulls down those h264 videos, so people have figured
out how to get them. You can't request them via the YouTube API, which
is pretty strange, but all the youtube download scripts pull them
down.

Jonathan


On Jan 3, 11:42 pm, Kumar Bibek coomar@gmail.com wrote:
 You need to understand first that youtube videos are generally in flv
 format, and the SDK doesn't provide default decoders or apis to handle
 such media. If you have to create your own player, then you have the
 tough task of converting the flv files to other supported media and
 then continue.

 On Jan 4, 10:49 am, sanjay sanjayujjain...@gmail.com wrote:







  Hi,

  I am able to play youtube videos by

  startActivity(new Intent(Intent.ACTION_VIEW, 
  Uri.parse(http://www.youtube.com/watch?v=cxLG2wtE7TM;)));

  But this leave my application and starts the player activity where I
  have no control, How can I play youtube videos within my activity, as
  I have to provide the user some option menu?

  Let me know how can I achieve this.

  Thanks
  Sanjay Ujjainkar

-- 
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


[android-developers] Re: How to play youtube videos within custom android activity

2011-01-04 Thread Sohil
Hi,

Try using video element of HTML5, though its experimental. but it will 
help for your problem
put the webview component and load the static file with dynamic url to 
webview.
It wont work for all the video that would be the limitation.
Its supported in android 2.0+ .

video id=video autobuffer height=240 width=360
source src=BigBuck.m4v
source src=BigBuck.webm type=video/webm
source src=BigBuck.theora.ogv type=video/ogg
/video




-- 
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

[android-developers] Re: How to play youtube videos within custom android activity

2011-01-04 Thread Sudheer
You can create a custom Activity with a Webview on it. You can load
the youtube on the webview. My 2 cents.

Cheers
Sudheer

On Jan 4, 10:49 am, sanjay sanjayujjain...@gmail.com wrote:
 Hi,

 I am able to play youtube videos by

 startActivity(new Intent(Intent.ACTION_VIEW, 
 Uri.parse(http://www.youtube.com/watch?v=cxLG2wtE7TM;)));

 But this leave my application and starts the player activity where I
 have no control, How can I play youtube videos within my activity, as
 I have to provide the user some option menu?

 Let me know how can I achieve this.

 Thanks
 Sanjay Ujjainkar

-- 
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


Re: [android-developers] Re: How to play youtube videos within custom android activity

2011-01-04 Thread Kumar Bibek
Yeah, but it wont play on all phones though, which don't have flash.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Jan 4, 2011 at 8:20 PM, Sudheer sudheer.k.b...@gmail.com wrote:

 You can create a custom Activity with a Webview on it. You can load
 the youtube on the webview. My 2 cents.

 Cheers
 Sudheer

 On Jan 4, 10:49 am, sanjay sanjayujjain...@gmail.com wrote:
  Hi,
 
  I am able to play youtube videos by
 
  startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(
 http://www.youtube.com/watch?v=cxLG2wtE7TM;)));
 
  But this leave my application and starts the player activity where I
  have no control, How can I play youtube videos within my activity, as
  I have to provide the user some option menu?
 
  Let me know how can I achieve this.
 
  Thanks
  Sanjay Ujjainkar

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://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 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

[android-developers] Re: How to play youtube videos within custom android activity

2011-01-03 Thread Kumar Bibek
You need to understand first that youtube videos are generally in flv
format, and the SDK doesn't provide default decoders or apis to handle
such media. If you have to create your own player, then you have the
tough task of converting the flv files to other supported media and
then continue.

On Jan 4, 10:49 am, sanjay sanjayujjain...@gmail.com wrote:
 Hi,

 I am able to play youtube videos by

 startActivity(new Intent(Intent.ACTION_VIEW, 
 Uri.parse(http://www.youtube.com/watch?v=cxLG2wtE7TM;)));

 But this leave my application and starts the player activity where I
 have no control, How can I play youtube videos within my activity, as
 I have to provide the user some option menu?

 Let me know how can I achieve this.

 Thanks
 Sanjay Ujjainkar

-- 
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