PlexMeetsHomeAssistant icon indicating copy to clipboard operation
PlexMeetsHomeAssistant copied to clipboard

Feature Request: add "Play Version"

Open thundergreen opened this issue 3 years ago • 3 comments

As we a a household with ,ultiple languages, I'd like to se an option "Play Version" Means if I have more than one Vedeofilein a movie folder. Is that possible?

thundergreen avatar Jun 16 '21 07:06 thundergreen

I did some investigation on this.

  1. Possible and easy via cast
  2. Not possible via Kodi
  3. Unknown via plexPlayer and android TV

For android TV we are currently using following command:

am start --ez "android.intent.extra.START_PLAYBACK" true -a android.intent.action.VIEW 'plex://server://SERVER_ID/com.plexapp.plugins.library/library/metadata/12345'

Similarly, for plexPlayer, queue with metadata ID is created:

.../playQueues?type=video&shuffle=0&repeat=0&continuous=1&own=1&uri=server://${await this.plex.getServerID()}/com.plexapp.plugins.library/library/metadata/${movieID}...

Different media files are stored in array inside Media key for every movie/episode. Values inside this array have id and also key Part which has id and also a key in format of "/library/parts/SOME NUMBER/SOME OTHER NUMBER/file.mkv". I tried pasting this instead of /library/metadata/12345 but no success yet.

Once we discover a way to play specific version through adb this can be implemented for adb, plexPlayer and cast.

JurajNyiri avatar Jul 04 '21 14:07 JurajNyiri

Hi!

So, this isn't directly related to your software, but seeing as you have an implementation of ADB where you can launch a specific stream on Plex, I was looking to your documentation for implementing an RFID_tag movie-starter for my kids.

I'm testing your command: am start --ez "android.intent.extra.START_PLAYBACK" true -a android.intent.action.VIEW 'plex://server://SERVER_ID/com.plexapp.plugins.library/library/metadata/12345' but I'm unable to make it work.

What I'm figuring is that the way I'm building/getting my SERVER_ID must be wrong. I see the PlexApp on my ShieldTV search for media but then simply go back to the Plex Screen.

Could you let me know how the SERVER_ID is formed?

Thanks in advance.

smathev avatar Feb 28 '22 14:02 smathev

Turns out my question was answered in another repository by you :)

Link to anyone curious: https://gist.github.com/mcfrojd/9e6875e1db5c089b1e3ddeb7dba0f304?permalink_comment_id=3948899#gistcomment-3948899

Replace SERVER_ID and KEY. You can get both from, for example, URL:

https://app.plex.tv/desktop/#!/server/SERVER_ID/details?key=%2Flibrary%2Fmetadata%2FKEY&context=home%3Ahub.continueWatching~0~0

smathev avatar Feb 28 '22 14:02 smathev