Commit 25a0d7cc by 代凡

修复回放播放失败的逻辑

parent 17a85653
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>android</name>
<name>PolyvRNCloudClassDemo</name>
<comment>Project android created by Buildship.</comment>
<projects>
</projects>
......
......@@ -131,7 +131,7 @@ public class PolyvCloudClassRNModule extends ReactContextBaseJavaModule {
if(code == PolyvErrorCode.success){
progress.show();
checkToken(userId,null,channelId,vid,appId,false,promise);
checkToken(userId,appScrect,channelId,vid,appId,false,promise);
}else {
sendErrorMessage(promise, code);
}
......@@ -161,8 +161,9 @@ public class PolyvCloudClassRNModule extends ReactContextBaseJavaModule {
}
private void checkToken(String userId, String appSecret, String channel, String vid, String appId, boolean live, Promise promise) {
String secret = live ? appSecret : "";
//请求token接口
getTokenDisposable = PolyvLoginManager.checkLoginToken(userId, appSecret, appId,
getTokenDisposable = PolyvLoginManager.checkLoginToken(userId, secret, appId,
channel, vid,
new PolyvrResponseCallback<PolyvChatDomain>() {
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment