Enabling background play of YouTube videos in web browser

133 views
Skip to first unread message

gstor...@gmail.com

unread,
Apr 9, 2017, 11:23:28 PM4/9/17
to CodenameOne Discussions
Greeting Shai,
My app had to reject it because it violates our device and network abuse policy .
They told "Modify your app to make sure it doesn’t access or use a service or API in a manner that violates its terms of service; for example, by enabling background play of YouTube videos."
How I enabling background play of YouTube videos?
Bgds,
Gol

Steve Hannah

unread,
Apr 10, 2017, 12:16:29 PM4/10/17
to codenameone...@googlegroups.com
This sounds similar to this issue:


So it looks like you must have a web view that allows playing youtube videos, and they will continue to play when the app is put into the background.  That, apparently is against youtube's policy.

So, looks like you'll need to deal with this case inside your lifecycle's "stop" method, to pause or stop the youtube video when your app goes into the background.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/6329092c-804f-43f6-bd0c-8cf764ace8d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Vasin Suntichaisri

unread,
Apr 10, 2017, 12:31:30 PM4/10/17
to codenameone...@googlegroups.com
Thank you very much for your support.

On Mon, Apr 10, 2017 at 11:16 PM, Steve Hannah <steve....@codenameone.com> wrote:
This sounds similar to this issue:


So it looks like you must have a web view that allows playing youtube videos, and they will continue to play when the app is put into the background.  That, apparently is against youtube's policy.

So, looks like you'll need to deal with this case inside your lifecycle's "stop" method, to pause or stop the youtube video when your app goes into the background.

Steve
On Sun, Apr 9, 2017 at 8:23 PM, <gstor...@gmail.com> wrote:
Greeting Shai,
My app had to reject it because it violates our device and network abuse policy .
They told "Modify your app to make sure it doesn’t access or use a service or API in a manner that violates its terms of service; for example, by enabling background play of YouTube videos."
How I enabling background play of YouTube videos?
Bgds,
Gol

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/x5TIJVMdXOA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages