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

Missing demo: sharing a video from a local file. #1662

Open
Zibri opened this issue May 5, 2024 · 2 comments
Open

Missing demo: sharing a video from a local file. #1662

Zibri opened this issue May 5, 2024 · 2 comments

Comments

@Zibri
Copy link

Zibri commented May 5, 2024

Please add and example on the website on how to share a local video file (webm).
Other file types could be also streamed by using ffmpeg.asm.js...

It would be great to have a simple example.

@sysescool
Copy link

Hi, @Zibri.
Read this: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia

Just use it like navigator.mediaDevices.getUserMedia.

            navigator.mediaDevices.getUserMedia(constraints)
                                .then(getMediaStream)
                                .catch(handleError);
		navigator.mediaDevices.getDisplayMedia(constraints)
			.then(getDeskStream)
			.catch(handleError);

@sysescool
Copy link

If assign me, I will add it.

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