Hi!,Our m3u8 stream not work on Android

576 views Asked by At

we tried to solved the android streaming issue..but we still can't figure it out..

only problem is we can't can't get it through android...Other device like-

Desktop,ios device work well..But not work on android Please!, advice us to solved this issue..

My code as follow:

<div id="player" style="width:646px;height:377px;">
</div>
</div>
<script src="http://jwpsrv.com/library/DdkXAvrLEeK6QxIxOUCPzg.js"></script>
<script type="text/javascript">
    jwplayer("player").setup({
        file: "http://rbc.streamguys.com/970wamd/970wamd/playlist.m3u8",

        autostart: true,

        width: "643",
        height: "375",
        primary: "html5",
        androidhls: true
    });
</script>

Test link: http://demo.godork.com/

1

There are 1 answers

1
drjunja86 On

Try this:

mWebView.setWebViewClient(new CustomWebViewClient());
final WebSettings webSettings = mWebView.getSettings();
webSettings.setJavaScriptEnabled(true);

private class CustomWebViewClient extends WebViewClient {

}