I'm after some advice from any Corona dev's who have experience in android submissions and playing YouTube videos.
A large part of my app - The Ukulele App is a searchable list of the 500+ videos from the The Ukulele Teacher's official YouTube channel (used with permission - we're partners in developing this app)
So I submitted a new update a couple of days ago that removes the ad's when YouTube videos are playing (for some reason Google's own ad's never seem to show when playing videos through an embedded webview), anyway this update was rejected again and this morning I got the following as part of my second appeal to have the app re-instated.
"I reviewed you app again and found that your app violates the Device and Network Abuse policy by enabling background play (audio) of YouTube videos after the screen is turned off. "
This is not something I've seen before and I've tested the app on my iOS devices (I need to get access to a new'ish android device for testing) and turning the screen off whilst the video is playing does pause the audio and video.
Does anyone have any ideas as to what Google might be referring to here and what possible things I can try to resolve this issue?
Below is a copy of the code I use to play YouTube videos within an embedded WebView in an Composer overlay.
-- Create the webview local topOffset = (headerSize+1) * DISPLAY_SCALE local pageHeight = display.contentHeight - topOffset - adOffset webView = native.newWebView(_CX, _CY + ((topOffset-adOffset) / 2), display.contentWidth, pageHeight) webView:request("playVideo.html", system.TemporaryDirectory) webView:addEventListener( "urlRequest", webListener )
-- Write some html to playVideo.html fh:write([[<iframe id="vid" width="100%" height="]] .. height .. [[" src="http://www.youtube-nocookie.com/embed/]] .. videoID .. [[" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>]])
Any help or advice gratefully received.