Class Catalog
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
AbstractOfflineCatalog
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Catalog.AbstractBuilder<T extends Catalog.AbstractBuilder<T>>
An abstract Builder which sets the bases to create the Catalog object.static class
The Builder to create the Catalog object. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
protected static Catalog
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Constructor Summary
ModifierConstructorDescriptionprotected
Catalog
(Catalog.AbstractBuilder<?> builder) The Catalog constructor using theCatalog.AbstractBuilder
Catalog
(EventEmitter eventEmitter, String account, String policy) Deprecated.Catalog
(EventEmitter eventEmitter, String account, String policy, String baseURL) Deprecated.Please useCatalog.Builder
to create the Catalog. -
Method Summary
Modifier and TypeMethodDescriptionstatic Catalog
empty()
void
findPlaylistByID
(String playlistID, PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its playlist ID.void
findPlaylistByID
(String playlistID, HttpRequestConfig httpRequestConfig, PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its playlist ID.void
findPlaylistByID
(String playlistID, Map<String, String> headers, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByID(String, HttpRequestConfig, PlaylistListener)
instead.void
findPlaylistByID
(String playlistID, Map<String, String> headers, Map<String, String> queryParameters, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByID(String, HttpRequestConfig, PlaylistListener)
instead.void
findPlaylistByReferenceID
(String referenceID, PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its reference ID, a customer supplied unique identifier.void
findPlaylistByReferenceID
(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
(String referenceID, Map<String, String> headers, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener)
instead.void
findPlaylistByReferenceID
(String referenceID, Map<String, String> headers, Map<String, String> queryParameters, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener)
instead.void
findVideoByID
(String videoID, VideoListener videoListener) Retrieves a Video from the Playback API service by its video ID.void
findVideoByID
(String videoID, HttpRequestConfig httpRequestConfig, VideoListener videoListener) Retrieves a Video from the Playback API service by its video ID.void
findVideoByID
(String videoID, Map<String, String> headers, VideoListener videoListener) Deprecated.Please usefindVideoByID(String, HttpRequestConfig, VideoListener)
instead.void
findVideoByID
(String videoID, Map<String, String> headers, Map<String, String> queryParameters, VideoListener videoListener) Deprecated.Please usefindVideoByID(String, HttpRequestConfig, VideoListener)
instead.void
findVideoByReferenceID
(String referenceID, VideoListener videoListener) Retrieves a Video from the Playback API service by its reference ID, a customer supplied unique identifier.void
findVideoByReferenceID
(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
(String referenceID, Map<String, String> headers, VideoListener videoListener) Deprecated.Please usefindVideoByReferenceID(String, HttpRequestConfig, VideoListener)
instead.void
findVideoByReferenceID
(String referenceID, Map<String, String> headers, Map<String, String> queryParameters, VideoListener videoListener) Deprecated.Please usefindVideoByReferenceID(String, HttpRequestConfig, VideoListener)
instead.static Catalog
Get the Map of properties for this Offline CatalogMethods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Field Details
-
DEFAULT_EDGE_BASE_URL
- See Also:
-
DEFAULT_EPA_BASE_URL
- See Also:
-
INSTANCE
-
-
Constructor Details
-
Catalog
@Deprecated public Catalog(@NonNull EventEmitter eventEmitter, @NonNull String account, @NonNull String policy) Deprecated.Please useCatalog.Builder
to create the Catalog. -
Catalog
@Deprecated public Catalog(@NonNull EventEmitter eventEmitter, @NonNull String account, @NonNull String policy, @NonNull String baseURL) Deprecated.Please useCatalog.Builder
to create the Catalog. -
Catalog
The Catalog constructor using theCatalog.AbstractBuilder
-
-
Method Details
-
getInstance
-
empty
-
findPlaylistByID
public void findPlaylistByID(@NonNull String playlistID, @NonNull HttpRequestConfig httpRequestConfig, @NonNull PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its playlist ID.If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder.setBrightcoveAuthorizationToken(String)
. This token will be configured when creating theVideo
object, and it will be used when requesting the Video license.- Parameters:
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.
-
findPlaylistByID
public void findPlaylistByID(@NonNull String playlistID, @NonNull PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its playlist ID.- Parameters:
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.
-
findPlaylistByID
@Deprecated public void findPlaylistByID(@NonNull String playlistID, @Nullable Map<String, String> headers, @NonNull PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByID(String, HttpRequestConfig, PlaylistListener)
instead. -
findPlaylistByID
@Deprecated public void findPlaylistByID(@NonNull String playlistID, @Nullable Map<String, String> headers, @Nullable Map<String, String> queryParameters, @NonNull PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByID(String, HttpRequestConfig, PlaylistListener)
instead. -
findPlaylistByReferenceID
public void findPlaylistByReferenceID(@NonNull String referenceID, @NonNull HttpRequestConfig httpRequestConfig, @NonNull PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its reference ID, a customer supplied unique identifier.If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder.setBrightcoveAuthorizationToken(String)
. This token will be configured when creating theVideo
object, and it will be used when requesting the Video license.- Parameters:
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.
-
findPlaylistByReferenceID
public void findPlaylistByReferenceID(@NonNull String referenceID, @NonNull PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its reference ID, a customer supplied unique identifier.- Parameters:
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.
-
findPlaylistByReferenceID
@Deprecated public void findPlaylistByReferenceID(@NonNull String referenceID, @Nullable Map<String, String> headers, @NonNull PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener)
instead. -
findPlaylistByReferenceID
@Deprecated public void findPlaylistByReferenceID(@NonNull String referenceID, @Nullable Map<String, String> headers, @Nullable Map<String, String> queryParameters, @NonNull PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener)
instead. -
findVideoByID
public void findVideoByID(@NonNull String videoID, @NonNull HttpRequestConfig httpRequestConfig, @NonNull VideoListener videoListener) Retrieves a Video from the Playback API service by its video ID.If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder.setBrightcoveAuthorizationToken(String)
. This token will be configured when creating theVideo
object, and it will be used when requesting the Video license.- Parameters:
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.
-
findVideoByID
Retrieves a Video from the Playback API service by its video ID.- Parameters:
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.
-
findVideoByID
@Deprecated public void findVideoByID(@NonNull String videoID, @Nullable Map<String, String> headers, @NonNull VideoListener videoListener) Deprecated.Please usefindVideoByID(String, HttpRequestConfig, VideoListener)
instead. -
findVideoByID
@Deprecated public void findVideoByID(@NonNull String videoID, @Nullable Map<String, String> headers, @Nullable Map<String, String> queryParameters, @NonNull VideoListener videoListener) Deprecated.Please usefindVideoByID(String, HttpRequestConfig, VideoListener)
instead. -
findVideoByReferenceID
public void findVideoByReferenceID(@NonNull String referenceID, @NonNull HttpRequestConfig httpRequestConfig, @NonNull VideoListener videoListener) Retrieves a Video from the Playback API service by its reference ID, a customer supplied unique identifier.If your VideoCloud configuration requires a Brightcove Authorization token, provide it using
HttpRequestConfig.Builder.setBrightcoveAuthorizationToken(String)
. This token will be configured when creating theVideo
object, and it will be used when requesting the Video license.- Parameters:
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.
-
findVideoByReferenceID
public void findVideoByReferenceID(@NonNull String referenceID, @NonNull VideoListener videoListener) Retrieves a Video from the Playback API service by its reference ID, a customer supplied unique identifier.- Parameters:
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.
-
findVideoByReferenceID
@Deprecated public void findVideoByReferenceID(@NonNull String referenceID, @Nullable Map<String, String> headers, @NonNull VideoListener videoListener) Deprecated.Please usefindVideoByReferenceID(String, HttpRequestConfig, VideoListener)
instead. -
findVideoByReferenceID
@Deprecated public void findVideoByReferenceID(@NonNull String referenceID, @Nullable Map<String, String> headers, @Nullable Map<String, String> queryParameters, @NonNull VideoListener videoListener) Deprecated.Please usefindVideoByReferenceID(String, HttpRequestConfig, VideoListener)
instead. -
getProperties
Get the Map of properties for this Offline Catalog- Returns:
- The map of optional properties
-
Catalog.Builder
to create the Catalog.