![]() ![]() ![]() The main thing I need to do is, given a time T, show what song will be playing at time T + X. This could be corrected by observing the current song and the current time and fixing up the calculation periodically. The first problem was that the songs are not likely to have lengths which are perfect seconds, and the streamer may drop a bit of time between songs, so the longer the stream is up, the less accurate the prediction will be. If it is restarted then the entire week prediction needs to be recalculated. The question which i have somewhat resolved is I need to know what time every song will play during the next week assuming the stream is not restarted. The steam plays the songs in the order they are listed in the M3U file. This reads an M3U file with a list of songs. I still dont know how to load each line of the M3U file into an array, then loop over it and of course only use the lines that don't start with a "#". I do know that, M3U files are just plain text, with each line being either a comment (starts with a #) or a path to a file (doesn't start with a #). I have having trouble reading an external m3u file (playlist) into my php code, thought someone has done this before and could give me an idea or lined solution example of what my incomplete line should look like. Thank you, I am new to this forum and if I could apologize in advance if this post is not in the correct location. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |