Hijack 'Play' Feature

Posted by: NiCKEL

Hijack 'Play' Feature - 08/03/2002 13:26

Mark (or anyone else),

Would it be possible/difficult to give some options on the play feature?

I was thinking it would be handy if we could select from the three styles (Play, Append, Insert) so that you could potentially use the web interface much like a jukebox.

e.g. you could Play song 'A' and then append song 'C' 'E' and 'I' to it allowing you to dynamically queue up a play list via the web interface. Very jukebox-ish.

This would be good for work as co-workers could add songs they wanted to hear.

Just a thought.
-Geoff
Posted by: tonyc

Re: Hijack 'Play' Feature - 08/03/2002 13:32

This would only be doable if the Emplode protocol being used to send the play command supports insert/append. I seem to remember someone saying it doesn't.
Posted by: tfabris

Re: Hijack 'Play' Feature - 08/03/2002 13:39

Actually, the emplode protocol DOES support insert and append. The problem is that Hijack does not use the emplode protocol, it uses the serial port protocol. The serial port protocol does not have the ability to do this.

It is rumored that the next player beta might have serial port insert/append built-in, at which time Hijack will support it.
Posted by: tonyc

Re: Hijack 'Play' Feature - 08/03/2002 13:44

Edited: Nevermind, I found it... "#FID"
Posted by: tfabris

Re: Hijack 'Play' Feature - 08/03/2002 13:46

The serial port commands are all documented on the developer section of www.riocar.org .

The serial port command to play a specific fid is:

#<fid>

For example to play fid 123 it would be #123 follwed by a carriage return.
Posted by: mlord

Re: Hijack 'Play' Feature - 08/03/2002 13:46

From earlier examination of the Emplode "insert/play" protocol, it was discovered that the protocol appears to only allow "insert" to a running playlist of it's own creation.

In other words, if the player is running a playlist of it's own, Emplode cannot "insert" into that playlist.

Sound right? (I don't use Emplode)
Posted by: tonyc

Re: Hijack 'Play' Feature - 08/03/2002 13:47

Goddamnit I swear you're a bot!
Posted by: tfabris

Re: Hijack 'Play' Feature - 08/03/2002 13:48

Just tried it, and it worked no problem. I just used emplode to insert a tune into a playlist that had been chosen from the player's front panel.
Posted by: mlord

Re: Hijack 'Play' Feature - 08/03/2002 13:55

Are you sure it did not replace the playlist when you did that?

If not, then we need more info on the Emplode protocol, cuz that doesn't look possible from the info we have in the emptool source.

Cheers
Posted by: tfabris

Re: Hijack 'Play' Feature - 08/03/2002 13:59

Are you sure it did not replace the playlist when you did that?

Yes.
Posted by: mlord

Re: Hijack 'Play' Feature - 08/03/2002 20:16

Actually, I suppose they could have done it the hard way.. query player playlist FID, lookup playlist, resend playlist to player, insert new track into playlist.. ugh.