将 Xcode 的
Bundle Identifier
从
io.agora.InteractivePodcast
这个是,master / owner
改为
io.agora.Intera
这个是参与者,游客
struct BuildConfig {
// 声网
// Agora App Id
static let AppId = "81cf3717bea24aaaac1ba3e7a226d5a4"
// 777
static let Token = "00681cf3717bea24aaaac1ba3e7a226d5a4IABu118mDI/FBwAEJ17uLpaKNO2ZtTl/0FB9Vha4DflljTwv3/YAAAAAEABr21wCNMKQYQEAAQAzwpBh"
// Lean Cloud 直接创建
static let LeanCloudAppId = "9wnMCYCLJyFx4dL5uuLhmk4f-gzGzoHsz"
static let LeanCloudAppKey = "9T6PiEkMqO6h7VuOGqPvg0r8"
static let LeanCloudServerUrl = "https://9wnmcycl.lc-cn-n1-shared.com"
“777”
网页创建临时 token 的时候,手动填入的
.concatMap { result -> Observable<Result<Void>> in
return result.onSuccess {
// set default status when join room
member.isMuted = false
member.isSpeaker = room.anchor.id == user.id
member.isManager = room.anchor.id == user.id
member.isSelfMuted = false
//member.room = room
member.user = user
return Observable.just(result)
}
}
.concatMap { result -> Observable<Result<Room>> in
return result.onSuccess { Room.getRoom(by: room.id) }
}
.concatMap { result -> Observable<Result<Void>> in
return result.onSuccess { self.rtcServer.joinChannel(member: member, channel: "777", setting: self.setting) }
}
.concatMap { result -> Observable<Result<Void>> in
member.room = room
return result.onSuccess { self.member!.join(streamId: self.rtcServer.uid) }
}
|