Skip to content

Commit 4f1fef6

Browse files
committedJun 18, 2024·
2 parents 83773af + a85b43b commit 4f1fef6

File tree

63 files changed

+475
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+475
-344
lines changed
 

‎en-US/dita/RTC-NG/API/api_imediaengine_createcustomaudiotrack.dita

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<note type="attention">Ensure that you call this method before joining a channel.</note>
4343
<p>To publish a custom audio source, see the following steps:<ol>
4444
<li>Call this method to create a custom audio track and get the audio track ID.</li>
45-
<li>Call <xref keyref="joinChannel2"/> to join the channel. In <xref keyref="ChannelMediaOptions"/>, set <parmname>publishCustomAduioTrackId</parmname> to the audio track ID that you want to publish, and set <parmname>publishCustomAudioTrack</parmname> to <codeph><ph keyref="true"/></codeph>.</li>
45+
<li>Call <xref keyref="joinChannel2"/> to join the channel. In <xref keyref="ChannelMediaOptions"/>, set <parmname>publishCustomAudioTrackId</parmname> to the audio track ID that you want to publish, and set <parmname>publishCustomAudioTrack</parmname> to <codeph><ph keyref="true"/></codeph>.</li>
4646
<li>Call <xref keyref="pushAudioFrame" props="cpp framework"/><xref keyref="pushAudioFrame2" props="android apple"/> and specify <parmname>trackId</parmname> as the audio track ID set in step 2. You can then publish the corresponding custom audio source in the channel.</li>
4747
</ol></p>
4848
</section>
@@ -62,7 +62,7 @@
6262
<title>Returns</title>
6363
<ul>
6464
<li>If the method call is successful, the audio track ID is returned as the unique identifier of the audio track.</li>
65-
<li>If the method call fails, a negative value is returned.</li>
65+
<li>If the method call fails, 0xffffffff is returned. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
6666
</ul> </section>
6767
</refbody>
68-
</reference>
68+
</reference>

‎en-US/dita/RTC-NG/API/api_imediaengine_pushaudioframe0.dita

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<note type="attention">
2828
<p>Before calling this method to push external audio data, perform the following steps:<ol>
2929
<li>Call <xref keyref="createCustomAudioTrack"/> to create a custom audio track and get the audio track ID.</li>
30-
<li>Call <xref keyref="joinChannel2"/> to join the channel. In <xref keyref="ChannelMediaOptions"/>, set <parmname>publishCustomAduioTrackId</parmname> to the audio track ID that you want to publish, and set <parmname>publishCustomAudioTrack</parmname> to <codeph><ph keyref="true"/></codeph>.</li>
30+
<li>Call <xref keyref="joinChannel2"/> to join the channel. In <xref keyref="ChannelMediaOptions"/>, set <parmname>publishCustomAudioTrackId</parmname> to the audio track ID that you want to publish, and set <parmname>publishCustomAudioTrack</parmname> to <codeph><ph keyref="true"/></codeph>.</li>
3131
</ol></p>
3232
</note> </section>
3333
<section id="parameters">

0 commit comments

Comments
 (0)
Please sign in to comment.