From 8c5d68b5325770eea09da9d8ea668d41f35b5864 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Sat, 21 Oct 2023 09:50:54 +0200 Subject: [PATCH] docs(README): add support for enhanced RTMP --- README.md | 1 + .../internal/muxers/flv/tags/video/ExtendedVideoTag.kt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c97349eda..497538f98 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ android { * File: TS or FLV * Write to a single file or multiple chunk files * Streaming: RTMP/RTMPS or SRT + * Support for enhanced RTMP * Ultra low-latency based on [SRT](https://github.com/Haivision/srt) * Network adaptive bitrate mechanism for [SRT](https://github.com/Haivision/srt) diff --git a/core/src/main/java/io/github/thibaultbee/streampack/internal/muxers/flv/tags/video/ExtendedVideoTag.kt b/core/src/main/java/io/github/thibaultbee/streampack/internal/muxers/flv/tags/video/ExtendedVideoTag.kt index ae325207b..533dd9347 100644 --- a/core/src/main/java/io/github/thibaultbee/streampack/internal/muxers/flv/tags/video/ExtendedVideoTag.kt +++ b/core/src/main/java/io/github/thibaultbee/streampack/internal/muxers/flv/tags/video/ExtendedVideoTag.kt @@ -68,7 +68,7 @@ class ExtendedVideoTag( // ExVideoTagHeader buffer.put( - (1 shl 7) or // IsExHeader + 0x80 or // IsExHeader (frameType.value shl 4) or // Frame Type packetType.value // PacketType ) @@ -78,7 +78,6 @@ class ExtendedVideoTag( override val tagHeaderSize = VIDEO_TAG_HEADER_SIZE override fun writeBody(buffer: ByteBuffer) { - Logger.e(TAG, "PacketType $packetType") when (packetType) { PacketType.META_DATA -> { throw NotImplementedError("PacketType $packetType is not supported for $mimeType")