Jump to content

Detect remote control (cast) in plugin?


Go to solution Solved by Luke,

Recommended Posts

Posted

If I have two sessions, A and B, set A to control B and then initiate playback, SessionManager.PlaybackStart is fired for B rather than A. So far so good. But how can I tell B is being controlled by A? I'm not seeing it.

  • Solution
Posted

Hi, currently that state is not kept anywhere on the server. Technically the api allows more than one client to send commands at the same time.

Posted

I had a suspicion this was going to be the answer. For now I can finesse my way around this limitation, I think.

There is no need to keep server-side state though. For a future suggestion, remote control commands could include the ID of the controlling session, so it can be included in the reports sent back to the server and duly made available in the SessionManager progress events. The ID can be kept in the client?

At least for playback, there's definitely one specific controlling session that originated the playback (or none if it was a local instruction).

  • Thanks 1

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