Monday, June 18, 2012

Re: [android-developers] How to play youtube videos in background

sounds like a Youtube downloader to me.

On Monday, June 18, 2012 2:03:38 PM UTC-4, MagouyaWare wrote:
Maybe it's just me, but why in the world would you want to play a video in the background?  Playing music in the background makes sense, but a video?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Jun 15, 2012 at 1:59 AM, snow69it <raix5867@gmail.com> wrote:
Hi, All:

I am developing youtube player which can play in background as
service.
Because MediaPlayer class can play only 3gp, so I use webview and
youtube api chromeless player.

It works well in Activity, but not work in Service, because the player
can't initialized in background.
(When Chromeless player is initialized, Chromeless player call
onYouTubePlayerReady(playerId) callback function. But it never called
in background.)

I found that player can't initialize in Activity if webview is hidden
in any other views.

How to initialize the player in background?
Or are there any other way to play youtube video in background
service?

Hope your help.
Thanks and Regard

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

No comments:

Post a Comment