From 1e701d59a0ef49d5de344c8bf337bc84a8d39b31 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Tue, 16 Jan 2024 09:32:54 +0900 Subject: [PATCH] webrtc_transceiver: Add more information about H264 ST signaling server requires this for NEST doorbell. So it is added. TIZEN_DA build definition has been introduced for DA compiling option. [Version] 0.4.59 [Issue Type] Condition added (for product) Change-Id: I9a40779f5fb70f534b62a7dd37f2261ea9a76b17 Signed-off-by: Sangchul Lee --- CMakeLists.txt | 3 +++ packaging/capi-media-webrtc.spec | 7 ++++++- src/webrtc_transceiver.c | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 26710090..1c11da64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,9 @@ IF(NOT TIZEN_PROFILE_TV) ELSE() ADD_DEFINITIONS("-DTIZEN_TV") ENDIF() +IF(TIZEN_PROFILE_DA) + ADD_DEFINITIONS("-DTIZEN_DA") +ENDIF() IF(TIZEN_FEATURE_UI) ADD_DEFINITIONS("-DTIZEN_FEATURE_UI") ENDIF() diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 2aa3dc28..cc4c9f70 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 0.4.58 +Version: 0.4.59 Release: 0 Group: Multimedia/API License: Apache-2.0 @@ -116,6 +116,11 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %else -DTIZEN_PROFILE_TV=off \ %endif +%if "%{_with_da_profile}" == "1" +-DTIZEN_PROFILE_DA=on \ +%else +-DTIZEN_PROFILE_DA=off \ +%endif %if "%{test_espp_render}" == "1" -DTIZEN_FEATURE_ESPP=on \ %else diff --git a/src/webrtc_transceiver.c b/src/webrtc_transceiver.c index 70745e01..ee790f96 100644 --- a/src/webrtc_transceiver.c +++ b/src/webrtc_transceiver.c @@ -200,6 +200,14 @@ static GstCaps *__make_transceiver_caps_with_pt(rtp_payload_info_s *payload_info gst_caps_set_simple(caps, "encoding-params", G_TYPE_STRING, "2", NULL); +#ifdef TIZEN_DA + else if (payload_info->codec == WEBRTC_TRANSCEIVER_CODEC_H264) + gst_caps_set_simple(caps, + "level-asymmetry-allowed", G_TYPE_STRING, "1", + "packetization-mode", G_TYPE_STRING, "1", + "profile-level-id", G_TYPE_STRING, "42e01f", + NULL); +#endif return caps; } -- 2.34.1