From: Sangchul Lee Date: Tue, 16 Jan 2024 00:32:54 +0000 (+0900) Subject: webrtc_transceiver: Add more information about H264 X-Git-Tag: accepted/tizen/7.0/unified/20240118.092857^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e3c4eecc1f2524b6e2a5b89cbb7e690aeade28b;p=platform%2Fcore%2Fapi%2Fwebrtc.git 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.3.301 [Issue Type] Condition added (for product) Change-Id: I9a40779f5fb70f534b62a7dd37f2261ea9a76b17 Signed-off-by: Sangchul Lee --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 44bd99ee..b66f8bd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,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 fce36fa3..bd32714d 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.3.300 +Version: 0.3.301 Release: 0 Group: Multimedia/API License: Apache-2.0 @@ -112,6 +112,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 58a3a9e0..f4de97d0 100644 --- a/src/webrtc_transceiver.c +++ b/src/webrtc_transceiver.c @@ -193,6 +193,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; }