I have created an application that loads a website using WebView. Everything works fine except that I’m unable to play any video files within the application. So, what I’m looking for help on is getting my application to launch the mediaplayer when I click on a link ending with .mp4. Any help and tips would be much appreciated!
I have created an application that loads a website using WebView. Everything works fine
Share
You need to override the
shouldOverrideUrlLoadingmethod of your webViewCient…… that you assign to your webview:
Edit:
also important that you add:
to allow file downloads/streams such as mp4 files.