Comments (10)
I'm curious about this request. How are you using this url? I assumed it would only be useful with a proper plea client.
from python-plexapi.
The response of the URL is a video stream that you can simply pass to VLC, MPV or many other video players. It works quite well.
from python-plexapi.
@mjs7231 Looking into it a bit further, the stream is: h264, aac
I'm guessing this is because X-Plex-Platform is set to Chrome
from python-plexapi.
NOTE: With commit 43e99e9 you can now specify the headers including X-Plex-Platform via an ini file.
from python-plexapi.
I can't get this to stream in VLC, not sure what I'm doing wrong here. :(
from python-plexapi.
@mjs7231 Can you paste the URL? (feel free to scrub the IP) 😃
from python-plexapi.
Here is the command I am trying to run.
>> vlc "http://localhost:32400/video/:/transcode/universal/start?maxVideoBitrate=128&X-Plex-Platform=Chrome©ts=1&offset=0&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F%2Flibrary%2Fmetadata%2F4431&mediaIndex=0&videoResolution=1280x720"
[0x7f881c001098] access_http access error: error: HTTP/1.1 400 Bad Request
[0x7f881c001098] access_http access error: error: HTTP/1.1 400 Bad Request
[0x7f881c001098] access_mms access error: error: HTTP/1.1 400 Bad Request
[0x7f883800ac88] main input error: open of `http://localhost:32400/video/:/transcode/universal/start?maxVideoBitrate=128&X-Plex-Platform=Chrome©ts=1&offset=0&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F%2Flibrary%2Fmetadata%2F4431&mediaIndex=0&videoResolution=1280x720' failed
EDIT: HEYA! -- I got it with this URL. turns out it was also including the /library/metadata part twice.
vlc "http://localhost:32400/video/:/transcode/universal/start?maxVideoBitrate=128&X-Plex-Platform=Chrome©ts=1&offset=0&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F4431&mediaIndex=0&videoResolution=1280x720"
from python-plexapi.
I added this without using a separate StreamURL object. The function Video.getStreamURL was added using your code as the example, thanks!
commit 527b0ee
Author: Michael Shepanski [email protected]
Date: Thu Jun 4 00:00:37 2015 -0400
Add Video.getStreamURL()
from python-plexapi.
Is this method still available on Movie objects or has it passed to otther type of objects?
If it's still available on Movie objects what is the code to get it?
I'm using this sample but it's throwing AttributeError:
server=PlexServer( ( HOST+':'+str(PORT) ), PLEX_TOKEN)
mov=server.library.section('Movies').get('mov1')
print(mov.getStreamUrl())
from python-plexapi.
@ZePaiva Method is still working. Please provide more information like the entire error. Also create a new issue or use the Python-PlexAPI Discord.
from python-plexapi.
Related Issues (20)
- Unable to connect to a Plex HTPC client HOT 3
- Add Type Hints to Improve Codebase Readability and Maintainability HOT 1
- Show and Season from the video module use wrong key to get subtitleLanguage attribute
- Add support for track genres in music libraries HOT 1
- feat: python class for available filters HOT 3
- Add support for Plex Profile Watch History and Ratings
- Library section lookup clobbered when multiple libraries have the same title
- editAlbum Missing ... HOT 1
- Unable to find Libraries after using PlexApi based python script. HOT 5
- locations is empty when casting to dict HOT 2
- Add 'merge' method for music albums
- Ability to Modify MovieHistory & EpisodeHistory details HOT 1
- Bad Request response when adding library with default language
- Issues creating `PlexClient` instances from `PlexServer` sessions in 4.15.8 HOT 1
- feat: Endpoint for computing sonic adventure
- Add View History Manually HOT 2
- Streams in MediaParts empty (reload() has no effect)
- `totalSize` of MediaContainer
- createPlaylist does not guard smart=True and non-empty items HOT 2
- "Invalid library sectionID: None" after PlexPartialObject.reload() HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-plexapi.