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

[feature] Allow a video file source not just camera. #287

Open
Zibri opened this issue May 5, 2024 · 1 comment
Open

[feature] Allow a video file source not just camera. #287

Zibri opened this issue May 5, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Zibri
Copy link

Zibri commented May 5, 2024

Instead of file sharing (which does not work well),

Put another icon at the top, next to the webcam icon... clicking the icon will let the user select a file (webm).

To do that you can use captureStream().

See here:
https://webrtc.github.io/samples/src/content/capture/video-video/

In short:

const srcVideo = document.getElementById('srcVideo');
srcStream = srcVideo.captureStream()

also, I don't know if you are already using it, but webrtc can be used to send video ONE to many:
https://muazkhan.com:9001/demos/Scalable-Broadcast.html

which would be the best both for webcam both for video files :D

@jeremyckahn
Copy link
Owner

Hi @Zibri, this could be an interesting addition to Chitchatter. I don't think I'll have the time to implement this myself, but I'm open to accepting a Pull Request that implements it.

I'm noticing that https://webrtc.github.io/samples/src/content/capture/video-video/ doesn't work in Firefox (though it does work in Chromium). If Chitchatter is going to support this kind of functionality, it will need to work in all browsers.

@jeremyckahn jeremyckahn added enhancement New feature or request help wanted Extra attention is needed labels May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants