• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Video Casting from Webview

There are websites that contain players that utilize the video casting ability. We are able to cast to Chromecast while visiting these sites on a mobile web browser. However, when viewing these sites from within a webview on my android app the cast icon/option is unavailable.

What is needed to enable the app to cast video from within a webview?
I have looked around and I can not find anything about casting from a webview. Is this something that is possible to do?

Any information at all will be helpful. Thank you very much.
 
This is the only solution I found https://stackoverflow.com/questions/20322057/how-to-play-video-url-inside-android-webview
There is on lack in this solution. It exploits plugin methods, which are deprecated.
I haven't found simple solution for this question without plugins.
One way is to parse link, when you click on link inside Webview, and call video stream player.

Could you provide link to video that you are going to play with WebView.
 
Last edited:
Back
Top Bottom