Compare commits
1 commit
develop
...
hotfix/pin
Author | SHA1 | Date | |
---|---|---|---|
6a78a0736b |
|
@ -48,8 +48,6 @@ export class MediaManager {
|
||||||
|
|
||||||
private discussionManager: DiscussionManager;
|
private discussionManager: DiscussionManager;
|
||||||
|
|
||||||
private userInputManager?: UserInputManager;
|
|
||||||
|
|
||||||
private hasCamera = true;
|
private hasCamera = true;
|
||||||
|
|
||||||
private triggerCloseJistiFrame : Map<String, Function> = new Map<String, Function>();
|
private triggerCloseJistiFrame : Map<String, Function> = new Map<String, Function>();
|
||||||
|
@ -370,10 +368,6 @@ export class MediaManager {
|
||||||
});
|
});
|
||||||
|
|
||||||
//TODO resize remote cam
|
//TODO resize remote cam
|
||||||
/*console.log(this.localStream.getTracks());
|
|
||||||
let videoMediaStreamTrack = this.localStream.getTracks().find((media : MediaStreamTrack) => media.kind === "video");
|
|
||||||
let {width, height} = videoMediaStreamTrack.getSettings();
|
|
||||||
console.info(`${width}x${height}`); // 6*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private getLocalStream() : Promise<MediaStream> {
|
private getLocalStream() : Promise<MediaStream> {
|
||||||
|
@ -686,10 +680,9 @@ export class MediaManager {
|
||||||
* Here, every 30 seconds, we are "reseting" the streams and sending again the constraints to the other peers via the data channel again (see SimplePeer::pushVideoToRemoteUser)
|
* Here, every 30 seconds, we are "reseting" the streams and sending again the constraints to the other peers via the data channel again (see SimplePeer::pushVideoToRemoteUser)
|
||||||
**/
|
**/
|
||||||
private pingCameraStatus(){
|
private pingCameraStatus(){
|
||||||
setTimeout(() => {
|
setInterval(() => {
|
||||||
console.log('ping camera status');
|
console.log('ping camera status');
|
||||||
this.triggerUpdatedLocalStreamCallbacks(this.localStream);
|
this.triggerUpdatedLocalStreamCallbacks(this.localStream);
|
||||||
this.pingCameraStatus();
|
|
||||||
}, 30000);
|
}, 30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue