I have a webview in my layout file in android app and I want to load a video with html and javascript inside it. the html string that i want to use to load the video is:
video= '
'
the WebView xml code is:
i also enable the javascriop in webview:
post_video.getSettings().setJavaScriptEnabled(true)
post_video.loadDataWithBaseURL( null, video, "text/html", "UTF-8", null );
but the webview just show the plain text html code instead of video!
you can see the result in this screenshot
how can i solve this problem?
Update:
I solved the problem by using Html.fromHtml(video) to decode my html string! now it's working and the WebView shows the video.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)