Showing
3 changed files
with
8 additions
and
9 deletions
| @@ -148,7 +148,6 @@ export struct DetailPlayLiveCommon { | @@ -148,7 +148,6 @@ export struct DetailPlayLiveCommon { | ||
| 148 | onPageHide() { | 148 | onPageHide() { |
| 149 | this.pageHide = Math.random() | 149 | this.pageHide = Math.random() |
| 150 | Logger.info(TAG, 'onPageHide') | 150 | Logger.info(TAG, 'onPageHide') |
| 151 | - console.error("XXXXZZZZ", '---onPageHide------------') | ||
| 152 | //页面浏览 | 151 | //页面浏览 |
| 153 | TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.Live_Detail, | 152 | TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.Live_Detail, |
| 154 | TrackConstants.PageName.Live_Detail | 153 | TrackConstants.PageName.Live_Detail |
| @@ -56,7 +56,7 @@ export struct PlayUIComponent { | @@ -56,7 +56,7 @@ export struct PlayUIComponent { | ||
| 56 | /* | 56 | /* |
| 57 | 初始话播放器设置 | 57 | 初始话播放器设置 |
| 58 | */ | 58 | */ |
| 59 | - initPlayerSet(){ | 59 | + initPlayerSet() { |
| 60 | 60 | ||
| 61 | //播放进度监听 | 61 | //播放进度监听 |
| 62 | if (this.playerController) { | 62 | if (this.playerController) { |
| @@ -279,8 +279,13 @@ export struct PlayUIComponent { | @@ -279,8 +279,13 @@ export struct PlayUIComponent { | ||
| 279 | }) | 279 | }) |
| 280 | } | 280 | } |
| 281 | 281 | ||
| 282 | + if (this.contentDetailData.liveInfo?.liveState == 'running') { | ||
| 283 | + Blank() | ||
| 284 | + } else { | ||
| 282 | // 进度条 | 285 | // 进度条 |
| 283 | this.playProgressView() | 286 | this.playProgressView() |
| 287 | + } | ||
| 288 | + | ||
| 284 | // 总的播放时间 | 289 | // 总的播放时间 |
| 285 | if (this.contentDetailData?.liveInfo?.liveState != 'running' || this.contentDetailData.showTime) { | 290 | if (this.contentDetailData?.liveInfo?.liveState != 'running' || this.contentDetailData.showTime) { |
| 286 | Text(this.totalTime) | 291 | Text(this.totalTime) |
| @@ -32,7 +32,6 @@ export struct TopPlayComponent { | @@ -32,7 +32,6 @@ export struct TopPlayComponent { | ||
| 32 | @Provide playSourceState: number = 0 | 32 | @Provide playSourceState: number = 0 |
| 33 | private playUrl: string = "" | 33 | private playUrl: string = "" |
| 34 | private xComponentIsLoaded: boolean = false | 34 | private xComponentIsLoaded: boolean = false |
| 35 | - pageParam: ParamType = {} | ||
| 36 | 35 | ||
| 37 | aboutToAppear(): void { | 36 | aboutToAppear(): void { |
| 38 | if (this.playerController) { | 37 | if (this.playerController) { |
| @@ -148,16 +147,12 @@ export struct TopPlayComponent { | @@ -148,16 +147,12 @@ export struct TopPlayComponent { | ||
| 148 | Logger.debug(TAG, "播放地址为空") | 147 | Logger.debug(TAG, "播放地址为空") |
| 149 | return | 148 | return |
| 150 | } | 149 | } |
| 151 | - this.contentTrackingDict() | ||
| 152 | - this.playerController?.firstPlay(this.playUrl, TrackConstants.PageName.Live_Detail, this.pageParam); | ||
| 153 | - } | ||
| 154 | 150 | ||
| 155 | - contentTrackingDict() { | ||
| 156 | - this.pageParam = { | 151 | + this.playerController?.firstPlay(this.playUrl, TrackConstants.PageName.Live_Detail, { |
| 157 | 'contentType': `${this.contentDetailData.newsType}`, | 152 | 'contentType': `${this.contentDetailData.newsType}`, |
| 158 | 'contentId': `${this.contentDetailData.newsId}`, | 153 | 'contentId': `${this.contentDetailData.newsId}`, |
| 159 | 'contentName': `${this.contentDetailData.newsTitle || ''}`, | 154 | 'contentName': `${this.contentDetailData.newsTitle || ''}`, |
| 160 | - } | 155 | + }); |
| 161 | } | 156 | } |
| 162 | 157 | ||
| 163 | build() { | 158 | build() { |
-
Please register or login to post a comment