Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endoc-281-rtc-weekly-0425-changes #1574

Merged
merged 13 commits into from
Jul 13, 2024
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
Loading