Created by zchen on 1/27/16. More...

Public Member Functions | |
StandaloneVideo (Set< Stream > streams) | |
ReturnState update (JSONObject data) | |
Update the AuthorizableItem using the specified data. More... | |
List< OoyalaManagedAdSpot > getAds () | |
void insertAd (OoyalaManagedAdSpot ad) | |
Insert an AdSpot to play during this video. More... | |
void filterAds (IMatchObjectPredicate< OoyalaManagedAdSpot > keeper) | |
Channel getParent () | |
int getDuration () | |
Video firstVideo () | |
Video nextVideo () | |
Video previousVideo () | |
boolean hasAds () | |
Returns whether this movie has ads. More... | |
boolean isLive () | |
ClosedCaptions getClosedCaptions () | |
VTTClosedCaptions getVTTClosedCaptions () | |
void setClosedCaptions (ClosedCaptions closedCaptions) | |
boolean hasClosedCaptions () | |
Video videoFromEmbedCode (String embedCode, Video currentItem) | |
Set< Stream > getStreams () | |
Stream getStream () | |
boolean needsFetchInfo () | |
boolean hasTokenExpired () | |
File getFolder () | |
Cache getCache () | |
boolean isHAEnabled () | |
void setAsset (JSONObject asset) | |
Provides possibility to change settings of video. More... | |
boolean isSsaiEnabled () | |
Check if SSAI is enabled for this VOD or live video. More... | |
void setManifestCCs (Map< String, ManifestClosedCaption > manifestCCs) | |
Set the available in manifest closed captions languages. More... | |
Set< String > getManifestCCLanguages () | |
Get the available in manifest closed captions languages. More... | |
Set< String > getManifestCCLanguagesCodes () | |
Get the available in manifest closed captions languages codes. More... | |
String getLanguageCodeFor (String language) | |
Get the language code for a user friendly language. More... | |
Set< String > languageCodesToDisplay () | |
If there is more than one language code in manifest, use the manifest languages If there is only one language code in manifest and is Unknown, check for content tree If the previous conditions were not met and there are CC in content tree, use content tree. More... | |
Set< String > languageNamesToDisplay () | |
If there is more than one language name in manifest, use the manifest languages If there is only one language name in manifest and is Unknown, check for content tree If the previous conditions were not met and there are CC in content tree, use content tree. More... | |
String getEmbedCode () | |
Get the embedCode for this content item. More... | |
String getExternalId () | |
Get the externalId for this content item. More... | |
String getTitle () | |
Get the title for this content item. More... | |
String getDescription () | |
Get the description for this content item. More... | |
boolean hasVRContent () | |
Does this content item have VR content. More... | |
String getAssetPCode () | |
Get the Asset PCode for this content item. More... | |
JSONObject getMetadataJSON () | |
Get the inner metadata JSONObject for this content item. More... | |
JSONArray getMetadataAllAds () | |
Get the all_ads JSONArray in the metadata for this content item. More... | |
FCCTVRating getTVRating () | |
List< String > embedCodesToAuthorize () | |
For internal use only. More... | |
String getPromoImageURL (int width, int height) | |
Returns a promo image URL for this content item that will be at least the specified dimensions. More... | |
String getHostedAtUrl () | |
Returns a URL that video is hosted at for this content item. More... | |
String getDefaultAudioTrackLanguage () | |
boolean isAuthorized () | |
Whether or not this AuthorizableItem is authorized. More... | |
int getAuthCode () | |
The Auth Code from the authorization request. More... | |
String getKey () | |
boolean isHeartbeatRequired () | |
Map< String, String > getMetadata () | |
Map< String, ModuleData > getModuleData () | |
boolean isOfflineVideo () | |
void setOfflineVideo (boolean isOfflineVideo) | |
SsaiMetadata getSsaiMetadata () | |
Get SSAI metadata associated with the Content Item. More... | |
Static Public Member Functions | |
static ContentItem create (JSONObject data, List< String > embedCodes) | |
static ContentItem create (JSONObject data, String embedCode) | |
static List< String > getEmbedCodes (List<? extends ContentItem > items) | |
static String getAuthError (int authCode) | |
Generate the authorization error of a video item. More... | |
Public Attributes | |
int retryCount | |
Static Public Attributes | |
static final String KEY_METADATA_HIGH_AVAILABILITY = "highAvailability" | |
static final String KEY_METADATA_HA_ENABLED = "ha_enabled" | |
static final String KEY_METADATA_ENABLED = "enabled" | |
static final String KEY_METADATA_HA_COUNT = "ha_count" | |
static String [] authCodeDescription | |
Protected Member Functions | |
Set< String > languagesToDisplay (Set< String > manifestLanguages, Set< String > contentTreeLanguages) | |
If there is more than one language in manifest, use the manifest languages If there is only one language in manifest and is Unknown, check for content tree If the previous conditions were not met and there are CC in content tree, use content tree. More... | |
Protected Attributes | |
List< OoyalaManagedAdSpot > _ads = new ArrayList<OoyalaManagedAdSpot>() | |
Set< Stream > _streams = new HashSet<Stream>() | |
Channel _parent = null | |
int _duration = 0 | |
boolean _live = false | |
ClosedCaptions _closedCaptions = null | |
VTTClosedCaptions vttClosedCaptions = null | |
File folder | |
Cache cache | |
String _embedCode = null | |
String _externalId = null | |
String _contentToken = null | |
String _title = null | |
String _description = null | |
String _promoImageURL = null | |
String _assetPCode = null | |
String _hostedAtURL = null | |
String _defaultAudioTrackLanguage = null | |
boolean _authorized = false | |
int _authCode = AuthCode.NOT_REQUESTED | |
boolean _heartbeatRequired | |
Map< String, String > _metadata | |
Map< String, ModuleData > _moduleData | |
JSONObject _metadataJSON | |
JSONArray _metadataAllAdsJSONArray | |
FCCTVRating _tvRating | |
boolean _hasVRContent = false | |
SsaiMetadata _ssaiMetadata | |
Static Protected Attributes | |
static final String KEY_EMBED_CODE = "embed_code" | |
static final String KEY_EXTERNAL_ID = "external_id" | |
static final String KEY_CONTENT_TOKEN = "content_token" | |
static final String KEY_TITLE = "title" | |
static final String KEY_DESCRIPTION = "description" | |
static final String KEY_PROMO_IMAGE = "promo_image" | |
static final String KEY_HOSTED_AT_URL = "hostedAtURL" | |
static final String KEY_THUMBNAIL_IMAGE = "thumbnail_image" | |
static final String KEY_ASSET_PCODE = "asset_pcode" | |
static final String KEY_CONTENT_TYPE = "content_type" | |
static final String KEY_ADS = "ads" | |
static final String KEY_NEXT_CHILDREN = "next_children" | |
static final String KEY_DURATION = "duration" | |
static final String KEY_CLOSED_CAPTIONS = "closed_captions" | |
static final String KEY_CLOSED_CAPTIONS_VTT = "closed_captions_vtt" | |
static final String KEY_REQUIRE_HEARTBEAT = "require_heartbeat" | |
static final String KEY_CODE = "code" | |
static final String KEY_AUTHORIZED = "authorized" | |
static final String KEY_CHILDREN = "children" | |
static final String KEY_STREAMS = "streams" | |
static final String KEY_MOVIE_ATTRIBUTES = "movie_attributes" | |
static final String KEY_VR_TYPE = "vr360type" | |
static final String KEY_DEFAULT_AUDIO_TRACK_LANGUAGE = "default_language" | |
static final String KEY_METADATA = "metadata" | |
static final String KEY_METADATA_BASE = "base" | |
static final String KEY_METADATA_MODULES = "modules" | |
static final String KEY_METADATA_MODULE_TYPE = "type" | |
static final String KEY_METADATA_ALL_ADS = "all_ads" | |
static final String KEY_METADATA_ALL_ADS_POSITION = "position" | |
static final String KEY_METADATA_TVRATING_RATING = "tvrating" | |
static final String KEY_METADATA_TVRATING_SUBRATINGS = "tvsubratings" | |
static final String KEY_METADATA_TVRATING_CLICKTHROUGH_URL = "tvratingsurl" | |
static final String KEY_METADATA_VR_CONTENT = "vrcontent" | |
static final String KEY_EMBED_CODE_ATTRIBUTES = "attributes" | |
static final String KEY_EMBED_CODE_PROVIDER = "provider" | |
static final String KEY_SSAI_ENABLED = "ssai_enabled" | |
static final String KEY_SSAI_VOD_ENABLED = "ssai_vod_enabled" | |
static final String KEY_SSAI_VOD_ENABLED_MOVIE = "ssai_vod_enabled_movie_level" | |
static final String CONTENT_TYPE_CHANNEL_SET = "MultiChannel" | |
static final String CONTENT_TYPE_CHANNEL = "Channel" | |
static final String CONTENT_TYPE_VIDEO = "Video" | |
static final String CONTENT_TYPE_AUDIO = "Audio" | |
static final String CONTENT_TYPE_LIVE_STREAM = "LiveStream" | |
static final String VALUE_VR_TYPE = "mono" | |
Detailed Description
Created by zchen on 1/27/16.
Constructor & Destructor Documentation
com.ooyala.android.item.StandaloneVideo.StandaloneVideo | ( | Set< Stream > | streams | ) |
Member Function Documentation
|
staticinherited |
|
staticinherited |
|
inherited |
For internal use only.
The embed codes to authorize for the AuthorizableItem
- Returns
- the embed codes to authorize as a List
Implements com.ooyala.android.item.AuthorizableItem.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Get the Asset PCode for this content item.
- Returns
- Asset PCode for this content item
|
inherited |
The Auth Code from the authorization request.
- Returns
- an int with the status of the authorization request
Implements com.ooyala.android.item.AuthorizableItem.
|
staticinherited |
Generate the authorization error of a video item.
- Parameters
-
authCode
- Returns
- a properly described OoyalaException
|
inherited |
- Returns
- the cache for offline playback.
|
inherited |
|
inherited |
- Returns
- The default audio track language.
|
inherited |
Get the description for this content item.
- Returns
- description of this content item
|
inherited |
|
inherited |
Get the embedCode for this content item.
- Returns
- embedCode of this content item
|
staticinherited |
|
inherited |
Get the externalId for this content item.
- Returns
- externalId of this content item
|
inherited |
- Returns
- the offline video folder.
|
inherited |
Returns a URL that video is hosted at for this content item.
- Returns
- the url
|
inherited |
Implements com.ooyala.android.util.OrderedMapValue< K >.
|
inherited |
Get the language code for a user friendly language.
- Returns
- a language code if found in this video closed captions
|
inherited |
Get the available in manifest closed captions languages.
- Returns
- a set with the in manifest available closed captions languages or an empty set
|
inherited |
Get the available in manifest closed captions languages codes.
- Returns
- a set with the in manifest available closed captions languages codes or an empty set
|
inherited |
|
inherited |
Get the all_ads JSONArray in the metadata for this content item.
- Returns
- all_ads JSONArray in the metadata for this content item
|
inherited |
Get the inner metadata JSONObject for this content item.
- Returns
- inner metadata JSONObject for this content item
|
inherited |
|
inherited |
|
inherited |
Returns a promo image URL for this content item that will be at least the specified dimensions.
- Parameters
-
width height
- Returns
- the image url
|
inherited |
Get SSAI metadata associated with the Content Item.
- Returns
- SSAI metadata
|
inherited |
|
inherited |
Implements com.ooyala.android.item.PlayableItem.
|
inherited |
Get the title for this content item.
- Returns
- title of this content item
|
inherited |
- Returns
- possibly null.
|
inherited |
|
inherited |
Returns whether this movie has ads.
- Returns
- isAd
|
inherited |
|
inherited |
|
inherited |
Does this content item have VR content.
- Returns
- hasVRContent of this content item
|
inherited |
|
inherited |
Whether or not this AuthorizableItem is authorized.
- Returns
- true if authorized, false if not
Implements com.ooyala.android.item.AuthorizableItem.
|
inherited |
|
inherited |
Implements com.ooyala.android.item.AuthorizableItem.
|
inherited |
|
inherited |
|
inherited |
Check if SSAI is enabled for this VOD or live video.
- Returns
- true if SSAI is enabled for this video
|
inherited |
If there is more than one language code in manifest, use the manifest languages If there is only one language code in manifest and is Unknown, check for content tree If the previous conditions were not met and there are CC in content tree, use content tree.
- Returns
- a set with the language codes to display
|
inherited |
If there is more than one language name in manifest, use the manifest languages If there is only one language name in manifest and is Unknown, check for content tree If the previous conditions were not met and there are CC in content tree, use content tree.
- Returns
- a set with the language names to display
|
protectedinherited |
If there is more than one language in manifest, use the manifest languages If there is only one language in manifest and is Unknown, check for content tree If the previous conditions were not met and there are CC in content tree, use content tree.
- Parameters
-
manifestLanguages set containing the manifest language names or language codes contentTreeLanguages set containing the content tree language names or language codes
- Returns
- a set with the languages to display
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Provides possibility to change settings of video.
- Parameters
-
asset contains settings for video
|
inherited |
|
inherited |
Set the available in manifest closed captions languages.
- Parameters
-
manifestCCs contains the available in manifest closed captions
|
inherited |
|
inherited |
Update the AuthorizableItem using the specified data.
- Parameters
-
data the data to use to update this AuthorizableItem
- Returns
- a ReturnState based on if the data matched or not (or parsing failed)
Implements com.ooyala.android.item.AuthorizableItem.
|
inherited |
Member Data Documentation
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
staticinherited |
|
protectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
protectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
inherited |
|
staticprotectedinherited |
|
protectedinherited |