xugenyuan

ref |> 修复因为播放链接为空导致崩溃问题

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -267,6 +267,7 @@ export class WDAliPlayerController {
async firstPlay(url: string) {
if (StringUtils.isEmpty(url)) {
Logger.error(TAG, "播放链接为空")
return
}
... ... @@ -292,7 +293,7 @@ export class WDAliPlayerController {
this.avPlayer?.setAutoPlay(false)
Logger.debug(TAG, "开始播放:"+ this.url)
Logger.debug(TAG, "开始播放: " + this.url)
this.setAliPlayerURL(this.url);
Logger.info(TAG, "设置SurfaceId: " + this.surfaceId)
... ... @@ -473,4 +474,4 @@ export class WDAliPlayerController {
setStartTime(time?: number) {
this.startTime = time ?? 0;
}
}
\ No newline at end of file
}
... ...