I have a Webview-based Android application that works with my own application web server. The application web server provides HTML5 content for each user. The content may be rich text, image, or any multimedia content. In one of my requirements, I want to play rtsp-based real-time stream in an Android Webview application via a webpage inside a frame, there are other content frames on the webpage as well.
I tried using the HTML5 video tag, but it does not work for the rtsp protocol on Android ICS. I could find many links that suggest using Android MediaPlayer or Videoview to play rtsp content in full screen via onShowCustomView , however my requirement is slightly different. I do not want to play the video in full screen.
The video does not start using the href link; it starts in the event of the JS event PageLoad / ready. And I want to play rtsp streaming video on a specific layout inside webview, as defined by html5 / css logic. My inquiries
- Is it possible to add a video review / (any control) add-on on top of the webview in accordance with the html / css logic to play the rtsp stream? If so, how?
- Can this be done at every page load instead of a hyperlink?
- I could write my own rtsp video plugin for playing videos, but I'm not sure about integrating my plugin with Webview. There is not enough documentation for this. Is it possible how?
Thanks
Ash
source share