I am trying to develop an android application that fetches a video URL from database and play it on he Webview as it provides a stable output unlike Videoview as it sometimes throws he Cant play video exception on a perfectly working video and internet connection.
The problem is I don't want the user to be able to download the video.
I used the below code to load the video and make it full-screen .
surfaceView.setWebChromeClient(new ChromeClient());
surfaceView.getSettings().setLightTouchEnabled(true);
surfaceView.getSettings().setGeolocationEnabled(true);
surfaceView.setSoundEffectsEnabled(true);
surfaceView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);
surfaceView.loadUrl(Videos.get(0).getVideo_Path());