Class YouTubePublicationAdapter
java.lang.Object
org.opencastproject.publication.youtube.YouTubePublicationAdapter
Strategy to determine destination of publication. Instances of this class are not thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionYouTubePublicationAdapter(org.opencastproject.mediapackage.MediaPackage mp, org.opencastproject.workspace.api.Workspace workspace) Create a single-use strategy instance for publication to youtube -
Method Summary
Modifier and TypeMethodDescriptionGets the name for a context within a publication channel.Gets the name for a context within a publication channel.Gets the description for the episode of the media packageGets the name for the episode of the media package
-
Constructor Details
-
YouTubePublicationAdapter
public YouTubePublicationAdapter(org.opencastproject.mediapackage.MediaPackage mp, org.opencastproject.workspace.api.Workspace workspace) throws org.opencastproject.publication.api.PublicationException Create a single-use strategy instance for publication to youtube- Parameters:
mp- the mediapackage identifierworkspace- the workspace service- Throws:
org.opencastproject.publication.api.PublicationException
-
-
Method Details
-
getContextName
Gets the name for a context within a publication channel.- Returns:
- The playlist ID
-
getContextDescription
Gets the name for a context within a publication channel.- Returns:
- Context description
-
getEpisodeName
Gets the name for the episode of the media package- Returns:
- the title of the episode
-
getEpisodeDescription
Gets the description for the episode of the media package- Returns:
- the description of the episode
-