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

Plex to public URL for streaming inside another client #1135

Open
Psychowebber opened this issue Mar 31, 2023 · 2 comments
Open

Plex to public URL for streaming inside another client #1135

Psychowebber opened this issue Mar 31, 2023 · 2 comments

Comments

@Psychowebber
Copy link

What is your feature request?

I'm very new to all of this, so please forgive me if there's already a way to do this.

My girl and I are apart while I'm on business a lot. We play a VR game called VRChat which supports streaming video. This can range from live streams like Youtube, to streaming a publicly accessible MP4 file. What I'm trying to do is create a way to use my Plex server to publicly share a single (unadvertised) video file that I can copy/paste the url (I understand I'll have to use my external IP address for this or port forward for using a VPN with a dedicated IP address) then watch with her, all streaming from my plex server.

Breadcrumbs for train of thought:
Plex Server > Public URL to MP4 > Pasted into video streamer in VRChat. Again I want a way to do this without having to rent an external server who's going to try to hit me with DLNA violations when I'm just streaming my own content.

Current setup is a Raspberry Pi 8GB RAM. I have decent Linux experience, but limited coding. Anyone know if this will do that, and/or how to do it?

Are there any workarounds?

No response

Code Snippets

No response

Additional Context

No response

@UNICodehORN
Copy link

Hi @Psychowebber,

Disclaimer:
what you request is security risk, as you want to expose a file to the public internet without authentication.
I highly recommend not doing it, there is a reason why plex provides you with authentication mechanisms.

Solution hints:
The plexapi knows where the files are located on your system, you can easily query a media file and get the path on your system.
One way of exposing this file now would be to copy it over into a directory which is exposed afterwards, e.g. with a python based webserver.
The python webserver should delete the file automatically from that exposed directory after some time and shut down itself to not be a security risk.

  1. Trigger python script.
  2. python script queries plex api for the local path of the media.
  3. python script copies the media to a dedicated directory and exposes the link to the file.
  4. python script deletes file and shuts down webserver after triggering or if timer has expired.

Hope this helps, but again would not recommend this.

@UNICodehORN
Copy link

Maybe try the "watch together" option as better alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants