|
@@ -123,12 +123,18 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
if (stream) {
|
|
|
- const vt0 = stream.getVideoTracks()[0];
|
|
|
- console.log({
|
|
|
- getCapabilities: vt0.getCapabilities && vt0.getCapabilities(),
|
|
|
- getConstraints: vt0.getConstraints && vt0.getConstraints(),
|
|
|
- getSettings: vt0.getSettings && vt0.getSettings(),
|
|
|
- });
|
|
|
+ {
|
|
|
+ const vt0 = stream.getVideoTracks()[0];
|
|
|
+ if (vt0.getCapabilities && vt0.getCapabilities) {
|
|
|
+ console.log({
|
|
|
+ getCapabilities: vt0.getCapabilities && vt0.getCapabilities(),
|
|
|
+ getConstraints: vt0.getConstraints && vt0.getConstraints(),
|
|
|
+ getSettings: vt0.getSettings && vt0.getSettings(),
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ console.log("stream.getVideoTracks()[0] failed");
|
|
|
+ }
|
|
|
+ }
|
|
|
video.srcObject = stream;
|
|
|
window.__stream = stream;
|
|
|
try {
|