Skip to content

Suggestion to improve the example #5

@eladalon1983

Description

@eladalon1983

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions