I hope there is no flaw in the logic. Step 1: caller creates offer Step 2: caller sets localDescription Step 3: caller sends …