Android Question Music in webview

ronell

Well-Known Member
Licensed User
Longtime User
no music is played immediately after i load the url on a pc chrome browser.. play button must be click first
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Well, there are some of the issues that you are facing.
B4X:
Logger connected to:  Huawei Nexus 6P
--------- beginning of main
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
WebChromeClient1_ConsoleMessage: ERROR
Uncaught SyntaxError: Unexpected token < in https://it.radioonline.fm/ascoltare/build/mediaelement-and-player.min.js (Line: 2)
WebChromeClient1_ConsoleMessage: ERROR
Uncaught TypeError: Cannot convert undefined or null to object in https://s7.addthis.com/js/250/addthis_widget.js (Line: 2)
WebChromeClient1_ConsoleMessage: ERROR
Refused to execute script from 'https://googleads.g.doubleclick.net/pagead/mraid.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. in https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5661285879011300&output=html&h=100&slotname=4976249310&adk=3213576276&adf=832295195&w=320&lmt=1531790775&guci=1.2.0.0.2.2.0&format=320x100&url=https%3A%2F%2Fit.radioonline.fm%2Fmobile%2F&flash=0&wgl=1&adsid=NT&dt=1531790774818&bpp=47&bdt=394&fdt=289&idt=298&shv=r20180709&cbv=r20180604&saldr=aa&abxe=1&prev_fmts=320x100&correlator=1265849223302&frm=20&pv=1&ga_vid=43523505.1531788931&ga_sid=1531790775&ga_hid=1299161669&ga_fc=0&iag=0&icsg=35496&dssz=11&mdo=0&mso=0&u_tz=60&u_his=1&u_java=0&u_h=732&u_w=412&u_ah=732&u_aw=412&u_cd=24&u_nplug=0&u_nmime=0&adx=46&ady=2297&biw=412&bih=604&scr_x=0&scr_y=0&eid=21061122%2C21061394%2C368226400&oid=3&ref=https%3A%2F%2Fit.radioonline.fm%2Fascoltare%2FRTL-102-5&rx=0&eae=0&fc=656&brdim=0%2C0%2C0%2C0%2C412%2C0%2C412%2C604%2C412%2C604&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&ppjl=u&pfx=0&fu=16&bc=7&osw_key=1117179907&ifi=2&xpc=zcpH6W44je&p=https%3A//it.radioonline.fm&dtd=340 (Line: 0)
WebChromeClient1_ConsoleMessage: ERROR
Mixed Content: The page at 'https://it.radioonline.fm/mobile/#' was loaded over HTTPS, but requested an insecure audio file 'http://icestreaming.rai.it/2.mp3'. This request has been blocked; the content must be served over HTTPS. in https://it.radioonline.fm/mobile/# (Line: 0)
WebChromeClient1_ConsoleMessage: ERROR
Uncaught (in promise) NotSupportedError: Failed to load because no supported source was found. in https://it.radioonline.fm/mobile/# (Line: 0)
 
Last edited:
Upvote 0

BillMeyer

Well-Known Member
Licensed User
Longtime User
Apart from the problems experienced by Peter above, if I recall correctly, Android has it built in to the OS that Video and Sound will not start automatically on a device and require user intervention. Apparently this was done to conserve the data usage of the user and give an opt in option. I could be wrong though.
 
Upvote 0

pazzokli

Active Member
Licensed User
Longtime User
no music is played immediately after i load the url on a pc chrome browser.. play button must be click first
That's right.
But I wanna hide webview (full of advertising), and create button that link directly the source (Not the stream, but this web site could be the stream decoder.)
 
Upvote 0

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…