We are implementing the Agora screen sharing and getting error DYNAMIC_USE_STATIC_KEY

前端 未结 1 1530

I am unable to understand the Error meaning currently using the demo code

Sample code which I am using to share the screen and I also install the chrome extension w

1条回答
  •  清酒与你
    2021-01-16 08:20

    DYNAMIC_USE_STATIC_KEY error is thrown by Agora RTC SDK when the channel is using an appid which has certificates enabled but instead of passing the appropriate token, null is being passed.

    You need to use a token server to generate a dynamic token and pass it onto channelKey instead of null.

    You can find how to setup a token server below. https://docs.agora.io/en/Interactive%20Broadcast/token_server_cpp?platform=CPP

    Alternatively, you can generate a temporary token in the console (https://sso.agora.io/en/login) and pass it onto channelKey for getting started with development.

    0 讨论(0)
提交回复
热议问题