Skip to content

Commit

Permalink
chore: remove IChromeRTC interface
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividVeloso committed Jun 7, 2021
1 parent 567257b commit cb40452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/js/src/Modules/Verto/webrtc/Peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
streamIsValid,
} from '../util/webrtc';
import { isFunction } from '../util/helpers';
import { IVertoCallOptions, IChromeRTCConfiguration } from './interfaces';
import { IVertoCallOptions } from './interfaces';
import { trigger } from '../services/Handler';

/**
Expand Down Expand Up @@ -350,14 +350,14 @@ export default class Peer {
return this.type === PeerType.Answer;
}

private _config(): IChromeRTCConfiguration {
private _config(): RTCConfiguration {
const { iceServers = [] } = this.options;

const config: IChromeRTCConfiguration = {
sdpSemantics: 'unified-plan',
const config: RTCConfiguration = {
bundlePolicy: 'max-compat',
iceServers,
};

logger.info('RTC config', config);
return config;
}
Expand Down
6 changes: 0 additions & 6 deletions packages/js/src/Modules/Verto/webrtc/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ export interface IWebRTCCall {
switchCamera?: () => void;
setSpeakerPhone?: (flag: boolean) => void;
}

// https://webrtc.org/getting-started/unified-plan-transition-guide
export interface IChromeRTCConfiguration extends RTCConfiguration {
sdpSemantics?: 'plan-b' | 'unified-plan';
}

export interface IWebRTCInfo {
browserInfo: any;
browserName: string;
Expand Down

0 comments on commit cb40452

Please sign in to comment.