Interface YouTubePublicationService
public interface YouTubePublicationService
Publishes elements from MediaPackages to youtube.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.job.api.Jobpublish(org.opencastproject.mediapackage.MediaPackage mediaPackage, org.opencastproject.mediapackage.Track track, org.opencastproject.mediapackage.Attachment thumbnail, List<org.opencastproject.mediapackage.Track> captions) Publishes a media package element with an optional thumbnail.org.opencastproject.job.api.Jobretract(org.opencastproject.mediapackage.MediaPackage mediaPackage) Retract a media package element from the distribution channel.
-
Field Details
-
JOB_TYPE
Identifier for service registration and location- See Also:
-
-
Method Details
-
publish
org.opencastproject.job.api.Job publish(org.opencastproject.mediapackage.MediaPackage mediaPackage, org.opencastproject.mediapackage.Track track, org.opencastproject.mediapackage.Attachment thumbnail, List<org.opencastproject.mediapackage.Track> captions) throws PublicationException Publishes a media package element with an optional thumbnail.- Parameters:
mediaPackage- the media packagetrack- the track of the media package to publishthumbnail- the thumbnail of the media package to publishcaptions- the list of captions to publish- Returns:
- The job
- Throws:
PublicationException- if there was a problem publishing the media
-
retract
org.opencastproject.job.api.Job retract(org.opencastproject.mediapackage.MediaPackage mediaPackage) throws PublicationException Retract a media package element from the distribution channel.- Parameters:
mediaPackage- the media package- Throws:
PublicationException- if there was a problem retracting the mediapackage
-