Android Question youtube not play video with webview on overlay window

analizer3816

Member
Licensed User
Longtime User
Hello,
I want to play youtube with webview on overlay window(floating window)
I tested on android 6.0.1(on overlay window),it works well, play both video and audio.
when I test with android 4.0-4.4(on overlay window),it play audio only,video not show(show black screen)
then I put webview on activity and test with android 4.0-4.4,it can play both.

I try add SetApplicationAttribute(android:hardwareAccelerated, "true") and change webview's user agent string>> not work

this app use webview+overlay window and work well on all android version:
https://play.google.com/store/apps/details?id=com.djit.apps.stream

please suggestion me
 

analizer3816

Member
Licensed User
Longtime User
Because it can play youtube in floating window and background. Youtube library cannot play in floating window, must put youtube on activity only.
Exoplayer,I don't know how to get dash url.

Can you suggest me about dash url?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…