S
S
Strateg7662016-09-08 23:58:17
Android
Strateg766, 2016-09-08 23:58:17

WebView not playing video?

I put it on the TV site c tv-online.at.ua
If you open it in the browser, then everything is fine, it turns out to watch, but the webview does not want to open something.
The page (site.ru/index.php) displays normally, but instead of "TV" there is white. There is no type "Update the player or install the player", but just a white page. Please tell me what else needs to be registered so that you can play the video, such TV channels.
Here is the code I have there,

String url = "http://сайт.ру/tv.php";
        view =(WebView) this.findViewById(R.id.webView3);
        view.getSettings().setJavaScriptEnabled(true);
        view.loadUrl(url);

        view.setWebViewClient(new MyWebViewClient());

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2016-09-09
@NeiroNx

Rather, you will have to write a video player on the android itself - receive a stream and play it. WebView - can only show texts, it certainly develops with the android version, but its functionality is always worse than that of the built-in browser. They say that after installing chrome, you can use its component to display pages.

R
Rou1997, 2016-09-09
@Rou1997

WebView not playing video?

Of course, it doesn’t reproduce, WebView is lynx, it doesn’t reproduce anything at all, it has nothing to do with the built-in browser!
It doesn't matter what you have, what matters is what they have! That is, see how the video is generally implemented on tv-online.at.ua If the old version of Android, it may simply not support some "features" of JS and will not work in it.

T
Tsimur_S, 2016-09-09
@Tsimur_S

As far as I can see, tv-online.at.ua generally uses flash to broadcast TV channels. So webview has nothing to do with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question