com.silverpeas.gallery.model
Class Streaming

java.lang.Object
  extended by com.silverpeas.gallery.model.Media
      extended by com.silverpeas.gallery.model.Streaming
All Implemented Interfaces:
com.silverpeas.SilverpeasContent, com.stratelia.silverpeas.contentManager.SilverContentInterface, Serializable

public class Streaming
extends Media

This class represents a Streaming.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.silverpeas.gallery.model.Media
BASE_PATH
 
Constructor Summary
Streaming()
           
 
Method Summary
 String getApplicationEmbedUrl(MediaResolution mediaResolution)
          Gets the Application URL thumbnail of the media according the specified media resolution.
 String getApplicationOriginalUrl()
          Gets the original URL of a media with cache handling.
 org.silverpeas.file.SilverpeasFile getFile(MediaResolution mediaResolution)
          Gets the Silverpeas file.
 String getHomepageUrl()
          Gets the provider URL that permits to access to the video play.
static org.json.JSONObject getOembedAsJson(String homepageUrl)
          Gets OEMBED data as JSON.
 StreamingProvider getProvider()
          Gets the streaming provider.
static String getResourceType()
          The type of this resource
 MediaType getType()
           
 void setHomepageUrl(String url)
          Sets the provider URL that permits to access to the video play.
 void setProvider(StreamingProvider provider)
          Gets the streaming provider.
 
Methods inherited from class com.silverpeas.gallery.model.Media
addToAlbums, canBeAccessedBy, equals, getApplicationThumbnailUrl, getAuthor, getComponentInstanceId, getContributionType, getCreationDate, getCreator, getCreatorId, getCreatorName, getDate, getDescription, getDescription, getGreatestUserRole, getIconUrl, getId, getInstanceId, getInternalMedia, getKeyWord, getLanguages, getLastUpdateDate, getLastUpdatedBy, getLastUpdater, getLastUpdaterName, getMediaPK, getName, getName, getPermalink, getPhoto, getSilverCreationDate, getSilverpeasContentId, getSound, getStreaming, getTitle, getURL, getVideo, getVisibilityPeriod, getWorkspaceSubFolderName, hashCode, isDownloadable, isPreviewable, isVisible, isVisible, removeFromAllAlbums, setAuthor, setComponentInstanceId, setCreationDate, setCreator, setCreatorId, setDescription, setIconUrl, setId, setKeyWord, setLastUpdateDate, setLastUpdatedBy, setLastUpdater, setMediaPK, setSilverpeasContentId, setTitle, setToAlbums, setVisibilityPeriod, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Streaming

public Streaming()
Method Detail

getType

public MediaType getType()
Specified by:
getType in class Media

getHomepageUrl

public String getHomepageUrl()
Gets the provider URL that permits to access to the video play.

Returns:
the provider URL that permits to access to the video play.

setHomepageUrl

public void setHomepageUrl(String url)
Sets the provider URL that permits to access to the video play.

Parameters:
url - the provider URL that permits to access to the video play.

getProvider

public StreamingProvider getProvider()
Gets the streaming provider.

Returns:
the streaming provider.

setProvider

public void setProvider(StreamingProvider provider)
Gets the streaming provider.

Parameters:
provider - the streaming provider.

getResourceType

public static String getResourceType()
The type of this resource

Returns:
the same value returned by getContributionType()

getApplicationOriginalUrl

public String getApplicationOriginalUrl()
Description copied from class: Media
Gets the original URL of a media with cache handling.

Overrides:
getApplicationOriginalUrl in class Media
Returns:

getFile

public org.silverpeas.file.SilverpeasFile getFile(MediaResolution mediaResolution)
Description copied from class: Media
Gets the Silverpeas file.

Specified by:
getFile in class Media
Returns:

getApplicationEmbedUrl

public String getApplicationEmbedUrl(MediaResolution mediaResolution)
Description copied from class: Media
Gets the Application URL thumbnail of the media according the specified media resolution.

Overrides:
getApplicationEmbedUrl in class Media
Returns:
the URL of media thumbnail.

getOembedAsJson

public static org.json.JSONObject getOembedAsJson(String homepageUrl)
Gets OEMBED data as JSON.
WARNING: performances can be altered when called from a list treatments as it performs an HTTP request.

Returns:
a JSONObject


Copyright © 2016 Silverpeas. All Rights Reserved.