Radio stream inside the html VS. javascript?

301
December 02, 2017, at 4:43 PM

Which way is better and more preferred over the other?

Both are using 2 different methods.

Are there any advantages or disadvantages of using either?

Code 1

https://jsfiddle.net/juw4kbap/225/

  function playAudio(player, button) {
    player.volume = 1.0;
    player.setAttribute("src", "http://hi5.1980s.fm/;");
    player.play();
  }

VS.

Code 2

https://jsfiddle.net/juw4kbap/170/

 function playAudio(player, button) {
    var src = button.getAttribute("data-audio");
    player.volume = 1.0;
    player.setAttribute("src", src);
    player.play();
  }
Rent Charter Buses Company
READ ALSO
how to send taskId to the table in Laravel 5.2

how to send taskId to the table in Laravel 5.2

I have file attachment form and in this form I need send $task->id to the file table

322
Ajax request vs Persist connection

Ajax request vs Persist connection

We are developing a sport live score websiteFrom performance view which of these options are better?

183
phpexcel can't get not empty value

phpexcel can't get not empty value

I use phpexcel to read a table,but sometimes it can't get value which is not empty

282
Uncomment some extensions in php.ini file through .htaccess file

Uncomment some extensions in php.ini file through .htaccess file

In my project im using iconv() but I got error like

249