Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -185,7 +185,8 @@ export struct DetailPlayShortVideoPage { | @@ -185,7 +185,8 @@ export struct DetailPlayShortVideoPage { | ||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | this.videoLandScape = this.contentDetailData.videoInfo[0]?.videoLandScape | 187 | this.videoLandScape = this.contentDetailData.videoInfo[0]?.videoLandScape |
| 188 | - this.ratio = (this.contentDetailData.videoInfo[0]?.resolutionWidth || 16) / | 188 | + this.ratio = this.videoLandScape == 2 ? (this.contentDetailData.videoInfo[0]?.resolutionWidth || 9) / |
| 189 | + (this.contentDetailData.videoInfo[0]?.resolutionHeight || 16):(this.contentDetailData.videoInfo[0]?.resolutionWidth || 16) / | ||
| 189 | (this.contentDetailData.videoInfo[0]?.resolutionHeight || 9) | 190 | (this.contentDetailData.videoInfo[0]?.resolutionHeight || 9) |
| 190 | this.playerController.onCanplay = async () => { | 191 | this.playerController.onCanplay = async () => { |
| 191 | this.ratio = this.playerController.videoWidth / this.playerController.videoHeight | 192 | this.ratio = this.playerController.videoWidth / this.playerController.videoHeight |
| @@ -212,7 +213,6 @@ export struct DetailPlayShortVideoPage { | @@ -212,7 +213,6 @@ export struct DetailPlayShortVideoPage { | ||
| 212 | 213 | ||
| 213 | ///解决初始化竖屏视频时 this.ratio未更新导致显示错误 | 214 | ///解决初始化竖屏视频时 this.ratio未更新导致显示错误 |
| 214 | this.calculatePlayerRect() | 215 | this.calculatePlayerRect() |
| 215 | - | ||
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | contentTrackingDict() { | 218 | contentTrackingDict() { |
-
Please register or login to post a comment