Skip to content

Commit

Permalink
endoc-281-rtc-weekly-0425-changes (#1574)
Browse files Browse the repository at this point in the history
* Use GO for notifications

* Sync with cn docs

* https://github.com/AgoraIO/shengwang-doc-source/commit/a50d647aebfcec232dfe6ea60cec40fa01fc7577

* ENDOC-269 Rtc weekly 0411

* review updates

* review

* review

* endoc-281-rtc-weekly-0425-changes

* ios-macos quickstart updates

---------

Co-authored-by: hussain-khalid <[email protected]>
Co-authored-by: Dasun Nirmitha <[email protected]>
Co-authored-by: saudsami <[email protected]>
Co-authored-by: atovpeko <[email protected]>
Co-authored-by: atovpeko <[email protected]>
  • Loading branch information
6 people authored Jul 13, 2024
1 parent b529dc4 commit 8fa6286
Show file tree
Hide file tree
Showing 6 changed files with 575 additions and 421 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The client requests a token from your authentication server corresponding to the user ID and the channel name. You use the received token to join a channel.

```java
```cpp
// Channel name
const char* channelId;
// User ID
Expand Down Expand Up @@ -39,7 +39,7 @@ If you call `joinChannelEx` to join multiple channels, call the `updateChannelMe
The following sample code shows calling `renewToken` to update the token when receiving an `onTokenPrivilegeWillExpire` callback notification.
```java
```cpp
class CJoinChannelVideoByTokenRtcEngineEventHandler
: public IRtcEngineEventHandler
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If you call `joinChannelEx` to join multiple channels, call the `updateChannelMe
The following sample code shows calling `renewToken` to update the token when receiving an `onTokenPrivilegeWillExpire` callback notification.
```java
```cpp
class CJoinChannelVideoByTokenRtcEngineEventHandler
: public IRtcEngineEventHandler
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ To use the sample code, copy the following lines into the `/app/src/main/java/co

<ProductWrapper product="video-calling">
<CodeBlock language="java" showLineNumbers>
{`
import android.Manifest;
{`import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view.SurfaceView;
Expand Down Expand Up @@ -687,7 +686,7 @@ public class MainActivity extends AppCompatActivity {

</details>

<Admonition title="Information" type="info">In the `appId` and `token` fields, enter the corresponding values you obtained from <Vg k="CONSOLE"/>. Use the same `channelName` you filled in when generating the temporary token.</Admonition>
<Admonition>For the `appId` and `token` variables, replace the placeholders with the values you obtained from <Vg k="CONSOLE"/>. Ensure you enter the same `channelName` you used when generating the temporary token.</Admonition>

Follow the implementation steps to understand the core API calls in the sample code.

Expand Down
Loading

0 comments on commit 8fa6286

Please sign in to comment.