zhenghy

视频居中

@@ -199,6 +199,7 @@ export struct DetailPlayShortVideoPage { @@ -199,6 +199,7 @@ export struct DetailPlayShortVideoPage {
199 }) 199 })
200 200
201 } 201 }
  202 + .width('100%')
202 .layoutWeight(1) 203 .layoutWeight(1)
203 .onClick(() => { 204 .onClick(() => {
204 this.playerController?.switchPlayOrPause(); 205 this.playerController?.switchPlayOrPause();
@@ -223,9 +224,10 @@ export struct DetailPlayShortVideoPage { @@ -223,9 +224,10 @@ export struct DetailPlayShortVideoPage {
223 } 224 }
224 .height('100%') 225 .height('100%')
225 .width('100%') 226 .width('100%')
226 - .padding({  
227 - top: this.displayDirection === DisplayDirection.VIDEO_HORIZONTAL ? 0 : this.topSafeHeight + 'px'  
228 - }) 227 +
  228 + // .padding({
  229 + // top: this.displayDirection === DisplayDirection.VIDEO_HORIZONTAL ? 0 : this.topSafeHeight + 'px'
  230 + // })
229 231
230 if (this.showCommentList) { 232 if (this.showCommentList) {
231 CommentComponentPage({}) 233 CommentComponentPage({})
@@ -258,15 +258,12 @@ export struct VideoChannelDetail { @@ -258,15 +258,12 @@ export struct VideoChannelDetail {
258 .visibility(this.isMouted ? Visibility.None : Visibility.Visible) 258 .visibility(this.isMouted ? Visibility.None : Visibility.Visible)
259 Swiper(this.swiperController) { 259 Swiper(this.swiperController) {
260 ForEach(this.data, (item: ContentDetailDTO, index: number) => { 260 ForEach(this.data, (item: ContentDetailDTO, index: number) => {
261 - Column() {  
262 - DetailPlayShortVideoPage({  
263 - contentDetailData: item,  
264 - currentIndex: this.currentIndex,  
265 - index: index,  
266 - interactData: this.interactDataList[index]  
267 - })  
268 - }.width('100%')  
269 - .height('100%') 261 + DetailPlayShortVideoPage({
  262 + contentDetailData: item,
  263 + currentIndex: this.currentIndex,
  264 + index: index,
  265 + interactData: this.interactDataList[index]
  266 + })
270 }, (item: ContentDetailDTO) => item.newsId + '') 267 }, (item: ContentDetailDTO) => item.newsId + '')
271 } 268 }
272 .displayCount(1, true) 269 .displayCount(1, true)