Javascript for Android

DeMonScripter

New member
Mar 17, 2013
1
0
0
Visit site
Hi All,
I wanted to ask a question relating to javascript for Android devices but I cannot find an appropriate forum listed
so I've decided to ask my question here. I am using the following javascript code to generate a radio player on
my web page:
Code:
<button class="button" onClick="document.getElementById('audio').play();
document.getElementByID('audio').volume=1;">Play</button>
<button onClick="document.getElementById('audio').pause()">Pause</button>
<audio id="audio">
<source src="streaming Website:Port Number/"/>
</audio>
When the Play button is clicked, the player is supposed to play music from a streaming host site. The code above
works fine when my page is opened on Apple devices but unfortunately it does nothing on Android devices. Please
suggest a solution if you have previously dealt with this or a similar problem, thanks in advance.
 
Last edited:

Forum statistics

Threads
943,144
Messages
6,917,504
Members
3,158,840
Latest member
wei34