fix: Do not send the videoType for audio tracks (#11742)
This commit is contained in:
parent
ddab27e292
commit
d029045fda
|
@ -65,7 +65,7 @@ MiddlewareRegistry.register(store => next => action => {
|
|||
const { ssrc, videoType } = jitsiTrack || { };
|
||||
|
||||
// Remote tracks store their ssrc in the jitsiTrack object. Local tracks don't. See getSsrcByTrack.
|
||||
if (videoType && ssrc && !jitsiTrack.isLocal()) {
|
||||
if (videoType && ssrc && !jitsiTrack.isLocal() && !jitsiTrack.isAudioTrack()) {
|
||||
RTCStats.sendVideoTypeData({
|
||||
ssrc,
|
||||
videoType
|
||||
|
@ -81,7 +81,7 @@ MiddlewareRegistry.register(store => next => action => {
|
|||
|
||||
// if the videoType of the remote track has changed we expect to find it in track.videoType. grep for
|
||||
// trackVideoTypeChanged.
|
||||
if (videoType && ssrc && !jitsiTrack.isLocal()) {
|
||||
if (videoType && ssrc && !jitsiTrack.isLocal() && !jitsiTrack.isAudioTrack()) {
|
||||
|
||||
RTCStats.sendVideoTypeData({
|
||||
ssrc,
|
||||
|
|
Loading…
Reference in New Issue