![]() ![]() I took an interest in things like this in the last few years. Just so that you know, you’re dealing with an eighty something. I figured out how to initialize the content of the aList Divīut I don’t know how to remove the previous playlist songs. If so, how would I code that initialization routine. To remove all previous playlist records from the playlist array before launching the second playlist. The second playlist will play just fineīut if I click the Pause / Play button then two songs begin playing at the same time.Īpparently the second playlist is appended to the end of the first playlist, or so it appears. However, when I try to loadĪ second playlist some very strange things can occur. It works great when I load and play the first playlist. I’ve been playing around with your mp3 player and like it very much. (B4) When the current song ends, we do a audNow++ and play the next song.Thus the use of the audStart flag, to make sure autoplay is only triggered after clicking on a playlist item (or when auto-starting the next song in the list).We don’t want to piss the users by forcing a patchy playback when they have a bad connection.When we change audio.src = NEW SONG, or upon recovering from a bad connection. Basically, canplay can be triggered via 2 possible means.(B3) Automatically start playing when the current track is sufficiently buffered, but only if audStart is set.Also, take note of setting audStart here. This works very simply by setting audio.src = playlist. For example, audPlay(2) will play the third song in playlist. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |