Currently, I am facing an issue with loading and playing videos via streaming in my Android app using a JavaScript code inside an HTML file. My approach involves using a WebView to showcase the video content. However, the challenge lies in the fact that the video file is stored locally within the project directory at /res/raw/video_player.html
. I am looking for a way to invoke a specific function within the JavaScript while passing the video URL as a parameter.
If anyone has any insights or suggestions on how to achieve this, it would be greatly appreciated.
Thank you in advance.