prax/src/components/posenet/components/Camera.js
// tk added registerpeerconnection function based on codelab
tk added registerpeerconnection function based on codelab
tk added registerpeerconnection function based on codelab
function registerPeerConnectionListeners() {
    peerConnection.addEventListener('icegatheringstatechange', () => {
      console.log(
        `ICE gathering state changed: ${peerConnection.iceGatheringState}`);
    });
  peerConnection.addEventListener('connectionstatechange', () => {
    console.log(`Connection state change: ${peerConnection.connectionState}`);
  });
  peerConnection.addEventListener('signalingstatechange', () => {
    console.log(`Signaling state change: ${peerConnection.signalingState}`);
  });
  peerConnection.addEventListener('iceconnectionstatechange ', () => {
    console.log(
        `ICE connection state change: ${peerConnection.iceConnectionState}`);
  });
}
function registerPeerConnectionListeners ( ) { peerConnection . addEventListener ( 'icegatheringstatechange' , ( ) => { console . log ( ` ${ peerConnection . iceGatheringState } ` ) ; } ) ; peerConnection . addEventListener ( 'connectionstatechange' , ( ) => { console . log ( ` ${ peerConnection . connectionState } ` ) ; } ) ; peerConnection . addEventListener ( 'signalingstatechange' , ( ) => { console . log ( ` ${ peerConnection . signalingState } ` ) ; } ) ; peerConnection . addEventListener ( 'iceconnectionstatechange ' , ( ) => { console . log ( ` ${ peerConnection . iceConnectionState } ` ) ; } ) ; }
tk added registerpeerconnection function based on codelab
tk added registerpeerconnection function based on codelab
// remotePoses()