@Emits(events={"error","account","videoDownloadStarted","videoDownloadCompleted","videoDownloadCancelled","videoDownloadFailed"}) @ListensFor(events={}) public class Catalog extends AbstractComponent
Network requests such as those implemented by the Catalog class sometimes fail. If the request succeeds, the listener's onVideo() method will be invoked. If an error occurs during the execution of the request, the listener's onError() method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Catalog.AbstractBuilder<T extends Catalog.AbstractBuilder<T>>
An abstract Builder which sets the bases to create the Catalog object.
|
static class |
Catalog.Builder
The Builder to create the Catalog object.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_EDGE_BASE_URL |
static java.lang.String |
DEFAULT_EPA_BASE_URL |
eventEmitter, listenerTokens| Modifier | Constructor and Description |
|---|---|
protected |
Catalog(Catalog.AbstractBuilder<?> builder)
The Catalog constructor using the
Catalog.AbstractBuilder |
|
Catalog(EventEmitter eventEmitter,
java.lang.String account,
java.lang.String policy)
Deprecated.
Please use
Catalog.Builder to create the Catalog. |
|
Catalog(EventEmitter eventEmitter,
java.lang.String account,
java.lang.String policy,
java.lang.String baseURL)
Deprecated.
Please use
Catalog.Builder to create the Catalog. |
| Modifier and Type | Method and Description |
|---|---|
void |
findPlaylistByID(java.lang.String playlistID,
HttpRequestConfig httpRequestConfig,
PlaylistListener playlistListener)
Retrieves a Playlist from the Playback API service by its playlist ID.
|
void |
findPlaylistByID(java.lang.String playlistID,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
PlaylistListener playlistListener)
Deprecated.
Please use
findPlaylistByID(String, HttpRequestConfig, PlaylistListener) instead. |
void |
findPlaylistByID(java.lang.String playlistID,
java.util.Map<java.lang.String,java.lang.String> headers,
PlaylistListener playlistListener)
Deprecated.
Please use
findPlaylistByID(String, HttpRequestConfig, PlaylistListener) instead. |
void |
findPlaylistByID(java.lang.String playlistID,
PlaylistListener playlistListener)
Retrieves a Playlist from the Playback API service by its playlist ID.
|
void |
findPlaylistByReferenceID(java.lang.String referenceID,
HttpRequestConfig httpRequestConfig,
PlaylistListener playlistListener)
Retrieves a Playlist from the Playback API service by its reference ID, a customer supplied unique identifier.
|
void |
findPlaylistByReferenceID(java.lang.String referenceID,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
PlaylistListener playlistListener)
Deprecated.
Please use
findPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener) instead. |
void |
findPlaylistByReferenceID(java.lang.String referenceID,
java.util.Map<java.lang.String,java.lang.String> headers,
PlaylistListener playlistListener)
Deprecated.
Please use
findPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener) instead. |
void |
findPlaylistByReferenceID(java.lang.String referenceID,
PlaylistListener playlistListener)
Retrieves a Playlist from the Playback API service by its reference ID, a customer supplied unique identifier.
|
void |
findVideoByID(java.lang.String videoID,
HttpRequestConfig httpRequestConfig,
VideoListener videoListener)
Retrieves a Video from the Playback API service by its video ID.
|
void |
findVideoByID(java.lang.String videoID,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
VideoListener videoListener)
Deprecated.
Please use
findVideoByID(String, HttpRequestConfig, VideoListener) instead. |
void |
findVideoByID(java.lang.String videoID,
java.util.Map<java.lang.String,java.lang.String> headers,
VideoListener videoListener)
Deprecated.
Please use
findVideoByID(String, HttpRequestConfig, VideoListener) instead. |
void |
findVideoByID(java.lang.String videoID,
VideoListener videoListener)
Retrieves a Video from the Playback API service by its video ID.
|
void |
findVideoByReferenceID(java.lang.String referenceID,
HttpRequestConfig httpRequestConfig,
VideoListener videoListener)
Retrieves a Video from the Playback API service by its reference ID, a customer supplied unique identifier.
|
void |
findVideoByReferenceID(java.lang.String referenceID,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
VideoListener videoListener)
Deprecated.
Please use
findVideoByReferenceID(String, HttpRequestConfig, VideoListener) instead. |
void |
findVideoByReferenceID(java.lang.String referenceID,
java.util.Map<java.lang.String,java.lang.String> headers,
VideoListener videoListener)
Deprecated.
Please use
findVideoByReferenceID(String, HttpRequestConfig, VideoListener) instead. |
void |
findVideoByReferenceID(java.lang.String referenceID,
VideoListener videoListener)
Retrieves a Video from the Playback API service by its reference ID, a customer supplied unique identifier.
|
addListener, addOnceListener, getEventEmitter, removeListener, removeListenerspublic static final java.lang.String DEFAULT_EDGE_BASE_URL
public static final java.lang.String DEFAULT_EPA_BASE_URL
@Deprecated
public Catalog(@NonNull
EventEmitter eventEmitter,
@NonNull
java.lang.String account,
@NonNull
java.lang.String policy)
Catalog.Builder to create the Catalog.@Deprecated
public Catalog(@NonNull
EventEmitter eventEmitter,
@NonNull
java.lang.String account,
@NonNull
java.lang.String policy,
@NonNull
java.lang.String baseURL)
Catalog.Builder to create the Catalog.protected Catalog(Catalog.AbstractBuilder<?> builder)
Catalog.AbstractBuilderpublic void findPlaylistByID(@NonNull
java.lang.String playlistID,
@NonNull
HttpRequestConfig httpRequestConfig,
@NonNull
PlaylistListener playlistListener)
If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder#setBrightcoveAuthorizationToken(String). This token will be
configured when creating the Video object, and it will be used
when requesting the Video license.
playlistID - string containing the ID of the playlist to find.httpRequestConfig - a configuration class with values used in the request.playlistListener - A callback which will be invoked when the request finishes or an error occurs.public void findPlaylistByID(@NonNull
java.lang.String playlistID,
@NonNull
PlaylistListener playlistListener)
playlistID - string containing the ID of the playlist to find.playlistListener - A callback which will be invoked when the request finishes or an error occurs.@Deprecated
public void findPlaylistByID(@NonNull
java.lang.String playlistID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
PlaylistListener playlistListener)
findPlaylistByID(String, HttpRequestConfig, PlaylistListener) instead.@Deprecated
public void findPlaylistByID(@NonNull
java.lang.String playlistID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@Nullable
java.util.Map<java.lang.String,java.lang.String> queryParameters,
@NonNull
PlaylistListener playlistListener)
findPlaylistByID(String, HttpRequestConfig, PlaylistListener) instead.public void findPlaylistByReferenceID(@NonNull
java.lang.String referenceID,
@NonNull
HttpRequestConfig httpRequestConfig,
@NonNull
PlaylistListener playlistListener)
If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder#setBrightcoveAuthorizationToken(String). This token will be
configured when creating the Video object, and it will be used
when requesting the Video license.
referenceID - string containing the reference ID of the playlist to find.httpRequestConfig - a configuration class with values used in the request.playlistListener - A callback which will be invoked when the request finishes or an error occurs.public void findPlaylistByReferenceID(@NonNull
java.lang.String referenceID,
@NonNull
PlaylistListener playlistListener)
referenceID - string containing the reference ID of the playlist to find.playlistListener - A callback which will be invoked when the request finishes or an error occurs.@Deprecated
public void findPlaylistByReferenceID(@NonNull
java.lang.String referenceID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
PlaylistListener playlistListener)
findPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener) instead.@Deprecated
public void findPlaylistByReferenceID(@NonNull
java.lang.String referenceID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@Nullable
java.util.Map<java.lang.String,java.lang.String> queryParameters,
@NonNull
PlaylistListener playlistListener)
findPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener) instead.public void findVideoByID(@NonNull
java.lang.String videoID,
@NonNull
HttpRequestConfig httpRequestConfig,
@NonNull
VideoListener videoListener)
If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder#setBrightcoveAuthorizationToken(String). This token will be
configured when creating the Video object, and it will be used
when requesting the Video license.
videoID - string containing the ID of the video to find.httpRequestConfig - a configuration class with values used in the request.videoListener - A callback which will be invoked when the request finishes or an error occurs.public void findVideoByID(@NonNull
java.lang.String videoID,
@NonNull
VideoListener videoListener)
videoID - string containing the ID of the video to find.videoListener - A callback which will be invoked when the request finishes or an error occurs.@Deprecated
public void findVideoByID(@NonNull
java.lang.String videoID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
VideoListener videoListener)
findVideoByID(String, HttpRequestConfig, VideoListener) instead.@Deprecated
public void findVideoByID(@NonNull
java.lang.String videoID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@Nullable
java.util.Map<java.lang.String,java.lang.String> queryParameters,
@NonNull
VideoListener videoListener)
findVideoByID(String, HttpRequestConfig, VideoListener) instead.public void findVideoByReferenceID(@NonNull
java.lang.String referenceID,
@NonNull
HttpRequestConfig httpRequestConfig,
@NonNull
VideoListener videoListener)
If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder#setBrightcoveAuthorizationToken(String). This token will be
configured when creating the Video object, and it will be used
when requesting the Video license.
referenceID - string containing the reference ID of the video to find.httpRequestConfig - a configuration class with values used in the request.videoListener - A callback which will be invoked when the request finishes or an error occurs.public void findVideoByReferenceID(@NonNull
java.lang.String referenceID,
@NonNull
VideoListener videoListener)
referenceID - string containing the reference ID of the video to find.videoListener - A callback which will be invoked when the request finishes or an error occurs.@Deprecated
public void findVideoByReferenceID(@NonNull
java.lang.String referenceID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
VideoListener videoListener)
findVideoByReferenceID(String, HttpRequestConfig, VideoListener) instead.@Deprecated
public void findVideoByReferenceID(@NonNull
java.lang.String referenceID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@Nullable
java.util.Map<java.lang.String,java.lang.String> queryParameters,
@NonNull
VideoListener videoListener)
findVideoByReferenceID(String, HttpRequestConfig, VideoListener) instead.