Skip to content

Commit c641b53

Browse files
mchlrhwSean-Der
authored andcommitted
Fix gstreamer-send for Firefox temporarily
Alter the transceiver direction to sendrecv to satisfy Firefox.
1 parent 1f39d18 commit c641b53

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu
5353
* [Simonacca Fotokite](https://github.com/simonacca-fotokite)
5454
* [Steve Denman](https://github.com/stevedenman)
5555
* [RunningMan](https://github.com/xsbchen)
56+
* [mchlrhw](https://github.com/mchlrhw)
5657

5758
### License
5859
MIT License - see [LICENSE](LICENSE) for full text

gstreamer-send/jsfiddle/demo.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ pc.onicecandidate = event => {
2828
}
2929

3030
// Offer to receive 1 audio, and 2 video tracks
31-
pc.addTransceiver('audio', {'direction': 'recvonly'})
32-
pc.addTransceiver('video', {'direction': 'recvonly'})
33-
pc.addTransceiver('video', {'direction': 'recvonly'})
31+
pc.addTransceiver('audio', {'direction': 'sendrecv'})
32+
pc.addTransceiver('video', {'direction': 'sendrecv'})
33+
pc.addTransceiver('video', {'direction': 'sendrecv'})
3434
pc.createOffer().then(d => pc.setLocalDescription(d)).catch(log)
3535

3636
window.startSession = () => {

0 commit comments

Comments
 (0)