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

Possible to play mp4 file located on server? #32

Closed
jeverling opened this issue Nov 11, 2021 · 4 comments
Closed

Possible to play mp4 file located on server? #32

jeverling opened this issue Nov 11, 2021 · 4 comments

Comments

@jeverling
Copy link

Hi, thanks for the great project! Is it possible to play a file from the SyncTube server's filesystem? So that I can put a file in e.g. /usr/src/app/user/my_movie.mp4 and have it streamed to all participants?
I can work around it by running nginx and making the file available via http, but it would be nice to just drop/mount a file into a folder on the SyncTube server and be able to play it.

@RblSb
Copy link
Owner

RblSb commented Nov 11, 2021

You can add that path to playlist only if your ip is server currently. But you can just create symlink to folder you want, check this comment:
#25 (comment)

@jeverling
Copy link
Author

That does indeed work, thank you! Note that I have to place the file into the folder that will be mounted into the docker container before starting the container, or it does not seem to get picked up.

In case anybody else is trying to do the same:

I'm running SyncTube on a dedicated server using Docker, e.g. docker run -d --rm --name=synctube -p 4200:4200 -v /opt/docker/volumes/synctube:/usr/src/app/user synctube.

If I place a file into /opt/docker/volumes/synctube/res/d/Foo.mp4 before the container is started (it will be mounted inside the container as /usr/src/app/user/res/d/Foo.mp4), I can play it by adding /d/Foo.mp4 to the playlist. This allows me to serve a file to all clients without them having to have the file available locally.

BTW, what is the purpose of the Set Video URL and Select Local Video options exactly? Are they meant to be used in case I have a copy of a file available locally, so I can play that instead of the browser having to download the stream?

@RblSb
Copy link
Owner

RblSb commented Nov 12, 2021

Yes, this is for selecting local file instead of current video stream, or to set different url source with better/worse video quality/etc. Also will try to implement QSwitcher plugin out of box for native/web clients in free time. I guess problem solved, have a nice day.

@RblSb RblSb closed this as completed Nov 12, 2021
@jeverling
Copy link
Author

jeverling commented Nov 12, 2021 via email

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

No branches or pull requests

2 participants