Skip to content

Instantly share code, notes, and snippets.

@kjartanvest
Created March 10, 2017 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjartanvest/dc5d65c2496138d88b036e31518cc798 to your computer and use it in GitHub Desktop.
Save kjartanvest/dc5d65c2496138d88b036e31518cc798 to your computer and use it in GitHub Desktop.
Create video object
JsonObject uploadParams; // JsonObject for the video's upload parameters
Context context; // Should be set to the current context
client.createVideo(new SynqResponseHandler()
{
@Override
public void onSuccess(JsonObject jsonResponse) {
// Keep the returned JsonObject
uploadParams = jsonResponse;
}
@Override
public void onFailure(Exception e) {
// Video create error
}
}, context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment