I got a problem related to playing videos based on Url i get. I made 2 cases, but each one has its problem.
1) using android VideoView
videoPlayer.setVideoURI(Uri.parse(videoUrl));
videoPlayer.setMediaController(new MediaController(this));
videoPlayer.requestFocus();
videoPlayer.start();
The problem is that it doesn't open such types of video url https://www.facebook.com/zloishkolnik/videos/462625797256094/
https://www.youtube.com/watch?v=YVkUvmDQ3HY
2) using android WebView
videoPlayer.setWebViewClient(new WebViewClient());
videoPlayer.getSettings().setJavaScriptEnabled(true);
videoPlayer.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
videoPlayer.getSettings().setPluginState(WebSettings.PluginState.ON);
videoPlayer.setWebChromeClient(new WebChromeClient());
videoPlayer.loadUrl(videoUrl);
Webview opens the links above, but doesnt open such type of links http://www.db.cartosnet.com/videos/EU5beThfNI.mp4
Am i doing something wrong or there is any library that reads any video url given?