Add subscriber stream start event notification (#4449)

This commit is contained in:
Raja Subramanian
2026-04-14 22:08:31 +05:30
committed by GitHub
parent ce1bf47b5c
commit 6c81f67858
8 changed files with 90 additions and 23 deletions
+5
View File
@@ -262,6 +262,7 @@ type DownTrackListener interface {
OnRttUpdate(rtt uint32)
OnCodecNegotiated(webrtc.RTPCodecCapability)
OnDownTrackClose(isExpectedToResume bool)
OnStreamStarted()
}
// -------------------------------------------------------------------
@@ -1212,6 +1213,10 @@ func (d *DownTrack) WriteRTP(extPkt *buffer.ExtPacket, layer int32) int32 {
sal.OnResume(d)
}
}
if tp.isStarting {
d.params.Listener.OnStreamStarted()
}
return 1
}