Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

RTCPeerConnection.js 626B

12345678910111213141516171819
  1. import { RTCPeerConnection as PC } from 'react-native-webrtc';
  2. import { synthesizeIPv6Addresses } from './ipv6utils';
  3. /**
  4. * Override PeerConnection to synthesize IPv6 addresses.
  5. */
  6. export default class RTCPeerConnection extends PC {
  7. /**
  8. * Synthesize IPv6 addresses before calling the underlying setRemoteDescription.
  9. *
  10. * @param {Object} description - SDP.
  11. * @returns {Promise<undefined>} A promise which is resolved once the operation is complete.
  12. */
  13. async setRemoteDescription(description) {
  14. return super.setRemoteDescription(await synthesizeIPv6Addresses(description));
  15. }
  16. }