Commit dda1df7b54097c977c58701d0482ca219197edb2

Authored by “张旭”
1 parent e3d3c28d

播放结束后上报

metaCode/Classes/Main/VideoPage/Controller/CNLiveShortVideoViewController.swift
... ... @@ -357,6 +357,9 @@ class CNLiveShortVideoViewController : CNLiveBaseViewController, UITableViewDele
357 357 let indexPath = IndexPath(row: self.currentIndex, section: 0)
358 358 self.player.scrollView?.setContentOffset(CGPoint(x: 0, y:CGFloat(self.currentIndex)*KSreenHeight), animated: true)//校正偏移量
359 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 365 NotificationCenter.default.addObserver(self, selector: #selector(removePlayerAction), name: Notification.Name.PlayerManage.kPlayerDestroyNotification, object: nil)
... ...