JSFiddle - React, Tailwind, and code Playground
by fippo
JavaScript
const pc = new RTCPeerConnection();
async function run() {
const t = pc.addTransceiver('video');
t.direction = 'sendonly';
t.setCodecPreferences([{clockRate: 90000, mimeType: 'video/VP9', sdpFmtpLine: 'profile-id=1'}]);
await pc.setLocalDescription();
}
run();