Fixed stream starting and viewing
This commit is contained in:
parent
c49dc0333e
commit
ac3d2cb2c4
1 changed files with 6 additions and 6 deletions
|
@ -88,10 +88,10 @@ addPatch({
|
||||||
bitrateMax: 8000000,
|
bitrateMax: 8000000,
|
||||||
bitrateTarget: 600000
|
bitrateTarget: 600000
|
||||||
});
|
});
|
||||||
Object.assign(opts.encode, {
|
// Object.assign(opts.encode, {
|
||||||
framerate,
|
// framerate,
|
||||||
pixelCount: height * width
|
// pixelCount: height * width
|
||||||
});
|
// });
|
||||||
Object.assign(opts.capture, {
|
Object.assign(opts.capture, {
|
||||||
framerate,
|
framerate,
|
||||||
width,
|
width,
|
||||||
|
@ -424,7 +424,7 @@ function ModalComponent({
|
||||||
}
|
}
|
||||||
console.log([...MediaEngineStore.getMediaEngine().connections]);
|
console.log([...MediaEngineStore.getMediaEngine().connections]);
|
||||||
try {
|
try {
|
||||||
if (conn.streamUserId === UserStore.getCurrentUser().id) {
|
if (conn) {
|
||||||
console.log(conn);
|
console.log(conn);
|
||||||
const track = conn.input.stream.getVideoTracks()[0];
|
const track = conn.input.stream.getVideoTracks()[0];
|
||||||
console.log(track);
|
console.log(track);
|
||||||
|
@ -451,7 +451,7 @@ function ModalComponent({
|
||||||
id: selected!,
|
id: selected!,
|
||||||
...settings
|
...settings
|
||||||
});
|
});
|
||||||
if (conn.streamUserId === UserStore.getCurrentUser().id) {
|
if (conn) {
|
||||||
console.log(conn);
|
console.log(conn);
|
||||||
const track = conn.input.stream.getVideoTracks()[0];
|
const track = conn.input.stream.getVideoTracks()[0];
|
||||||
console.log(track);
|
console.log(track);
|
||||||
|
|
Reference in a new issue