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

Remote URL #2

Open
imshihab opened this issue Nov 3, 2022 · 1 comment
Open

Remote URL #2

imshihab opened this issue Nov 3, 2022 · 1 comment

Comments

@imshihab
Copy link

imshihab commented Nov 3, 2022

How can I do that with remote url.
I want to use a video from my another server and send it on "/video" response!?? Can you help me?

@thesmartcoder7
Copy link
Owner

I think this depends on the structure of your url and how you want to structure your code as well. code I presented reads from the file system. unless you want to download the videos into the path where the videos are read, you pretty much have to go the long way. I haven't tried this yet but maybe I will add a link base approach to it.

For now, you can render the entire html page then swap the src with your video link with the ejs kinda way but then that gets rid of the need for the "/video" response. I will look further into this. Thanks for the question

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