import BrowserBehavior from '../browserbehavior/BrowserBehavior' ; import Logger from '../logger/Logger' ; import DefaultTransceiverController from './DefaultTransceiverController' ; export default class VideoOnlyTransceiverController extends DefaultTransceiverController { constructor ( logger , browserBehavior ) { super ( logger , browserBehavior ) ; } setupLocalTransceivers ( ) { if ( ! this . useTransceivers ( ) ) { return ; } if ( ! this . defaultMediaStream && typeof MediaStream !== 'undefined' ) { this . defaultMediaStream = new MediaStream ( ) ; } if ( ! this . _localCameraTransceiver ) { this . _localCameraTransceiver = this . peer . addTransceiver ( 'video' , { direction : 'inactive' , streams : [ this . defaultMediaStream ] , } ) ; } } }