Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
xugenyuan
2024-05-29 10:33:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5795f299327604f9ec94a09861a4e9c26270d91d
5795f299
1 parent
4b287670
ref |> 修复因为播放链接为空导致崩溃问题
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
sight_harmony/features/wdPlayer/src/main/ets/controller/WDAliPlayerController.ets
sight_harmony/features/wdPlayer/src/main/ets/controller/WDAliPlayerController.ets
View file @
5795f29
...
...
@@ -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
}
...
...
Please
register
or
login
to post a comment