react-native-webrtc2
Version:
WebRTC for React Native
20 lines (17 loc) • 397 B
JavaScript
//--新增文件
import { NativeModules } from 'react-native';
import MediaStreamTrack from './MediaStreamTrack';
export default class RtpSender {
_id: String;
_track: MediaStreamTrack;
constructor(id, track) {
this._id = id;
this._track = track;
}
id = () => {
return this._id;
}
track = () => {
return _track;
}
}