Twitch broadcast.tv in android

I'm making a game-themed app, in which one of the categories is live broadcasts of games. Actually, there are direct addresses to streams, for example http://player.twitch.tv/?channel=starladder1

What am I trying to do:

final WebView webView = (WebView) findViewById(R.id.webView);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setUseWideViewPort(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.setWebChromeClient(new WebChromeClient());
webView.loadUrl(url);

The result-opens a webview in which it is written that you need to install flash player.. Although the official twitch app plays everything perfectly without a flash. I understand that I may even be digging in the wrong direction, but does anyone have any what guesses? I will be glad of any help!

2 answers

The official app does not use WebView, but uses the twitch API and plays the video player.

 4
Author: katso, 2016-01-15 08:03:54

I found a solution for WebView. It was simple:

webView.loadUrl("http://www.twitch.tv/" + chanelName+ "/popout");
 2
Author: Андроид Андроид, 2016-01-15 13:43:27