-
-
Save kjartanvest/2d83ca1b5055fd296372358fdc3170b3 to your computer and use it in GitHub Desktop.
Upload video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File videoFile = new File(<path to video file>); | |
Context context; | |
uploader.uploadFile(videoFile, uploadParams, context, new SynqUploadHandler() { | |
@Override | |
public void onCompleted() { | |
// Upload success | |
} | |
@Override | |
public void onFailure(String error) { | |
// Upload error | |
} | |
@Override | |
public void onProgress(long bytesTransferred, long totalSize) { | |
double percent = (double)bytesTransferred / (double)totalSize * 100.0; | |
// Report upload progress to UI | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment