Hello All,
I am in need of help in one of my R&D. I am having one application in which
I would like to play YouTube Videos. I do some googling and I found lots of
tutorial on how to play YouTube videos in Android. But most of all gives me
the solution which uses *WebView/VideoView*.
For e.g. *startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM")));*
This will play the video in WebView. But I don't want to use WebView, Can't
we use MediaPlayer functionality to do this task? Also I would like to
Buffer/Cache the video in background to make it user friendly.
*1) So my question is how to play YouTube video through MediaPlayer in
Android?*
*2) Same time how to buffer/cache the video in
Background/Service/AsyncTask? For e.g you clicked on 1 video from listview
and then user go back to the listview or do some other task and in mean
time the video will be buffered in background and after some time user can
view that video.*
If anyone have any idea please kindly guide me.
Thanks & Regards
Keyur Ashra
--
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