Update WebRTC type in info JSON

This commit is contained in:
Alexey Khit
2023-03-08 17:33:00 +03:00
parent 775b1818d1
commit 1fc2cf3175
9 changed files with 67 additions and 14 deletions
+2
View File
@@ -15,6 +15,8 @@ import (
func NewClient(tracker, share, pwd string, pc *pion.PeerConnection) (*webrtc.Conn, error) {
// 1. Create WebRTC producer
prod := webrtc.NewConn(pc)
prod.Desc = "WebRTC/WebTorrent sync"
prod.Mode = streamer.ModeActiveProducer
medias := []*streamer.Media{
{Kind: streamer.KindVideo, Direction: streamer.DirectionRecvonly},