ref |> 修复因为播放链接为空导致崩溃问题
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -267,6 +267,7 @@ export class WDAliPlayerController { | @@ -267,6 +267,7 @@ export class WDAliPlayerController { | ||
| 267 | 267 | ||
| 268 | async firstPlay(url: string) { | 268 | async firstPlay(url: string) { |
| 269 | if (StringUtils.isEmpty(url)) { | 269 | if (StringUtils.isEmpty(url)) { |
| 270 | + Logger.error(TAG, "播放链接为空") | ||
| 270 | return | 271 | return |
| 271 | } | 272 | } |
| 272 | 273 | ||
| @@ -292,7 +293,7 @@ export class WDAliPlayerController { | @@ -292,7 +293,7 @@ export class WDAliPlayerController { | ||
| 292 | 293 | ||
| 293 | this.avPlayer?.setAutoPlay(false) | 294 | this.avPlayer?.setAutoPlay(false) |
| 294 | 295 | ||
| 295 | - Logger.debug(TAG, "开始播放:"+ this.url) | 296 | + Logger.debug(TAG, "开始播放: " + this.url) |
| 296 | this.setAliPlayerURL(this.url); | 297 | this.setAliPlayerURL(this.url); |
| 297 | 298 | ||
| 298 | Logger.info(TAG, "设置SurfaceId: " + this.surfaceId) | 299 | Logger.info(TAG, "设置SurfaceId: " + this.surfaceId) |
-
Please register or login to post a comment