Jump to content

FR: Server - Expand remote control API


Redshirt

Recommended Posts

Redshirt

There's two features I would love to see added to the server's remote control API. Of course it would require changes from all client developers as well, but I think it would be worth it.

 

1. Audio/subtitle stream selection. I know MBC can't capitalize on this, but every other client should be able to play specific streams rather than the default. Especially if transcoding. 

 

2. Add the Id of the client that initiated the last received remote control command in the SessionInfo. The reason I'd like to see this, is for when the mobile clients exit and relaunch, it would be nice to poll the server for currently playing media and if the initiating client ID matches the mobile client ID, expose a now-playing widget in the client. Same concept as what Android is doing with Chromecast when you relaunch the client.

  • Like 1
Link to comment
Share on other sites

Ghostm

Obviously i dont have much of a say in this as a mere user, but I spoke to shaun a few times and i really liked what he laid out for mbt and the future of control for that. He wants to make dedicated api he said for almost any function available in mbt and then make it easy for app creators to add commands to make mbt easier to control.

 

This is the biggest adjustment for me since switching from xbmc where api for commands were available for every function, so im happy its being looked at, wont have many other feature requests beyond this, as this was the big one for me. 

Link to comment
Share on other sites

It seems we could pretty easily just have a "pass-thru" type command in the server API where any device could send any command to any other controllable client.  Then each client can implement whatever commands it wants and the server doesn't have to know about them.  Parameters could be sent in simple key/value pairs or a json object the client knows how to interpret.

Link to comment
Share on other sites

Redshirt

That could get interesting. Although I like the well defined entities/enums just so I'm not dealing with data I can't consume.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...