Support for video dimensions in publications (#36)

* send back video dimensions

* Store video dimensions in MediaTrack and forward in TrackInfo

* use committed protocol
This commit is contained in:
David Zhao
2021-06-18 21:05:56 -07:00
committed by GitHub
parent 515b1f0f7e
commit 38c81e5645
14 changed files with 157 additions and 49 deletions
-9
View File
@@ -93,15 +93,6 @@ func FromProtoTrickle(trickle *livekit.TrickleRequest) (webrtc.ICECandidateInit,
return ci, nil
}
func ToProtoTrack(t types.PublishedTrack) *livekit.TrackInfo {
return &livekit.TrackInfo{
Sid: t.ID(),
Type: t.Kind(),
Name: t.Name(),
Muted: t.IsMuted(),
}
}
func ToProtoTrackKind(kind webrtc.RTPCodecType) livekit.TrackType {
switch kind {
case webrtc.RTPCodecTypeVideo: