From 77af0ef660d1903e2e3010592b5cee21443a98c8 Mon Sep 17 00:00:00 2001 From: Jakub Pisarek <99591440+sgfn@users.noreply.github.com> Date: Thu, 19 Jun 2025 12:40:12 +0200 Subject: [PATCH] Allow H264 packetization_mode=0 --- lib/live_ex_webrtc/player.ex | 2 +- lib/live_ex_webrtc/publisher.ex | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/live_ex_webrtc/player.ex b/lib/live_ex_webrtc/player.ex index a5b1a42..c30b8b6 100644 --- a/lib/live_ex_webrtc/player.ex +++ b/lib/live_ex_webrtc/player.ex @@ -35,7 +35,7 @@ defmodule LiveExWebRTC.Player do ## Simulcast - Simulcast requires video codecs to be H264 (packetization mode 1) and/or VP8. + Simulcast requires video codecs to be H264 and/or VP8. See `LiveExWebRTC.Publisher` module doc for more. ## Examples diff --git a/lib/live_ex_webrtc/publisher.ex b/lib/live_ex_webrtc/publisher.ex index 8c44f47..7c42294 100644 --- a/lib/live_ex_webrtc/publisher.ex +++ b/lib/live_ex_webrtc/publisher.ex @@ -52,7 +52,7 @@ defmodule LiveExWebRTC.Publisher do ## Simulcast - Simulcast requires video codecs to be H264 (packetization mode 1) and/or VP8. E.g. + Simulcast requires video codecs to be H264 and/or VP8. E.g. ```elixir video_codecs = [ @@ -803,8 +803,7 @@ defmodule LiveExWebRTC.Publisher do true %RTPCodecParameters{mime_type: "video/H264", sdp_fmtp_line: fmtp} when fmtp != nil -> - fmtp.level_asymmetry_allowed == true and fmtp.packetization_mode == 1 and - fmtp.profile_level_id == 0x42E01F + fmtp.level_asymmetry_allowed == true and fmtp.profile_level_id == 0x42E01F _ -> false