This commit is contained in:
songwei
2025-07-17 17:45:02 +08:00
parent c12dafda67
commit 93638e9d36
2 changed files with 51 additions and 50 deletions

View File

@@ -35,32 +35,8 @@
---
## 三、快速开始
```
NSInteger result = [[GJLDigitalManager manager] initBaseModel:weakSelf.basePath
digitalModel:weakSelf.digitalPath
showView:weakSelf.showView];
if (result == 1) {
// 2. 启动渲染
[[GJLDigitalManager manager] toStart:^(BOOL isSuccess, NSString *errorMsg) {
if (isSuccess) {
dispatch_async(dispatch_get_main_queue(), ^{
// 3. 启动流式驱动
[[GJLDigitalManager manager] toStartRuning];
});
} else {
[SVProgressHUD showInfoWithStatus:errorMsg];
}
}];
}
```
---
## 四、调用流程
## 三、调用流程
```mermaid
graph TD
@@ -85,7 +61,30 @@ E --> F[播放控制与动作触发]
6.释放资源toStop结束渲染
```
---
## 四、快速开始
```
NSInteger result = [[GJLDigitalManager manager] initBaseModel:weakSelf.basePath
digitalModel:weakSelf.digitalPath
showView:weakSelf.showView];
if (result == 1) {
// 2. 启动渲染
[[GJLDigitalManager manager] toStart:^(BOOL isSuccess, NSString *errorMsg) {
if (isSuccess) {
dispatch_async(dispatch_get_main_queue(), ^{
// 3. 启动流式驱动
[[GJLDigitalManager manager] toStartRuning];
});
} else {
[SVProgressHUD showInfoWithStatus:errorMsg];
}
}];
}
```
---

View File

@@ -34,33 +34,9 @@ This SDK provides locally deployed 2D digital human rendering and voice broadcas
---
## 3. Quick Start
```
// 1. Initialize authorization
NSInteger result = [[GJLDigitalManager manager] initBaseModel:weakSelf.basePath
digitalModel:weakSelf.digitalPath
showView:weakSelf.showView];
if (result == 1) {
// 2. Start rendering
[[GJLDigitalManager manager] toStart:^(BOOL isSuccess, NSString *errorMsg) {
if (isSuccess) {
dispatch_async(dispatch_get_main_queue(), ^{
// 3. Start streaming driver
[[GJLDigitalManager manager] toStartRuning];
});
} else {
[SVProgressHUD showInfoWithStatus:errorMsg];
}
}];
}
```
---
## 4. Workflow
## 3. Workflow
```mermaid
graph TD
@@ -88,6 +64,32 @@ F --> G[Resource Release]
---
## 4. Quick Start
```
// 1. Initialize authorization
NSInteger result = [[GJLDigitalManager manager] initBaseModel:weakSelf.basePath
digitalModel:weakSelf.digitalPath
showView:weakSelf.showView];
if (result == 1) {
// 2. Start rendering
[[GJLDigitalManager manager] toStart:^(BOOL isSuccess, NSString *errorMsg) {
if (isSuccess) {
dispatch_async(dispatch_get_main_queue(), ^{
// 3. Start streaming driver
[[GJLDigitalManager manager] toStartRuning];
});
} else {
[SVProgressHUD showInfoWithStatus:errorMsg];
}
}];
}
```
---
## 5. Core Function Interfaces
### 5.1 Initialization Configuration