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

Stopping the Broadcast #9

Closed
jagsus opened this issue Jun 29, 2018 · 4 comments
Closed

Stopping the Broadcast #9

jagsus opened this issue Jun 29, 2018 · 4 comments

Comments

@jagsus
Copy link

jagsus commented Jun 29, 2018

Is there a way to stop the broadcast?

@3p3r
Copy link
Owner

3p3r commented Jun 29, 2018

FYI, I am rewriting this module from scratch with better code and more features but for the meantime there is no internal way in code to shut it down. What I used in the past is spawning Livecam as a ChildProcess and shutting the process down when I am done streaming.

@jagsus
Copy link
Author

jagsus commented Jul 1, 2018

Uh nice. I'm looking forward to that.
Do you have some example code on how to span/stop livecam as child process? I've never worked with child processes.

@jagsus
Copy link
Author

jagsus commented Jul 1, 2018

Forget that. I figured it out. But I have another question: How do I embed the video in an html file? Would i just put the UI in or use the Gstreamer Broadcast? (If gstreamer broadcast: How do I embed it? html video tag?)

@3p3r
Copy link
Owner

3p3r commented Jul 2, 2018

the html to play back the broadcast is embedded in the module as well. you can find it here: https://github.com/sepehr-laal/livecam/blob/e229dee6efbfe58aba29fde82c79ccf008e08510/livecam.js#L327

if you want to host it separately, you need to replace @WEBCAM_ADDR@ and @WEBCAM_PORT@ yourself somehow.

@3p3r 3p3r closed this as completed Aug 15, 2018
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