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

Suggestion to improve the example #5

Open
eladalon1983 opened this issue Mar 16, 2022 · 0 comments
Open

Suggestion to improve the example #5

eladalon1983 opened this issue Mar 16, 2022 · 0 comments

Comments

@eladalon1983
Copy link
Member

At the moment, the example reads:

try {
  const stream = await navigator.mediaDevices.getViewportMedia();
  videoElement.srcObject = stream;
} catch (e) {
  console.log('Unable to acquire viewport capture: ' + e);
}

This is going to lead to a Hall of Mirrors effect and not be otherwise useful.
How about using a MediaRecorder instead? Or a PeerConnection? These seem more patently useful.

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

No branches or pull requests

2 participants