The standard CLI supports the following command:
I am toying with writing a (hopefully simple) plug-in to extend this command to accept additional arguments providing metadata for the track, as follows:
I think such a plug-in would need to implement initCLI() calling Slim::Control::Request::addDispatch() to register a callback to a parser to handle these extra arguments (??)
Questions:
1) Is it possible to override/overload the existing "<macAddress> playlist play" command in such a way, and then fall through onto the inherited existing command to do the pre-existing basic playlist play functionality? i.e. so as to avoid completely re-inventing the wheel. (Or should one rather implement a separate new "<macAddress> my_playlist play" command?)
2) Is it possible to apply the meta data (<supportsSeek> <bitRate> <size> <duration> <albumArtUrl> <album> <artist> <genre>) to the song object that would thus be added to the playlist? (Or would those values just be overwritten or erased when the player does the actual Http Get to retrieve the song concerned?) And are there any values in my list (e.g. supportsSeek) where this is expressly not possible?
3) Or (open question) am I missing something entirely ??
Code:
<macAddress> playlist play <url> <title>
Code:
<macAddress> playlist play <url> <title> <supportsSeek> <bitRate> <size> <duration> <albumArtUrl> <album> <artist> <genre>
Questions:
1) Is it possible to override/overload the existing "<macAddress> playlist play" command in such a way, and then fall through onto the inherited existing command to do the pre-existing basic playlist play functionality? i.e. so as to avoid completely re-inventing the wheel. (Or should one rather implement a separate new "<macAddress> my_playlist play" command?)
2) Is it possible to apply the meta data (<supportsSeek> <bitRate> <size> <duration> <albumArtUrl> <album> <artist> <genre>) to the song object that would thus be added to the playlist? (Or would those values just be overwritten or erased when the player does the actual Http Get to retrieve the song concerned?) And are there any values in my list (e.g. supportsSeek) where this is expressly not possible?
3) Or (open question) am I missing something entirely ??