load Video Attachment
Call this method to load a video from uri presented by com.streamwide.smartms.lib.core.data.item.VideoAttachment.
This method can be executed in a main thread since it is already done in an AsyncTask.
The video can be captured from camera or chosen from gallery.
Parameters
The application context
An intent that contains all necessary data to extract the image attachment.
Useful when a custom data (android.net.Uri, file path...) is stored in the intent parameter referenced by an extra key.
It will be invoked when the video has been successfully loaded or when an error has occurred. Other details are delivered in the IAttachmentLoaderCallback callback.
Call this method to load a video from uri presented by com.streamwide.smartms.lib.core.data.item.VideoAttachment.
This method can be executed in a main thread since it is already done in an AsyncTask.
The video can be captured from camera or chosen from gallery.
Parameters
The application context
The application lifecycle
An intent that contains all necessary data to extract the image attachment.
Useful when a custom data (android.net.Uri, file path...) is stored in the intent parameter referenced by an extra key.
It will be invoked when the video has been successfully loaded or when an error has occurred. Other details are delivered in the IAttachmentLoaderCallback callback.