script is not displayed on android

0

Hello people how are my problem is the following I have a transmission that I make through a script on my website but when viewing the page on a mobile device, this transmission is not displayed and I do not know if I need to configure a different script since I want to pass it to a mobile app to transmit on mobile devices.

this is the script that I am using:

<script type='text/javascript'> width=720, height=480, channel='tvCNC', g='1';</script><script type='text/javascript' src='//www.liveflashplayer.org/resources/scripts/hliveFlashEmbed.js'></script>
    
asked by Victor David Chavez Moralez 15.05.2018 в 21:39
source

1 answer

0

First you must ensure that your WebView can execute javascript, this using the setJavaScriptEnabled() method:

WebView webView = (WebView)findViewById(R.id.myWebView);
webView.getSettings().setJavaScriptEnabled(true);

As for your script I can notice that it has not defined the http: // protocol, this is necessary, you can see as an example the embedded code of my channel:

<script type='text/javascript'> width=720, height=480, channel='Jorgesys', g='1';</script><script type='text/javascript' src='http://www.liveflashplayer.org/resources/scripts/hliveFlashEmbed.js'></script>
    
answered by 16.05.2018 в 01:21