Jump to content

Where does "SendPlayCommand" live now?


chef

Recommended Posts

chef

Anyone have a moment to tell me where "SendPlayCommand" lives in the latest APi release?

 

It use to be accessible through SessionInfo - SessionController - SendPlayCommand.

 

But it has moved and left me broken. :(

 

 

 

 

Link to comment
Share on other sites

You don't call methods directly on SessionInfo, instead do everything via ISessionManager.

Link to comment
Share on other sites

chef

In my Alexa plugin I have to return a string for it to speak. This makes the playback function a Task<string>.

I use a custom endpoint to let it speak and control the server.

 

When initiating a playback request inside a plugin, what Controlling Session Id is most likely used to report to the server?

 

Can I just make one up, or does it have to be a registered Id?

Link to comment
Share on other sites

chef

It seems a bit janky, I am using the first session found on the network, but something tells me that The controlling session isn't going to work for the session to control. In other words emby sessions shouldn't control themselves... Lol.

 

If there is only one device in the network at the time of the Alexa playback request, then wierd things might happen...

 

Can the controllingSessionId be optional?

Edited by chef
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...