王士厅

fix: WDPlayController play()增加prepare逻辑

@@ -250,7 +250,11 @@ export class WDPlayerController { @@ -250,7 +250,11 @@ export class WDPlayerController {
250 // if (this.avPlayer == null) { 250 // if (this.avPlayer == null) {
251 // return 251 // return
252 // } 252 // }
253 - this.avPlayer?.play(); 253 + this.avPlayer?.prepare().then(() => {
  254 + this.avPlayer?.play()
  255 + }, (err: BusinessError) => {
  256 + console.error('Failed to prepare,error message is :' + err.message)
  257 + })
254 } 258 }
255 259
256 async startRenderFrame(cb: Function) { 260 async startRenderFrame(cb: Function) {