Skip to content

An easy-to-use Objective-C implementation of uploading video to Letv cloud via its open API.

License

Notifications You must be signed in to change notification settings

stoneark/SALetvUploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SALetvUploader

SALetvUploader is an easy-to-use Objective-C implementation of uploading video to Letv cloud via its open API.

Usage

1.Set macro LETV_USER_UNIQUE and LETV_KEYin SALetvUploaderConst.h.

2.You can enable or disable the log output by setting LETV_ENABLE_LOG in SALetvUploaderConst.h.

3.When you need to upload a video, just import SALetvUploader.h, implement SALetvUploaderDelegate, then simply call:

[[SALetvUploader sharedInstance] upload:@"filename" videoData:data delegate:self];

4.You can use methods of SALetvUploaderDelegate to get the status of uploading:

- (void)onUploadStart;
- (void)onUploadProgressUpdate:(int)progress;
- (void)onUploadSuccess:(NSString*)videoUnique;
- (void)onUploadFailure:(NSError*)error;

5.Cancel uploading:

[[SALetvUploader sharedInstance] cancel];

6.You can expand functions if you like, for example - (void)loadVideoList;.

Limitation

This project only supplies a basic and easy-to-use uploading currently, transmission resuming at breakpoints not included.

License

MIT License

This project use ASIHTTPRequest, CocoaSecurity, and Base64. Thanks.

@StoneArk

About

An easy-to-use Objective-C implementation of uploading video to Letv cloud via its open API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published