UNPKG

react-native-webrtc2

Version:
20 lines (17 loc) 397 B
//--新增文件 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; } }