File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
srt/src/main/java/com/pedro/srt/srt
udp/src/main/java/com/pedro/udp Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ class SrtSender(
131
131
size + = commandsManager.writeData(mpegTsPacket, socket)
132
132
bytesSend + = size
133
133
}
134
+ if (type == MpegType .VIDEO ) videoFramesSent++
135
+ else if (type == MpegType .AUDIO ) audioFramesSent++
134
136
if (isEnableLogs) {
135
137
Log .i(TAG , " wrote ${type.name} packet, size $bytesSend " )
136
138
}
Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ class UdpSender(
131
131
size + = commandManager.writeData(mpegTsPacket, socket)
132
132
bytesSend + = size
133
133
}
134
+ if (type == MpegType .VIDEO ) videoFramesSent++
135
+ else if (type == MpegType .AUDIO ) audioFramesSent++
134
136
if (isEnableLogs) {
135
137
Log .i(TAG , " wrote ${type.name} packet, size $bytesSend " )
136
138
}
You can’t perform that action at this time.
0 commit comments