Catching a few more files with types (#299)

* Use types in mediatrack.go

* A bunch more files get types

* One more file
This commit is contained in:
Raja Subramanian
2021-12-29 23:51:06 +05:30
committed by GitHub
parent fe06b46e94
commit 9d78619ca3
15 changed files with 174 additions and 174 deletions
+5 -5
View File
@@ -18,9 +18,9 @@ const (
)
type SubscribedTrackParams struct {
PublisherID string
PublisherIdentity string
SubscriberID string
PublisherID livekit.ParticipantID
PublisherIdentity livekit.ParticipantIdentity
SubscriberID livekit.ParticipantID
MediaTrack types.MediaTrack
DownTrack *sfu.DownTrack
}
@@ -56,11 +56,11 @@ func (t *SubscribedTrack) ID() string {
return t.params.DownTrack.ID()
}
func (t *SubscribedTrack) PublisherID() string {
func (t *SubscribedTrack) PublisherID() livekit.ParticipantID {
return t.params.PublisherID
}
func (t *SubscribedTrack) PublisherIdentity() string {
func (t *SubscribedTrack) PublisherIdentity() livekit.ParticipantIdentity {
return t.params.PublisherIdentity
}