public class YouTubeService extends OAuth2MediaPublishingProvider
Constructor and Description |
---|
YouTubeService() |
Modifier and Type | Method and Description |
---|---|
String |
getEmbedCode(String mediaId,
String account)
Retrieve the HTML code for embedding the media
|
String |
getPublishedUrl(String mediaId,
String account)
Retrieve the URL for the published media
|
Map<String,String> |
getStats(String mediaId,
String account)
Retrieve a map of statistics (depends on the provider)
|
YouTubeClient |
getYouTubeClient(String account) |
boolean |
isMediaPublished(String mediaId,
String account)
Checks if a media is published by the provider
|
boolean |
unpublish(PublishableMedia media)
Unpublish the media
|
String |
upload(PublishableMedia media,
MediaPublishingProgressListener progressListener,
String account,
Map<String,String> options)
Upload the media
|
getCredential, getOAuth2ServiceProvider, isAvailable, isMediaAvailable
public static final String PROVIDER
public YouTubeService()
public YouTubeClient getYouTubeClient(String account)
public String upload(PublishableMedia media, MediaPublishingProgressListener progressListener, String account, Map<String,String> options) throws IOException
MediaPublishingProvider
IOException
public boolean unpublish(PublishableMedia media) throws IOException
MediaPublishingProvider
IOException
public String getPublishedUrl(String mediaId, String account)
MediaPublishingProvider
public String getEmbedCode(String mediaId, String account)
MediaPublishingProvider
public Map<String,String> getStats(String mediaId, String account)
MediaPublishingProvider
public boolean isMediaPublished(String mediaId, String account)
MediaPublishingProvider
Copyright © 2015 Nuxeo SA. All rights reserved.