I am hosting a media server and have a web app that is playing on a machine. I am trying to build a bot that can take commands from family members remotely and change the movie, pause, play… etc. I can’t seem to find documentation on an API to do this. I know there are API endpoints available to use but I can’t find anything on them. Any help would be appreciated.
Define “remotely”. Are the family members outside of the location or are they inside, so that their control devices are inside the local network?
Try this: Use the Plex HTPC app, instead of the web app. (The web app cannot be controlled.)
Use the Plex mobile app on your users’ devices. Connect them all to your plex user account, (or at least to managed users of your own Plex account).
Now utilize the Plex Companion feature which is already built into the mobile apps. https://support.plex.tv/articles/categories/features/casting-flinging-remote-control/
The Plex mobile client app is available for Android and iOS.
While it normally requires unlocking for playback, it does not require unlocking if you are only using it for browsing the library, or controlling another client per Companion.
What is the use case here? Why would someone remotely control a player which cannot be seen and heard by the controlling person?
Any Plex app which can be used as controller is listed in the linked documentation about Companion.
But Companion only works in the local network, not remotely.
My host machine is playing the movie while others can connect to it and watch the movie, so everyone can be watching it together at the same point even off network.
My first thought on controlling the playback was to go through the api and send commands for the player