Test of SCMplayer

code is after this. It kind of works. Puts slider bar at bottom (or top), and optional RHS list.

I don’t really see why I can’t generate the links and put them in this code programatically. I can add things manually no need to generate code again. So this should work.

There is an open source version at https://github.com/cshum/SCM-Music-Player/ This is now installed in songs/SCMplayer. To generate code, use songs url/SCMplayer/index.html. There are other options, like shuffling etc. Use that link to get code for those. Getting the code, refers back to the scm server, but only then, not for playing.

But note that only plays audio, which, of course, is what I want.

If a file/link doesn’t exist, returns error message.

Error: Request not Found

So amended file so goes on to next track. File is SCMplayer/js/playback/soundmanager.js

Later edit: actually, I’m not sure that is the file. Maybe youtube has changed the way it handles errors. I have changed some of the code in youtube.js.

See README.md for usable commands. Note there are commands to add on to playlist, and to load different playlists. This is really useful.

Note that you can toggle the playlist on right too, from slider bar at bottom.

Code is below from my server.

Does code have to go in post, or can I put in header or something. Presumably post will have to display to run. Or will it? Check on fuckem. Be nice to have there.

Note that address bar url doesn’t always change – this is something to do with persistence of the music when navigating. Except that sometimes it does change. This is a nuisance with no fix I can find.

Have done playlist in petula post too. When switching posts, it will change playlists IF page is refreshed, otherwise continues with previous one. So need to force a page refresh. Can do in js, but if doesn’t work, might be because it is executed too soon, so then create function, and call it later. Actually, this is easier said than done. I don’t seem to be able to stop it looping. I might have to go to the original code to force this.

STARTS



ENDS