javascript - play pls file in browser -


i need play pls file in website, each user can listen it. 1 way use flash , actionscript, i've been searching way play in browser using javascript or html5.

is there way play pls files in browser using html5 or javascript?

a pls file has format:

[playlist] numberofentries=x file1=http://80.86.106.136:80/ file2=http://80.86.106.136:80/ ... 

so need read content , this

var content = readpls(); var data = content.split('\n\r'); var number_of_files = data[1].replace('numberofentries=',''); var files = []; for(var i=0;i<number_of_files;i++){     files.push(data[2+i].replace("file"+(i+1),'')) } 

code needs work, way go (in js/as)


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -