Skip to content

Commit 09f4ccb

Browse files
authored
fix: send codec in video_source_codec to have it show up in renditionchange events
1 parent 3496393 commit 09f4ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mux-analytics.brs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ function muxAnalytics() as Object
766766
end if
767767
if videoSegment.width <> Invalid AND videoSegment.height <> Invalid AND videoSegment.segBitrateBps <> Invalid
768768
if m._lastSourceWidth <> Invalid AND m._lastSourceWidth <> videoSegment.width OR m._lastSourceHeight <> Invalid AND m._lastSourceHeight <> videoSegment.height OR m._lastVideoSegmentBitrate <> Invalid AND m._lastVideoSegmentBitrate <> videoSegment.segBitrateBps
769-
details = { video_source_width : videoSegment.width, video_source_height : videoSegment.height, video_source_bitrate : videoSegment.segBitrateBps, video_codec: m._videoSourceFormat, video_audio_codec: m._audioSourceFormat }
769+
details = { video_source_width : videoSegment.width, video_source_height : videoSegment.height, video_source_bitrate : videoSegment.segBitrateBps, video_codec: m._videoSourceFormat, video_source_codec: m._videoSourceFormat, video_audio_codec: m._audioSourceFormat }
770770
m._addEventToQueue(m._createEvent("renditionchange", details))
771771
end if
772772
end if

0 commit comments

Comments
 (0)