Remove TrackSender.ParticipantIdentity since it's unused (#738)

Just introduced this in #736 and realized the interface change comes
with a bunch of unintended consequences, so reverting this addition.
This commit is contained in:
David Zhao
2022-05-29 23:22:03 -07:00
committed by GitHub
parent 7ad51f49f1
commit 73808a1623
3 changed files with 23 additions and 30 deletions
-1
View File
@@ -144,7 +144,6 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
codecs, codecs,
wr, wr,
t.params.BufferFactory, t.params.BufferFactory,
sub.Identity(),
subscriberID, subscriberID,
t.params.ReceiverConfig.PacketBufferSize, t.params.ReceiverConfig.PacketBufferSize,
LoggerWithTrack(sub.GetLogger(), trackID), LoggerWithTrack(sub.GetLogger(), trackID),
+2 -1
View File
@@ -1,7 +1,8 @@
// Code generated by Wire. DO NOT EDIT. // Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire //go:generate go run github.com/google/wire/cmd/wire
//+build !wireinject //go:build !wireinject
// +build !wireinject
package service package service
-7
View File
@@ -33,7 +33,6 @@ type TrackSender interface {
// ID is the globally unique identifier for this Track. // ID is the globally unique identifier for this Track.
ID() string ID() string
SubscriberID() livekit.ParticipantID SubscriberID() livekit.ParticipantID
SubscriberIdentity() livekit.ParticipantIdentity
} }
const ( const (
@@ -111,7 +110,6 @@ type ReceiverReportListener func(dt *DownTrack, report *rtcp.ReceiverReport)
type DownTrack struct { type DownTrack struct {
logger logger.Logger logger logger.Logger
id livekit.TrackID id livekit.TrackID
subscriberIdentity livekit.ParticipantIdentity
subscriberID livekit.ParticipantID subscriberID livekit.ParticipantID
bound atomic.Bool bound atomic.Bool
kind webrtc.RTPCodecType kind webrtc.RTPCodecType
@@ -194,7 +192,6 @@ func NewDownTrack(
codecs []webrtc.RTPCodecCapability, codecs []webrtc.RTPCodecCapability,
r TrackReceiver, r TrackReceiver,
bf *buffer.Factory, bf *buffer.Factory,
subIdentity livekit.ParticipantIdentity,
subID livekit.ParticipantID, subID livekit.ParticipantID,
mt int, mt int,
logger logger.Logger, logger logger.Logger,
@@ -212,7 +209,6 @@ func NewDownTrack(
d := &DownTrack{ d := &DownTrack{
logger: logger, logger: logger,
id: r.TrackID(), id: r.TrackID(),
subscriberIdentity: subIdentity,
subscriberID: subID, subscriberID: subID,
maxTrack: mt, maxTrack: mt,
streamID: r.StreamID(), streamID: r.StreamID(),
@@ -329,8 +325,6 @@ func (d *DownTrack) Codec() webrtc.RTPCodecCapability { return d.codec }
// StreamID is the group this track belongs too. This must be unique // StreamID is the group this track belongs too. This must be unique
func (d *DownTrack) StreamID() string { return d.streamID } func (d *DownTrack) StreamID() string { return d.streamID }
func (d *DownTrack) SubscriberIdentity() livekit.ParticipantIdentity { return d.subscriberIdentity }
func (d *DownTrack) SubscriberID() livekit.ParticipantID { return d.subscriberID } func (d *DownTrack) SubscriberID() livekit.ParticipantID { return d.subscriberID }
// Sets RTP header extensions for this track // Sets RTP header extensions for this track
@@ -1371,7 +1365,6 @@ func (d *DownTrack) DebugInfo() map[string]interface{} {
return map[string]interface{}{ return map[string]interface{}{
"SubscriberID": d.subscriberID, "SubscriberID": d.subscriberID,
"Subscriber": d.subscriberIdentity,
"TrackID": d.id, "TrackID": d.id,
"StreamID": d.streamID, "StreamID": d.streamID,
"SSRC": d.ssrc, "SSRC": d.ssrc,