mirror of
https://github.com/pion/webrtc.git
synced 2025-10-09 09:00:35 +08:00
Populate MediaEngine from Offer in broadcast
Use offerer PayloadType when generating answer. Before we would use the hardcoded values, this is invalid behavior and would cause browsers to just ignore our video when publishing.
This commit is contained in:

committed by
Sean DuBois

parent
25305542b9
commit
73f8db9316
@@ -27,7 +27,7 @@ window.createSession = isPublisher => {
|
||||
.catch(log)
|
||||
}).catch(log)
|
||||
} else {
|
||||
pc.addTransceiver('video', {'direction': 'recvonly'})
|
||||
pc.addTransceiver('video')
|
||||
pc.createOffer()
|
||||
.then(d => pc.setLocalDescription(d))
|
||||
.catch(log)
|
||||
|
Reference in New Issue
Block a user