Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. }