Commit dda1df7b54097c977c58701d0482ca219197edb2
1 parent
e3d3c28d
播放结束后上报
Showing
1 changed file
with
3 additions
and
0 deletions
metaCode/Classes/Main/VideoPage/Controller/CNLiveShortVideoViewController.swift
| @@ -357,6 +357,9 @@ class CNLiveShortVideoViewController : CNLiveBaseViewController, UITableViewDele | @@ -357,6 +357,9 @@ class CNLiveShortVideoViewController : CNLiveBaseViewController, UITableViewDele | ||
| 357 | let indexPath = IndexPath(row: self.currentIndex, section: 0) | 357 | let indexPath = IndexPath(row: self.currentIndex, section: 0) |
| 358 | self.player.scrollView?.setContentOffset(CGPoint(x: 0, y:CGFloat(self.currentIndex)*KSreenHeight), animated: true)//校正偏移量 | 358 | self.player.scrollView?.setContentOffset(CGPoint(x: 0, y:CGFloat(self.currentIndex)*KSreenHeight), animated: true)//校正偏移量 |
| 359 | self.playVideo(at: indexPath as IndexPath) | 359 | self.playVideo(at: indexPath as IndexPath) |
| 360 | + //开始播放调用recordApi/end | ||
| 361 | + let data: CNLiveAlbumListModel = dataArray[indexPath.row] as! CNLiveAlbumListModel | ||
| 362 | + CNLiveShortVideoViewModel.requestAudioPlayRecordEnd(contentId: data.contentId, channelName: data.title) | ||
| 360 | } | 363 | } |
| 361 | 364 | ||
| 362 | NotificationCenter.default.addObserver(self, selector: #selector(removePlayerAction), name: Notification.Name.PlayerManage.kPlayerDestroyNotification, object: nil) | 365 | NotificationCenter.default.addObserver(self, selector: #selector(removePlayerAction), name: Notification.Name.PlayerManage.kPlayerDestroyNotification, object: nil) |