tencent cloud

All product documents
User Generated Short Video SDK
Last updated: 2024-12-23 14:53:57
iOS
Last updated: 2024-12-23 14:53:57
How the shooting drafts feature works

Starting a shooting

1. Start shooting a video.
2. Pause/End the shooting.
3. Cache the video segment locally (draft box).

Resuming the shooting

1. Preload the locally cached video segment.
2. Continue with the shooting.
3. End the shooting.
//Get the object of the previous shooting
record = [TXUGCRecord shareInstance];

//Start shooting a video.
[record startRecord];

//Pause the shooting and cache the video segment
[record pauseRecord:^{
NSArray *videoPathList = record.partsManager.getVideoPathList;
//Set `videoPathList` to a local path.
}];

//Get the object of the resumed shooting.
record2 = [TXUGCRecord shareInstance];

//Preload the locally cached video segment.
[record2.partsManager insertPart:videoPath atIndex:0];

//Start the shooting
[record2 startRecord];

//End the shooting. The SDK will splice together the two video segments.
[record2 stopRecord];
Note:
For detailed instructions, see the UGCKitRecordViewController class in (Demo) Source Code for All-Feature UGSV Apps.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon