My server is configured to use a static-auth-secret
so I changed the WebRTC Trickle ICE example to use oauth
as the credential type, and I hoped this would allow me to use the static-auth-secret for authentication.
However, I get this error now:
TypeError: RTCPeerConnection constructor: 'oauth' (value of 'credentialType' member of RTCIceServer) is not a valid value for enumeration RTCIceCredentialType.
This is what my iceServer object looks like now:
const iceServer = {
urls: [urlInput.value],
credential: passcodeInput.value,
credentialType: 'oauth'
};
This doesn't make sense because the documentation here says credentialType can be either oauth or password.