tencent cloud

User Generated Short Video SDK

動態と公告
Release Notes
The “startPlay” API of the UGSV SDK Renamed
製品紹介
Overview
Features
Use Cases
Concepts
購入ガイド
Pricing Overview
Refund Policy
License ガイド
Adding and Renewing a License
Configuring and Viewing a License
SDKのダウンロード
SDK Download
Release Notes (App)
UI 統合ソリューションを含む
UGSV Demo App
Source Code Description (iOS)
Source Code Description (Android)
UI 統合ソリューションを含まない
SDK Integration
Capturing and Shoot
Preview, Clipping, and Splicing
Upload and Playback
Tencent Effect SDK
Advanced Features and Special Effects
API ドキュメント
Editing
Shooting
テクニカルサポート
Error Codes
Feature FAQs
よくある質問
Upload
Android Compilation
Android
iOS
License
UGSV ポリシー
プライバシーポリシー
データ処理とセキュリティ契約

Android

PDF
フォーカスモード
フォントサイズ
最終更新日: 2022-05-24 16:02:37
You can implement the drafts logic as follows:

First Shooting

1. Start shooting.
2. Pause/End the first shooting.
3. Cache the video segment locally (in drafts).

Second Shooting

1. Preload the locally cached video segment.
2. Resume shooting.
3. End shooting.
// Get the first video shooting object
mTXCameraRecord = TXUGCRecord.getInstance(this.getApplicationContext());

// Start shooting
mTXCameraRecord.startRecord();

// Pause shooting
mTXCameraRecord.pauseRecord();

// Get the cached video segment and write it locally
List<String> pathList = mTXCameraRecord.getPartsManager().getPartsPathList(); // Write `pathList` locally

// Open the application again and get the shooting object
mTXCameraRecord2 = TXUGCRecord.getInstance(this.getApplicationContext());

// Preload the locally cached segment
mTXCameraRecord2.getPartsManager().insertPart(videoPath, 0);

// Start shooting
mTXCameraRecord2.startRecord();

// End shooting, and the SDK will compose the cached video segment with the currently shot one
mTXCameraRecord2.stopRecord();

Note:
For the specific implementation method, please see the usage of the RecordDraftManager class in the shooting module in the UGSV application demo source code.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック