Showing
2 changed files
with
16 additions
and
7 deletions
| @@ -40,7 +40,7 @@ export struct DetailPlayShortVideoPage { | @@ -40,7 +40,7 @@ export struct DetailPlayShortVideoPage { | ||
| 40 | @Provide progressVal: number = 0; | 40 | @Provide progressVal: number = 0; |
| 41 | @Provide videoLandScape?: number = 1; // 视频朝向, 横屏视频:1;竖屏视频:2 | 41 | @Provide videoLandScape?: number = 1; // 视频朝向, 横屏视频:1;竖屏视频:2 |
| 42 | 42 | ||
| 43 | - playVMChanged(name: string) { | 43 | + playVMChanged() { |
| 44 | this.url = this.playVM.url | 44 | this.url = this.playVM.url |
| 45 | this.newsSourceName = this.playVM.newsSourceName | 45 | this.newsSourceName = this.playVM.newsSourceName |
| 46 | this.newsTitle = this.playVM.newsTitle | 46 | this.newsTitle = this.playVM.newsTitle |
| @@ -98,7 +98,7 @@ export struct DetailPlayShortVideoPage { | @@ -98,7 +98,7 @@ export struct DetailPlayShortVideoPage { | ||
| 98 | WDPlayerRenderView({ | 98 | WDPlayerRenderView({ |
| 99 | playerController: this.playerController, | 99 | playerController: this.playerController, |
| 100 | onLoad: async () => { | 100 | onLoad: async () => { |
| 101 | - console.log('onload==') | 101 | + console.log('onload==', this.contentId, this.relId, this.relType) |
| 102 | // this.playVM.playWithContentId(this.contentId ?? "846899373") | 102 | // this.playVM.playWithContentId(this.contentId ?? "846899373") |
| 103 | this.playVM.playWithIds(this.contentId ?? "846899373", | 103 | this.playVM.playWithIds(this.contentId ?? "846899373", |
| 104 | this.relId ?? "500000301942", this.relType ?? "1") | 104 | this.relId ?? "500000301942", this.relType ?? "1") |
| @@ -155,7 +155,7 @@ export struct DetailPlayShortVideoPage { | @@ -155,7 +155,7 @@ export struct DetailPlayShortVideoPage { | ||
| 155 | this.playerController.continue = undefined; | 155 | this.playerController.continue = undefined; |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | - urlChanged(name: string) { | 158 | + urlChanged() { |
| 159 | if (this.url) { | 159 | if (this.url) { |
| 160 | console.log("url:" + this.url); | 160 | console.log("url:" + this.url); |
| 161 | this.status = PlayerConstants.STATUS_START; | 161 | this.status = PlayerConstants.STATUS_START; |
| @@ -90,6 +90,8 @@ export struct PlayerTitleComment { | @@ -90,6 +90,8 @@ export struct PlayerTitleComment { | ||
| 90 | .width('100%') | 90 | .width('100%') |
| 91 | .alignItems(VerticalAlign.Bottom) | 91 | .alignItems(VerticalAlign.Bottom) |
| 92 | 92 | ||
| 93 | + Row() { | ||
| 94 | + Column() { | ||
| 93 | Slider({ | 95 | Slider({ |
| 94 | value: this.progressVal, | 96 | value: this.progressVal, |
| 95 | step: 1, | 97 | step: 1, |
| @@ -106,9 +108,9 @@ export struct PlayerTitleComment { | @@ -106,9 +108,9 @@ export struct PlayerTitleComment { | ||
| 106 | 108 | ||
| 107 | Row() { | 109 | Row() { |
| 108 | Image($r('app.media.ic_back')) | 110 | Image($r('app.media.ic_back')) |
| 109 | - .width(44) | 111 | + .width(24) |
| 112 | + .height(24) | ||
| 110 | .aspectRatio(1) | 113 | .aspectRatio(1) |
| 111 | - .padding(13) | ||
| 112 | .onClick(() => { | 114 | .onClick(() => { |
| 113 | if (this.isFullScreen) { | 115 | if (this.isFullScreen) { |
| 114 | if (deviceInfo.deviceType != "phone") { | 116 | if (deviceInfo.deviceType != "phone") { |
| @@ -132,15 +134,22 @@ export struct PlayerTitleComment { | @@ -132,15 +134,22 @@ export struct PlayerTitleComment { | ||
| 132 | }) | 134 | }) |
| 133 | 135 | ||
| 134 | TextInput({ placeholder: '说两句...', text: this.comment }) | 136 | TextInput({ placeholder: '说两句...', text: this.comment }) |
| 137 | + | ||
| 135 | .placeholderColor(Color.White) | 138 | .placeholderColor(Color.White) |
| 136 | .placeholderFont({ size: 14 }) | 139 | .placeholderFont({ size: 14 }) |
| 137 | .fontColor(Color.White) | 140 | .fontColor(Color.White) |
| 138 | .fontSize(14) | 141 | .fontSize(14) |
| 139 | .maxLines(1) | 142 | .maxLines(1) |
| 140 | .layoutWeight(1) | 143 | .layoutWeight(1) |
| 141 | - .backgroundColor('#ccc') | 144 | + .backgroundColor('#1a1a1a') |
| 142 | .borderRadius(2) | 145 | .borderRadius(2) |
| 143 | - }.alignItems(VerticalAlign.Center) | 146 | + .margin({ left: 12 }) |
| 147 | + } | ||
| 148 | + .alignItems(VerticalAlign.Center) | ||
| 149 | + .padding({ left: 16, right: 16, top: 11, bottom: 11 }) | ||
| 150 | + } | ||
| 151 | + }.backgroundColor(Color.Black) | ||
| 152 | + | ||
| 144 | } | 153 | } |
| 145 | .width('100%') | 154 | .width('100%') |
| 146 | // .height('40%') | 155 | // .height('40%') |
-
Please register or login to post a comment