mirror of
https://github.com/pion/webrtc.git
synced 2025-10-16 12:10:44 +08:00
Add media/oggreader
Start oggreader, this allows a user to demux an oggfile so they can easily play files from disk. Resolves: #1133 Co-authored-by: Somers Matthews <somersbmatthews@gmail.com> Co-authored-by: funvit <funvit@gmail.com>
This commit is contained in:
@@ -21,8 +21,10 @@ pc.onicecandidate = event => {
|
||||
}
|
||||
}
|
||||
|
||||
// Offer to receive 1 audio, and 2 video tracks
|
||||
// Offer to receive 1 audio, and 1 video track
|
||||
pc.addTransceiver('video', {'direction': 'sendrecv'})
|
||||
pc.addTransceiver('audio', {'direction': 'sendrecv'})
|
||||
|
||||
pc.createOffer().then(d => pc.setLocalDescription(d)).catch(log)
|
||||
|
||||
window.startSession = () => {
|
||||
|
Reference in New Issue
Block a user