Commit b4e716bf by suolong

添加进入陪伴的接口判断

parent bbeaa89c
...@@ -1076,6 +1076,10 @@ static NSString *const KLiveDataCenter_store_liveRTCData = @"LiveDataCenter_stor ...@@ -1076,6 +1076,10 @@ static NSString *const KLiveDataCenter_store_liveRTCData = @"LiveDataCenter_stor
[strongSelf fus_requestPayRoomPreviewWithUid:uid roomId:roomId channelId:channelId roundId:roundId entryView:weakEntryView]; [strongSelf fus_requestPayRoomPreviewWithUid:uid roomId:roomId channelId:channelId roundId:roundId entryView:weakEntryView];
return; return;
} }
if (action == FUSPayRoomEntryMainViewActionPrimary) {
[strongSelf fus_requestPayRoomPayViewingWithUid:uid roomId:roomId channelId:channelId roundId:roundId entryView:weakEntryView];
return;
}
}]; }];
weakEntryView = entryView; weakEntryView = entryView;
}); });
...@@ -1184,6 +1188,33 @@ static NSString *const KLiveDataCenter_store_liveRTCData = @"LiveDataCenter_stor ...@@ -1184,6 +1188,33 @@ static NSString *const KLiveDataCenter_store_liveRTCData = @"LiveDataCenter_stor
}]; }];
} }
- (void)fus_requestPayRoomPayViewingWithUid:(NSString *)uid
roomId:(NSString *)roomId
channelId:(NSString *)channelId
roundId:(NSString *)roundId
entryView:(FUSPayRoomEntryMainView *)entryView
{
__weak typeof(self) weakSelf = self;
__weak FUSPayRoomEntryMainView *weakEntryView = entryView;
[FUSLiveHttpHelper fus_requestPayRoomPayViewingWithUid:(uid ?: @"") RoomId:(roomId ?: @"") channelId:(channelId ?: @"") roundId:(roundId ?: @"") succeed:^(NSDictionary *dataDict) {
__strong typeof(weakSelf) strongSelf = weakSelf;
if (!strongSelf) {
return;
}
dispatch_async(dispatch_get_main_queue(), ^{
[weakEntryView fus_dismissAnimated:YES];
[strongSelf fus_audienceJoinRoomWithRoomId:(roomId ?: @"") password:@"" behaviorSrc:@"" otherInfo:nil];
});
} failure:^(NSString *msg, NSInteger code) {
dispatch_async(dispatch_get_main_queue(), ^{
if (![NSString isNull:msg]) {
[FUSDialogView fus_showDialog:msg];
}
});
}];
}
/** /**
将直播间切换为“试看播放态”: 将直播间切换为“试看播放态”:
- 使用 preview 接口返回的 pullUrl 播放 - 使用 preview 接口返回的 pullUrl 播放
......
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