home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
[Help needed] How to play streams with HTTP Basic Authentication?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anthrax" data-source="post: 758409" data-attributes="member: 46494"><p>Hey devs,</p><p></p><p>I'm hard at work with my new <a href="https://www.team-mediaportal.com/extensions/pictures/myplexmedia" target="_blank">MyPlexMedia </a>plugin at the moment and ran into the following problem:</p><p></p><p>1. PlexMediaServer uses HTTP basic authentication for stream requests</p><p>2. MediaPortals internal g_Player is absolutely capable of playing the plex stream types</p><p>3. Problem is when I try to play stream via "g_Player.PlayAudioStream(streamUrl)" it throws an error because plex needs authentication headers before sending the content over!</p><p>4. The quick fix was to use the same technique as the Trailers plugin: a local HttpProxy but this requires elevated privileges (start MediaPortal as administrator) as the HttpListener needs to be registered...</p><p></p><p>So the question is: Is there a way to override any of the BasePlayers to allow for HTTP authentication?</p><p></p><p>regards,</p><p>Anthrax</p><p></p><p>PS: I strumbled through /trunk/mediaportal/Core/Player/ for hours yesterday <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="Anthrax, post: 758409, member: 46494"] Hey devs, I'm hard at work with my new [URL="https://www.team-mediaportal.com/extensions/pictures/myplexmedia"]MyPlexMedia [/URL]plugin at the moment and ran into the following problem: 1. PlexMediaServer uses HTTP basic authentication for stream requests 2. MediaPortals internal g_Player is absolutely capable of playing the plex stream types 3. Problem is when I try to play stream via "g_Player.PlayAudioStream(streamUrl)" it throws an error because plex needs authentication headers before sending the content over! 4. The quick fix was to use the same technique as the Trailers plugin: a local HttpProxy but this requires elevated privileges (start MediaPortal as administrator) as the HttpListener needs to be registered... So the question is: Is there a way to override any of the BasePlayers to allow for HTTP authentication? regards, Anthrax PS: I strumbled through /trunk/mediaportal/Core/Player/ for hours yesterday :( [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
[Help needed] How to play streams with HTTP Basic Authentication?
Contact us
RSS
Top
Bottom