|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VideoProvider
Abstraction for video service providers that provide capabilities for uploading, transcoding, and playback of videos
| Nested Class Summary | |
|---|---|
static class |
VideoProvider.ProviderActionStatus
|
| Field Summary | |
|---|---|
static String |
VIDKEY
|
| Method Summary | |
|---|---|
boolean |
deleteVideo(long videoID)
Deletes a video at the service provider |
Map<VideoProvider.ProviderActionStatus,String> |
getActionResults()
Returns the struts action result types to invoke when the various VideoProvider.ProviderActionStatus results are
encountered |
String |
getHtmlEmbedCode(User user,
long videoID)
Returns the html embed code for a user viewing the video with the given id |
String |
getHtmlEmbedCode(User user,
String externalID)
Returns the html embed code for a user viewing the video with the given id at the video service provider |
String |
getHtmlEmbedCode(User user,
Video video)
Returns the html embed code for a user viewing the given video |
String |
getJavaScriptEmbedCode(long videoID)
Returns the javascript embed code for the video with the given id |
String |
getJavaScriptEmbedCode(String externalID)
Returns the javascript embed code for the video with the given id at the service provider |
String |
getJavaScriptEmbedCode(Video video)
Returns the javascript embed code for the given video |
String |
getName()
Returns the unique name of the video service provider |
int |
getPercentTranscoded(long videoID)
Returns the the transcoding progress of a video as a percentage of the total video duration. |
Map<String,Object> |
getProperties(long videoID)
Retrieves properties for a video from the service provider. |
String |
getSiteAdminUrl()
Returns the url of the admin site for the video service provider |
boolean |
isLicenseValid(String license)
Returns true if the service providers is able to successfully validate the given license key |
boolean |
isTranscodedProgressSupported()
Returns true if the service provider is able to give details about the transcoding progress (e.g., 60% done) of a particular video. |
boolean |
isVideoTypeSupported(String mimeType)
Returns true if a particular mime type is supported by the video service provider |
Video |
uploadVideo(Video video)
Uploads a video to the service provider |
| Field Detail |
|---|
static final String VIDKEY
| Method Detail |
|---|
Video uploadVideo(Video video)
throws InvalidLicenseException
video - to upload
InvalidLicenseExceptionMap<String,Object> getProperties(long videoID)
videoID - of video to retrieve details for
boolean isTranscodedProgressSupported()
int getPercentTranscoded(long videoID)
videoID - of the video being transcoded
boolean deleteVideo(long videoID)
videoID - of the video to delete
boolean isVideoTypeSupported(String mimeType)
String getHtmlEmbedCode(User user,
Video video)
user - viewing the videovideo - to be viewed
String getHtmlEmbedCode(User user,
String externalID)
user - viewing the videoexternalID - id of the video at the service provider
String getHtmlEmbedCode(User user,
long videoID)
user - viewing the videovideoID - id of the video
String getJavaScriptEmbedCode(Video video)
video - to be viewed
String getJavaScriptEmbedCode(String externalID)
externalID - id of the video at the service provider
String getJavaScriptEmbedCode(long videoID)
videoID - id of the video
String getName()
String getSiteAdminUrl()
Map<VideoProvider.ProviderActionStatus,String> getActionResults()
VideoProvider.ProviderActionStatus results are
encountered
boolean isLicenseValid(String license)
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||