From 0649cee41a0b5d9393519efb9e9ebfd2a3853be2 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 8 Feb 2024 22:05:29 +0100 Subject: [PATCH] fix test and update readme --- README.md | 4 ++-- rtsp/src/test/java/com/pedro/rtsp/rtp/OpusPacketTest.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 25d4402c9..c367f3d49 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ dependencies { - [X] Get upload bandwidth used. - [x] RTSP auth (adobe and llnw). -- [x] H264, AV1, H265 ([Using RTMP enhanced](https://github.com/veovera/enhanced-rtmp/tree/main)), AAC and G711 support. +- [x] AV1, H265 ([Using RTMP enhanced](https://github.com/veovera/enhanced-rtmp/tree/main)), H264, AAC and G711 support. - [x] RTMPS (under TLS) - [x] RTMPT and RTMPTS (tunneled and tunneled under TLS) - [x] AMF0 @@ -111,7 +111,7 @@ dependencies { - [X] Get upload bandwidth used. - [x] RTMP auth (basic and digest). -- [x] AV1, H264, H265, AAC and G711 support. +- [x] AV1, H264, H265, AAC, G711 and OPUS support. - [x] TCP/UDP. - [x] RTSPS. diff --git a/rtsp/src/test/java/com/pedro/rtsp/rtp/OpusPacketTest.kt b/rtsp/src/test/java/com/pedro/rtsp/rtp/OpusPacketTest.kt index 65a60a8a9..9958b9cfa 100644 --- a/rtsp/src/test/java/com/pedro/rtsp/rtp/OpusPacketTest.kt +++ b/rtsp/src/test/java/com/pedro/rtsp/rtp/OpusPacketTest.kt @@ -47,7 +47,7 @@ class OpusPacketTest { frames.add(it) } - val expectedRtp = byteArrayOf(-128, -120, 0, 1, 0, 15, 18, 6, 7, 91, -51, 21).plus(fakeOpus) + val expectedRtp = byteArrayOf(-128, -31, 0, 1, 0, 15, 18, 6, 7, 91, -51, 21).plus(fakeOpus) val expectedTimeStamp = 987654L val expectedSize = RtpConstants.RTP_HEADER_LENGTH + info.size val packetResult = RtpFrame(expectedRtp, expectedTimeStamp, expectedSize, 1, 2, RtpConstants.trackAudio)