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:
@@ -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),
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
+21
-28
@@ -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 (
|
||||||
@@ -109,19 +108,18 @@ type ReceiverReportListener func(dt *DownTrack, report *rtcp.ReceiverReport)
|
|||||||
// - closed
|
// - closed
|
||||||
// once closed, a DownTrack cannot be re-used.
|
// once closed, a DownTrack cannot be re-used.
|
||||||
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
|
mime string
|
||||||
mime string
|
ssrc uint32
|
||||||
ssrc uint32
|
streamID string
|
||||||
streamID string
|
maxTrack int
|
||||||
maxTrack int
|
payloadType uint8
|
||||||
payloadType uint8
|
sequencer *sequencer
|
||||||
sequencer *sequencer
|
bufferFactory *buffer.Factory
|
||||||
bufferFactory *buffer.Factory
|
|
||||||
|
|
||||||
forwarder *Forwarder
|
forwarder *Forwarder
|
||||||
|
|
||||||
@@ -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,
|
||||||
@@ -210,16 +207,15 @@ 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(),
|
bufferFactory: bf,
|
||||||
bufferFactory: bf,
|
receiver: r,
|
||||||
receiver: r,
|
upstreamCodecs: codecs,
|
||||||
upstreamCodecs: codecs,
|
kind: kind,
|
||||||
kind: kind,
|
|
||||||
}
|
}
|
||||||
d.forwarder = NewForwarder(d.kind, d.logger)
|
d.forwarder = NewForwarder(d.kind, d.logger)
|
||||||
|
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user