@Emits(events={"error","account","videoDownloadStarted","videoDownloadCompleted","videoDownloadCancelled","videoDownloadFailed"}) @ListensFor(events={}) public class Catalog extends AbstractComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_EDGE_BASE_URL |
eventEmitter, listenerTokens| Constructor and Description |
|---|
Catalog(EventEmitter eventEmitter,
java.lang.String account,
java.lang.String policy) |
Catalog(EventEmitter eventEmitter,
java.lang.String account,
java.lang.String policy,
java.lang.String baseURL) |
| Modifier and Type | Method and Description |
|---|---|
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)
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,
PlaylistListener playlistListener)
Retrieves a Playlist from the Playback API service by its playlist ID.
|
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,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
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,
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,
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,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
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,
VideoListener videoListener)
Retrieves a Video from the Playback API service by its video ID.
|
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,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryParameters,
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,
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,
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 Catalog(EventEmitter eventEmitter, java.lang.String account, java.lang.String policy)
public Catalog(EventEmitter eventEmitter, java.lang.String account, java.lang.String policy, java.lang.String baseURL)
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.public void findPlaylistByID(@NonNull
java.lang.String playlistID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
PlaylistListener playlistListener)
playlistID - string containing the ID of the playlist to find.headers - An optional Map of key-value pairs for the Playback API request headers.playlistListener - A callback which will be invoked when the request finishes or an error occurs.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)
playlistID - string containing the ID of the playlist to find.headers - An optional Map of key-value pairs for the Playback API request headers.queryParameters - An optional Map of key-value pairs for the Playback API request query parameters.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.public void findPlaylistByReferenceID(@NonNull
java.lang.String referenceID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
PlaylistListener playlistListener)
referenceID - string containing the reference ID of the playlist to find.headers - An optional Map of key-value pairs for the Playback API request headers.playlistListener - A callback which will be invoked when the request finishes or an error occurs.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)
referenceID - string containing the reference ID of the playlist to find.headers - An optional Map of key-value pairs for the Playback API request headers.queryParameters - An optional Map of key-value pairs for the Playback API request query parameters.playlistListener - 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.public void findVideoByID(@NonNull
java.lang.String videoID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
VideoListener videoListener)
videoID - string containing the ID of the video to find.headers - An optional Map of key-value pairs for the Playback API request headers.videoListener - A callback which will be invoked when the request finishes or an error occurs.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)
videoID - string containing the ID of the video to find.headers - An optional Map of key-value pairs for the Playback API request headers.queryParameters - An optional Map of key-value pairs for the Playback API request query parameters.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.public void findVideoByReferenceID(@NonNull
java.lang.String referenceID,
@Nullable
java.util.Map<java.lang.String,java.lang.String> headers,
@NonNull
VideoListener videoListener)
referenceID - string containing the reference ID of the video to find.headers - An optional Map of key-value pairs for the Playback API request headers.videoListener - A callback which will be invoked when the request finishes or an error occurs.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)
referenceID - string containing the reference ID of the video to find.headers - An optional Map of key-value pairs for the Playback API request headers.queryParameters - An optional Map of key-value pairs for the Playback API request query parameters.videoListener - A callback which will be invoked when the request finishes or an error occurs.