Skip to content

Commit

Permalink
提交 1.16.3 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
PLVMobileTeam committed Jan 31, 2024
1 parent c687628 commit 6b8431b
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 20 deletions.
8 changes: 4 additions & 4 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ target 'PolyvLiveScenesDemo' do
use_frameworks!

# 保利威 多场景 SDK
pod 'PLVLiveScenesSDK', '1.16.2'
pod 'PLVLiveScenesSDK', '1.16.3'

# 保利威 手机开播场景 需依赖的库
pod 'PLVBytedEffectSDK', '4.4.2'
pod 'PLVBusinessSDK', '1.16.1', :subspecs => ['Beauty']
pod 'PLVBusinessSDK', '1.16.3', :subspecs => ['Beauty']

# 保利威 UI源码 需依赖的库
pod 'SDWebImage', '4.4.0'
Expand All @@ -24,6 +24,6 @@ end

target 'PLVScreenShareExtension' do
use_frameworks!
pod 'PLVBusinessSDK', '1.16.1', :subspecs => ['AbstractBSH','ReplayKitExt']
pod 'PLVFoundationSDK', '1.15.0'
pod 'PLVBusinessSDK', '1.16.3', :subspecs => ['AbstractBSH','ReplayKitExt']
pod 'PLVFoundationSDK', '1.16.3'
end
16 changes: 8 additions & 8 deletions PolyvLiveScenesDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@
36E8E14F26DCD2FB00DAEE02 /* PLVAdvertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 36E8E0F226DCD2FB00DAEE02 /* PLVAdvertView.m */; };
36F4A27126C4B10200143E54 /* PLVHCLiveroomViewModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 36F4A27026C4B10200143E54 /* PLVHCLiveroomViewModel.m */; };
36F4A27226C4B10200143E54 /* PLVHCLiveroomViewModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 36F4A27026C4B10200143E54 /* PLVHCLiveroomViewModel.m */; };
45E965028431014338DEB943 /* Pods_PLVScreenShareExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F43A5ED464D54E8CAD89E00E /* Pods_PLVScreenShareExtension.framework */; };
4D02950F28601DE700C7FF4D /* PLVBusinessSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3631485327F15D3700FDF6D7 /* PLVBusinessSDK.framework */; };
4D02951228601DF500C7FF4D /* PLVBusinessSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3631485327F15D3700FDF6D7 /* PLVBusinessSDK.framework */; };
4D1E74C6275DB59B008B7D3A /* PLVLCSectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1E74C5275DB59B008B7D3A /* PLVLCSectionViewController.m */; };
Expand Down Expand Up @@ -1053,7 +1054,6 @@
55F17FD72806B35E003635EB /* PLVSABeautySheet.m in Sources */ = {isa = PBXBuildFile; fileRef = 55F17FD52806B35E003635EB /* PLVSABeautySheet.m */; };
55F17FDA2806CB7B003635EB /* PLVSABeautySliderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 55F17FD92806CB7B003635EB /* PLVSABeautySliderView.m */; };
55F17FDB2806CB7B003635EB /* PLVSABeautySliderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 55F17FD92806CB7B003635EB /* PLVSABeautySliderView.m */; };
5CF16DE2A83835F3A2688BB5 /* Pods_PLVScreenShareExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BD7602878504F949B104B1B9 /* Pods_PLVScreenShareExtension.framework */; };
6306571124DCF01B00EAA430 /* PLVLCUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 6306571024DCF01B00EAA430 /* PLVLCUtils.m */; };
6306571624DCF17500EAA430 /* PLVLinkMic.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 6306571524DCF17500EAA430 /* PLVLinkMic.bundle */; };
630A462824ED13E90041EE0E /* PLVLinkMicOnlineUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 630A462724ED13E90041EE0E /* PLVLinkMicOnlineUser.m */; };
Expand Down Expand Up @@ -1375,7 +1375,7 @@
BF7CFC6225BA636B0084C160 /* PLVCommodityDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BF7CFC5925BA636B0084C160 /* PLVCommodityDetailViewController.m */; };
BF7CFC6325BA636B0084C160 /* PLVCommodityPushView.m in Sources */ = {isa = PBXBuildFile; fileRef = BF7CFC5B25BA636B0084C160 /* PLVCommodityPushView.m */; };
BF7CFC6625BA636B0084C160 /* PLVECCommodityViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BF7CFC6025BA636B0084C160 /* PLVECCommodityViewController.m */; };
F71E227730E864695EC8EDBA /* Pods_PolyvLiveScenesDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BEFA393806C1100D02FCFB6E /* Pods_PolyvLiveScenesDemo.framework */; };
EC19BF21C61AE2CDAA477077 /* Pods_PolyvLiveScenesDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C00B5D61A7F0A22A5ACC728 /* Pods_PolyvLiveScenesDemo.framework */; };
FA4F8BF9283DDF2200DE8C29 /* PLVLCDownloadBottomSheet.m in Sources */ = {isa = PBXBuildFile; fileRef = FA4F8BF8283DDF2200DE8C29 /* PLVLCDownloadBottomSheet.m */; };
FA4F8BFA283DDF2200DE8C29 /* PLVLCDownloadBottomSheet.m in Sources */ = {isa = PBXBuildFile; fileRef = FA4F8BF8283DDF2200DE8C29 /* PLVLCDownloadBottomSheet.m */; };
FA4F8BFD283E046200DE8C29 /* PLVLCBottomSheet.m in Sources */ = {isa = PBXBuildFile; fileRef = FA4F8BFC283E046200DE8C29 /* PLVLCBottomSheet.m */; };
Expand Down Expand Up @@ -1936,6 +1936,7 @@
21EC91C5292C7DAA00B48D0E /* PLVSALongContentMessageSheet.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PLVSALongContentMessageSheet.m; sourceTree = "<group>"; };
296A1DA326CDF7FD0076A0CA /* PLVLSDocumentWaitLiveView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PLVLSDocumentWaitLiveView.h; sourceTree = "<group>"; };
296A1DA426CDF7FD0076A0CA /* PLVLSDocumentWaitLiveView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PLVLSDocumentWaitLiveView.m; sourceTree = "<group>"; };
2C00B5D61A7F0A22A5ACC728 /* Pods_PolyvLiveScenesDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PolyvLiveScenesDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3603E45B2AA87B9F0039D53E /* PLVFDLocalizable.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = PLVFDLocalizable.bundle; sourceTree = "<group>"; };
36136E442A14801900A4F1D1 /* PLVLSLinkMicPreviewView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PLVLSLinkMicPreviewView.h; sourceTree = "<group>"; };
36136E452A14801900A4F1D1 /* PLVLSLinkMicPreviewView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PLVLSLinkMicPreviewView.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2598,9 +2599,7 @@
A91828FB8B935C297A2CF557 /* Pods-business-liveScenes-PolyvLiveScenesDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-business-liveScenes-PolyvLiveScenesDemo.debug.xcconfig"; path = "Target Support Files/Pods-business-liveScenes-PolyvLiveScenesDemo/Pods-business-liveScenes-PolyvLiveScenesDemo.debug.xcconfig"; sourceTree = "<group>"; };
BB195403DD396B7AF22FDE5F /* Pods-business-cloudClass-PolyvLiveScenesDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-business-cloudClass-PolyvLiveScenesDemo.release.xcconfig"; path = "Target Support Files/Pods-business-cloudClass-PolyvLiveScenesDemo/Pods-business-cloudClass-PolyvLiveScenesDemo.release.xcconfig"; sourceTree = "<group>"; };
BC31BA32D353707672EAA4F7 /* Pods-business-liveScenes-PolyvLiveScenesDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-business-liveScenes-PolyvLiveScenesDemo.release.xcconfig"; path = "Target Support Files/Pods-business-liveScenes-PolyvLiveScenesDemo/Pods-business-liveScenes-PolyvLiveScenesDemo.release.xcconfig"; sourceTree = "<group>"; };
BD7602878504F949B104B1B9 /* Pods_PLVScreenShareExtension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PLVScreenShareExtension.framework; sourceTree = BUILT_PRODUCTS_DIR; };
BDEE85DC15A60B23D1611569 /* Pods-PolyvLiveEcommerceDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PolyvLiveEcommerceDemo.debug.xcconfig"; path = "Target Support Files/Pods-PolyvLiveEcommerceDemo/Pods-PolyvLiveEcommerceDemo.debug.xcconfig"; sourceTree = "<group>"; };
BEFA393806C1100D02FCFB6E /* Pods_PolyvLiveScenesDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PolyvLiveScenesDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
BF1A9C7F25525B62000AA79E /* PLVLiveWatchLoginController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PLVLiveWatchLoginController.h; sourceTree = "<group>"; };
BF1A9C8025525B62000AA79E /* PLVLiveWatchLoginController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PLVLiveWatchLoginController.m; sourceTree = "<group>"; };
BF574402255D204500283C2D /* PLVECNewMessageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PLVECNewMessageView.h; sourceTree = "<group>"; };
Expand All @@ -2616,6 +2615,7 @@
D12BFA48BFD11F80E5A2FAA5 /* Pods-business-liveScenes-liveScenesDemo-PolyvStreamerAloneDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-business-liveScenes-liveScenesDemo-PolyvStreamerAloneDemo.debug.xcconfig"; path = "Target Support Files/Pods-business-liveScenes-liveScenesDemo-PolyvStreamerAloneDemo/Pods-business-liveScenes-liveScenesDemo-PolyvStreamerAloneDemo.debug.xcconfig"; sourceTree = "<group>"; };
D9C6F1C98177E8003A3399A9 /* Pods-business-liveScenes-PolyvLiveStreamerDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-business-liveScenes-PolyvLiveStreamerDemo.release.xcconfig"; path = "Target Support Files/Pods-business-liveScenes-PolyvLiveStreamerDemo/Pods-business-liveScenes-PolyvLiveStreamerDemo.release.xcconfig"; sourceTree = "<group>"; };
DDD8A461CB92C616BB85ACDF /* Pods-PLVScreenShareExtension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PLVScreenShareExtension.debug.xcconfig"; path = "Target Support Files/Pods-PLVScreenShareExtension/Pods-PLVScreenShareExtension.debug.xcconfig"; sourceTree = "<group>"; };
F43A5ED464D54E8CAD89E00E /* Pods_PLVScreenShareExtension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PLVScreenShareExtension.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FA4F8BF7283DDF2200DE8C29 /* PLVLCDownloadBottomSheet.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PLVLCDownloadBottomSheet.h; sourceTree = "<group>"; };
FA4F8BF8283DDF2200DE8C29 /* PLVLCDownloadBottomSheet.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PLVLCDownloadBottomSheet.m; sourceTree = "<group>"; };
FA4F8BFB283E046200DE8C29 /* PLVLCBottomSheet.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PLVLCBottomSheet.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2681,7 +2681,7 @@
buildActionMask = 2147483647;
files = (
3660408B27B3AF6000557F90 /* ReplayKit.framework in Frameworks */,
5CF16DE2A83835F3A2688BB5 /* Pods_PLVScreenShareExtension.framework in Frameworks */,
45E965028431014338DEB943 /* Pods_PLVScreenShareExtension.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -2690,7 +2690,7 @@
buildActionMask = 2147483647;
files = (
633E425D257DCD710039D35D /* PLVLiveScenesSDK.framework in Frameworks */,
F71E227730E864695EC8EDBA /* Pods_PolyvLiveScenesDemo.framework in Frameworks */,
EC19BF21C61AE2CDAA477077 /* Pods_PolyvLiveScenesDemo.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -5575,8 +5575,8 @@
430C9CF57975329ADA06E5C9 /* Pods_PolyvLiveEcommerceDemoUITests.framework */,
6ED5072918A006C94EB83D86 /* Pods_business_liveScenes_liveScenesDemo_PolyvStreamerAloneDemo.framework */,
3660408A27B3AF6000557F90 /* ReplayKit.framework */,
BD7602878504F949B104B1B9 /* Pods_PLVScreenShareExtension.framework */,
BEFA393806C1100D02FCFB6E /* Pods_PolyvLiveScenesDemo.framework */,
F43A5ED464D54E8CAD89E00E /* Pods_PLVScreenShareExtension.framework */,
2C00B5D61A7F0A22A5ACC728 /* Pods_PolyvLiveScenesDemo.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ - (void)setup {
self.presenter = [[PLVChatroomPresenter alloc] initWithLoadingHistoryCount:20];
self.presenter.delegate = self;
[self.presenter login];
[self.presenter startPageViewTimer];

// 监听socket消息
[[PLVSocketManager sharedManager] addDelegate:self delegateQueue:socketDelegateQueue];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ - (void)requestDataWithPageNumber:(NSUInteger)pageNumber pageSize:(NSUInteger)pa
PLVRoomData *roomData = [PLVRoomDataManager sharedManager].roomData;
PLVLiveVideoConfig *liveConfig = [PLVLiveVideoConfig sharedInstance];
NSString *listType = roomData.vodList ? @"vod" : @"playback";
[PLVLiveVideoAPI requestPlaybackList:roomData.channelId listType:listType page:pageNumber pageSize:pageSize appId:liveConfig.appId appSecret:liveConfig.appSecret completion:^(PLVPlaybackListModel * _Nonnull playbackList, NSError * _Nonnull error) {
[PLVLiveVideoAPI requestPlaybackListWithChannelId:roomData.channelId listType:listType page:pageNumber pageSize:pageSize appId:liveConfig.appId appSecret:liveConfig.appSecret completion:^(PLVPlaybackListModel * _Nonnull playbackList, NSError * _Nonnull error) {
if (!error && playbackList) {
if (playbackList.firstPage) {
[weakSelf.playbackVideos removeAllObjects];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ NS_ASSUME_NONNULL_BEGIN
/// 发送点赞消息
- (void)sendLike;

/// 开启观看次数刷新计时器
- (void)startPageViewTimer;

/// 发送修改昵称消息
- (void)sendChangeNickname:(NSString *)nickname;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#import <PLVFoundationSDK/PLVFdUtil.h>

static NSString *kPLVChatroomRedpackReceiveKey = @"kPLVChatroomRedpackReceiveKey";
// 观看次数刷新间隔,单位'秒'
static NSInteger kPageViewIntervalTime = 60;

@interface PLVChatroomPresenter ()<
PLVSocketManagerProtocol, // socket协议
Expand Down Expand Up @@ -48,6 +50,8 @@ @interface PLVChatroomPresenter ()<
@property (nonatomic, strong) NSArray *imageEmotionArray;
/// 当前聊天室消息登录用户模型
@property (nonatomic, strong) PLVChatUser *loginChatUser;
/// 观看次数定时器
@property (nonatomic, strong) NSTimer *pageViewTimer;

#pragma mark 内部只读属性
/// socket处于已连接且登录成功的状态时为YES,默认为NO
Expand Down Expand Up @@ -174,6 +178,8 @@ - (void)destroy {

self.getHistoryTime = 0;
self.getRemindHistoryTime = 0;

[self destroyPageViewTimer];
}

#pragma mark - [ Public Method ]
Expand Down Expand Up @@ -237,6 +243,17 @@ - (void)recordRedpackReceiveWithID:(NSString *)redpackId time:(NSTimeInterval)ti
}
}

- (void)startPageViewTimer {
if (_pageViewTimer) {
[self destroyPageViewTimer];
}
_pageViewTimer = [NSTimer scheduledTimerWithTimeInterval:kPageViewIntervalTime
target:[PLVFWeakProxy proxyWithTarget:self]
selector:@selector(pageViewTimerAction:)
userInfo:nil
repeats:YES];
}

#pragma mark - [ Private Method ]

- (void)loadNewesetRedpack {
Expand Down Expand Up @@ -308,6 +325,11 @@ - (void)getRedpackStateCache {
}
}

- (void)destroyPageViewTimer {
[_pageViewTimer invalidate];
_pageViewTimer = nil;
}

#pragma mark - Getter & Setter

- (BOOL)specialRole {
Expand Down Expand Up @@ -1745,6 +1767,19 @@ - (void)chatroomManager_sendImageMessage:(PLVImageMessage *)message updateProgre

}

#pragma mark - [ Event ]

#pragma mark Timer
- (void)pageViewTimerAction:(NSTimer *)timer {
NSString *channelId = [PLVRoomDataManager sharedManager].roomData.channelId;
[PLVLiveVideoAPI requestPageViewWithChannelId:channelId completion:^(NSDictionary * _Nonnull data) {
NSInteger pageView = PLV_SafeIntegerForDictKey(data, @"pageView");
[PLVRoomDataManager sharedManager].roomData.watchCount = pageView;
} failure:^(NSError * _Nonnull error) {
PLV_LOG_ERROR(PLVConsoleLogModuleTypeChatRoom, @"pageView request failed");
}];
}

#pragma mark - Utils

- (BOOL)isLoginUser:(NSString *)userId {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ + (void)loginPlaybackRoomWithChannelType:(PLVChannelType)channelType

// 选择回放列表 默认按点播列表播放
if (vodList) {
[PLVLiveVideoAPI requestPlaybackList:channelId listType:@"vod" page:1 pageSize:10 appId:appId appSecret:appSecret completion:^(PLVPlaybackListModel * _Nonnull list, NSError * _Nonnull error) {
[PLVLiveVideoAPI requestPlaybackListWithChannelId:channelId listType:@"vod" page:1 pageSize:10 appId:appId appSecret:appSecret completion:^(PLVPlaybackListModel * _Nonnull list, NSError * _Nonnull error) {
if (error) {
!failure ?: failure(PLVLocalizedString(@"点播列表获取失败"));
PLV_LOG_ERROR(PLVConsoleLogModuleTypeRoom, @"%s get channel playbackList failed with【点播列表获取失败】", __FUNCTION__);
Expand Down Expand Up @@ -318,7 +318,7 @@ + (void)loginPlaybackRoomWithChannelType:(PLVChannelType)channelType
sectionList = list;
}];
}
[PLVLiveVideoAPI requestPlaybackList:channelId listType:channelPlaybackInfo.playbackOrigin page:1 pageSize:10 appId:appId appSecret:appSecret completion:^(PLVPlaybackListModel * _Nonnull list, NSError * _Nonnull error) {
[PLVLiveVideoAPI requestPlaybackListWithChannelId:channelId listType:channelPlaybackInfo.playbackOrigin page:1 pageSize:10 appId:appId appSecret:appSecret completion:^(PLVPlaybackListModel * _Nonnull list, NSError * _Nonnull error) {
playbackList = list;
}];
[self playbackLoginWithChannelType:channelType channelId:channelId vid:videoPoolId userId:userId appId:appId appSecret:appSecret completion:^(PLVRoomData *roomData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ - (void)setup {
self.presenter = [[PLVChatroomPresenter alloc] initWithLoadingHistoryCount:10 childRoomAllow:YES];
self.presenter.delegate = self;
[self.presenter login];
if ([PLVRoomDataManager sharedManager].roomData.videoType == PLVChannelVideoType_Playback) {
[self.presenter startPageViewTimer];
}

// 监听socket消息
[[PLVSocketManager sharedManager] addDelegate:self delegateQueue:socketDelegateQueue];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ - (void)loadDataWithPageNumber:(NSUInteger)pageNumber pageSize:(NSUInteger)pageS
__weak typeof(self) weakSelf = self;
PLVLiveVideoConfig *liveConfig = [PLVLiveVideoConfig sharedInstance];
NSString *listType = roomData.vodList ? @"vod" : @"playback";
[PLVLiveVideoAPI requestPlaybackList:roomData.channelId listType:listType page:pageNumber pageSize:pageSize appId:liveConfig.appId appSecret:liveConfig.appSecret completion:^(PLVPlaybackListModel * _Nonnull playbackList, NSError * _Nonnull error) {
[PLVLiveVideoAPI requestPlaybackListWithChannelId:roomData.channelId listType:listType page:pageNumber pageSize:pageSize appId:liveConfig.appId appSecret:liveConfig.appSecret completion:^(PLVPlaybackListModel * _Nonnull playbackList, NSError * _Nonnull error) {
if (!error && playbackList) {
if (!playbackList.firstPage) {
NSMutableArray<PLVPlaybackVideoModel *> *tempDataArray = [weakSelf.dataArray mutableCopy];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,14 @@ - (void)roomDataManager_didLiveStateChanged:(PLVChannelLiveStreamState)liveState
[self.homePageView updatePlayerState:liveState == PLVChannelLiveStreamState_Live];
}

- (void)roomDataManager_didWatchCountChanged:(NSUInteger)watchCount {
PLVRoomData *roomData = [PLVRoomDataManager sharedManager].roomData;
// 在回放时 更新观看次数
if (roomData.videoType == PLVChannelVideoType_Playback){
[self.homePageView updateRoomInfoCount:roomData.watchCount];
}
}

#pragma mark PLVSocketManagerProtocol

- (void)socketMananger_didLoginSuccess:(NSString *)ackString {
Expand Down
Loading

0 comments on commit 6b8431b

Please sign in to comment.