Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: add "Play Version" #15

Open
thundergreen opened this issue Jun 16, 2021 · 3 comments
Open

Feature Request: add "Play Version" #15

thundergreen opened this issue Jun 16, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@thundergreen
Copy link

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?

@JurajNyiri
Copy link
Owner

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 JurajNyiri added the help wanted Extra attention is needed label Jul 4, 2021
@JurajNyiri JurajNyiri changed the title [Feature Request] add "Play Version" Feature Request: add "Play Version" Jan 4, 2022
@smathev
Copy link

smathev commented Feb 28, 2022

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
Copy link

smathev commented Feb 28, 2022

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%2F**KEY**&context=home%3Ahub.continueWatching~0~0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants