@@ -127,11 +127,22 @@ For instance:
127
127
" name" : " Webcam" , // optional, just to help users understand what multiple streams from the same person mean.
128
128
" device_id" : " ASDUHDGFYUW" , // just in case people ending up dialing this directly for full mesh or 1:1
129
129
" audio" : [
130
- { " id" : " zbhsbdhwe" , " format" : { " channels" : 2 , " rate" : 48000 , " maxbr" : 32000 } },
130
+ {
131
+ " id" : " zbhsbdhwe" ,
132
+ " purpose" : " m.usermedia" ,
133
+ " format" : { " channels" : 2 , " rate" : 48000 , " maxbr" : 32000 } },
131
134
],
132
135
" video" : [
133
- { " id" : " zbhsbdhzs" , " format" : { " res" : { " width" : 1280 , " height" : 720 }, " fps" : 30 , " maxbr" : 512000 } },
134
- { " id" : " zbhsbdhzx" , " format" : { " res" : { " width" : 320 , " height" : 240 }, " fps" : 15 , " maxbr" : 48000 } },
136
+ {
137
+ " id" : " zbhsbdhzs" ,
138
+ " purpose" : " m.usermedia" ,
139
+ " format" : { " res" : { " width" : 1280 , " height" : 720 }, " fps" : 30 , " maxbr" : 512000 }
140
+ },
141
+ {
142
+ " id" : " zbhsbdhzx" ,
143
+ " purpose" : " m.usermedia" ,
144
+ " format" : { " res" : { " width" : 320 , " height" : 240 }, " fps" : 15 , " maxbr" : 48000 }
145
+ },
135
146
],
136
147
" mosaic" : {}, // for composited video streams?
137
148
},
@@ -140,8 +151,16 @@ For instance:
140
151
" name" : " Screenshare" , // optional
141
152
" device_id" : " ASDUHDGFYUW" ,
142
153
" video" : [
143
- { " id" : " xhsbdhzs" , " format" : { " res" : { " width" : 1280 , " height" : 720 }, " fps" : 30 , " maxbr" : 512000 } },
144
- { " id" : " xbhsbdhzx" , " format" : { " res" : { " width" : 320 , " height" : 240 }, " fps" : 15 , " maxbr" : 48000 } },
154
+ {
155
+ " id" : " xhsbdhzs" ,
156
+ " purpose" : " m.screenshare" ,
157
+ " format" : { " res" : { " width" : 1280 , " height" : 720 }, " fps" : 30 , " maxbr" : 512000 }
158
+ },
159
+ {
160
+ " id" : " xbhsbdhzx" ,
161
+ " purpose" : " m.screenshare" ,
162
+ " format" : { " res" : { " width" : 320 , " height" : 240 }, " fps" : 15 , " maxbr" : 48000 }
163
+ },
145
164
]
146
165
},
147
166
]
0 commit comments