mirror of
https://github.com/GuijiAI/duix.ai.git
synced 2026-03-12 17:51:43 +08:00
update
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user