Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playing a pls file using HTML5 audio

I want to play a .pls file which is an radio file. When I click over this file it plays video in my iIunes (I am using mac). I want to play this pls file in browser especially in Safari as I want to play it in iPhone.

My code:

<audio src="radioveronica.pls" controls="controls">
    Your browser does not support the audio element.
</audio>

Following is content of my pls file:

[playlist]
File1=http://5713.live.streamtheworld.com:80/VERONICAAACCMP3
Title1=Radio Veronica
Length1=-1
File2=http://5713.live.streamtheworld.com:3690/VERONICAAACCMP3
Title2=Radio Veronica
Length2=-1
File3=http://5713.live.streamtheworld.com:443/VERONICAAACCMP3
Title3=Radio Veronica
Length3=-1
File4=http://5723.live.streamtheworld.com:80/VERONICAAACCMP3
Title4=Radio Veronica
Length4=-1
File5=http://5723.live.streamtheworld.com:3690/VERONICAAACCMP3
Title5=Radio Veronica
Length5=-1
File6=http://5723.live.streamtheworld.com:443/VERONICAAACCMP3
Title6=Radio Veronica
Length6=-1
NumberOfEntries=6
Version=2
like image 305
pankaj Avatar asked Dec 21 '22 20:12

pankaj


1 Answers

for shoutcast servers is without stream.nsv(most servers) for icecast is like you said , for virtual dj is same as shoutcast , example:

<html>
    <head><title> Listen To Ma' Radio</title></head>
    <body>
    <audio controls="controls" src="http://50.22.217.113:13679/;&type=mp3"></audio>
    </body>
</html>

and you can implent another functions , as it it basic html you can even implent in php , enjoy

like image 166
Michael Avatar answered Jan 16 '23 03:01

Michael