W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2020

Re: [mediacapture-image] Include malicious sites and surveillance cameras in the PTZ explainer (#222)

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Apr 2020 09:05:08 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-620478839-1588064707-sysbot+gh@w3.org>
Having access to the stream does not necessarily mean there is a `<video>` element associated to it, and visible as well.

```js
const videoStream = await navigator.mediaDevices.getUserMedia({
  video: { pan: true, tilt: true, zoom: true }
});

// Code below is optional
const video = document.querySelector("video");
video.srcObject = videoStream;
```

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/222#issuecomment-620478839 using your GitHub account
Received on Tuesday, 28 April 2020 09:05:10 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:50 UTC