public class GamingVideoUploader
extends java.lang.Object
| Constructor and Description |
|---|
GamingVideoUploader(android.content.Context context)
Utility class to upload Videos to a Player's Gaming Media Library.
|
| Modifier and Type | Method and Description |
|---|---|
void |
uploadToMediaLibrary(java.lang.String caption,
android.net.Uri videoUri)
Uploads a video to a player's Gaming Media Library.
|
void |
uploadToMediaLibrary(java.lang.String caption,
android.net.Uri videoUri,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.OnProgressCallback callback)
Uploads an image to a player's Gaming Media Library.
|
void |
uploadToMediaLibrary(java.lang.String caption,
android.net.Uri videoUri,
com.facebook.GraphRequest.OnProgressCallback callback)
Uploads a video to a player's Gaming Media Library.
|
public GamingVideoUploader(android.content.Context context)
context - Android Context for the activity launching initiating an upload.public void uploadToMediaLibrary(java.lang.String caption,
android.net.Uri videoUri)
throws java.io.FileNotFoundException
After uploading the player will receive a notification that a new item on their media library is ready to share.
Note: After the upload is complete the video still needs to be encoded by Facebook and won't be immediately available to be shared.
caption - the user generated caption for the video, can be nullvideoUri - the file:// or content:// Uri to the video on devicejava.io.FileNotFoundException - if the videoUri doesn't exist.public void uploadToMediaLibrary(java.lang.String caption,
android.net.Uri videoUri,
com.facebook.GraphRequest.OnProgressCallback callback)
throws java.io.FileNotFoundException
After uploading the player will receive a notification that a new item on their media library is ready to share.
Note: After the upload is complete the video still needs to be encoded by Facebook and won't be immediately available to be shared.
caption - the user generated caption for the video, can be nullvideoUri - the file:// or content:// Uri to the video on devicecallback - an optional OnProgressCallback to track the upload process.java.io.FileNotFoundException - if the videoUri doesn't exist.public void uploadToMediaLibrary(java.lang.String caption,
android.net.Uri videoUri,
boolean shouldLaunchMediaDialog,
com.facebook.GraphRequest.OnProgressCallback callback)
throws java.io.FileNotFoundException
After uploading the player will receive a notification that a new item on their media library is ready to share. If shouldLaunchMediaDialog is set to true this will also trigger the Media Dialog to open and allow immediate sharing.
caption - the user generated caption for the video, can be nullvideoUri - the file:// or content:// Uri to the video on deviceshouldLaunchMediaDialog - if set to True will open the Media Dialog in the FB App to allow
the user to share the uploaded video.callback - an optional OnProgressCallback to track the upload process.java.io.FileNotFoundException - if the videoUri doesn't exist.