Jump to content

Play content to a Session


Recommended Posts

Posted

Is there a way through the API to start content on a specific client? I have a media server I want to be able to control content on through web service requests. I think right now I can only query what each client is doing but not set it.

 

Thanks!

Posted (edited)

I think it is: PlayRequest

 

But I can't remember the namespace. It is under Sessions... Maybe.

 

There are parameters to send the request to a certain session.

Edited by chef
Posted

Thanks!

 

I've been trying to test those from a command line and the swagger ui. They both return an error with appVersion, which I don't see anywhere. Most of those methods don't make sense as POST as it just posts redundant data.

 

{ "ResponseStatus": { "ErrorCode": "ArgumentNullException", "Message": "Value cannot be null.\nParameter name: appVersion", "Errors": [ { "ErrorCode": "ArgumentNullException", "FieldName": "appVersion", "Message": "Value cannot be null.\n" } ] } }

Posted

There are headers you have to supply on every request. unfortunately github seems to be down right now but it is documented in the developer wiki.

Posted

Thanks, I was able to trace the calls and found the header for x-emby-authorization that needs to be included. So far I'm able to get it to Pause, but not Unpause.

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...