Skip to content

Commit 6d136f0

Browse files
authored
Audio profile: DTT Issue Clarifications (#710)
* Audio profile: Issue Clarifications * fix for issue #707
1 parent e316caa commit 6d136f0

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

doc/Streaming.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,29 @@ Sec-WebSocket-Protocol: rtsp.onvif.org
21322132
</mediaobject>
21332133
</figure>
21342134
</chapter>
2135+
<appendix>
2136+
<title>SRTP (Informative)</title>
2137+
<para>When implementing SRTP functionality, implementers should be aware of specific library requirements that may affect packet data handling.</para>
2138+
<section>
2139+
<title>libsrtp Implementation Considerations</title>
2140+
<para>If libsrtp is used for SRTP implementation, proper alignment is required for packet data. The libsrtp library documentation specifies the following alignment assumptions:</para>
2141+
<itemizedlist>
2142+
<listitem>
2143+
<para>The <code>srtp_protect</code> method assumes that the RTP packet is aligned on a 32-bit boundary.</para>
2144+
</listitem>
2145+
<listitem>
2146+
<para>The <code>srtp_protect_rtcp</code> method assumes that the RTCP packet is aligned on a 32-bit boundary.</para>
2147+
</listitem>
2148+
<listitem>
2149+
<para>The <code>srtp_unprotect</code> method assumes that the SRTP packet is aligned on a 32-bit boundary.</para>
2150+
</listitem>
2151+
<listitem>
2152+
<para>The <code>srtp_unprotect_rtcp</code> method assumes that the SRTCP packet is aligned on a 32-bit boundary.</para>
2153+
</listitem>
2154+
</itemizedlist>
2155+
<para>Implementers should ensure that packet buffers are properly aligned on 32-bit boundaries before passing them to libsrtp functions. Failure to maintain proper alignment may result in performance degradation or runtime errors on some platforms. It is recommended to consult the libsrtp documentation for specific alignment requirements of the version being used.</para>
2156+
</section>
2157+
</appendix>
21352158
<appendix role="revhistory">
21362159
<title>Revision History</title>
21372160
<para/>

wsdl/ver10/schema/onvif.xsd

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,14 @@ IN NO EVENT WILL THE CORPORATION OR ITS MEMBERS OR THEIR AFFILIATES BE LIABLE FO
10191019
<!--===============================-->
10201020
<!-- VideoEncoder2Configuration -->
10211021
<!--===============================-->
1022+
<xs:simpleType name="SrtpSecurityAlgorithms">
1023+
<xs:restriction base="xs:string">
1024+
<xs:enumeration value="NONE"/>
1025+
<xs:enumeration value="AES_CM_128_HMAC_SHA1_80"/>
1026+
<xs:enumeration value="AEAD_AES_128_GCM"/>
1027+
<xs:enumeration value="AEAD_AES_256_GCM"/>
1028+
</xs:restriction>
1029+
</xs:simpleType>
10221030
<xs:simpleType name="VideoEncodingMimeNames">
10231031
<xs:annotation>
10241032
<xs:documentation>Video Media Subtypes as referenced by IANA (without the leading "video/" Video Media Type). See also <a href="https://www.iana.org/assignments/media-types/media-types.xhtml#video"> IANA Media Types</a>.</xs:documentation>
@@ -2153,11 +2161,11 @@ decoding .A decoder shall decode every data it receives (according to its capabi
21532161
<xs:element name="SRTPPSK" type="xs:string">
21542162
<xs:annotation>
21552163
<xs:documentation>
2156-
An optional SRTP Pre-Shared Key (PSK) represented as a hexadecimal string.
2164+
SRTP Pre-Shared Key (PSK) represented as a hexadecimal string.
21572165
This includes both the SRTP master key, followed by the master salt.
2158-
The sizes of the key and salt depend on the specified SRTPCryptoPolicy.
2159-
When this element is specified, RTP packets shall be encrypted.
2160-
The SRTPPSK shall never be returned on a get method.
2166+
The sizes of the key and salt depend on the specified SecureStreamingProtocolAlgorithm.
2167+
When this element contains a non-empty value, RTP packets shall be encrypted.
2168+
The SRTPPSK shall be returned as an empty string on a get method.
21612169
</xs:documentation>
21622170
</xs:annotation>
21632171
</xs:element>

0 commit comments

Comments
 (0)