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
Nested ClassesModifier and TypeClassDescriptionprotected static classCatalog.AbstractBuilder<T extends Catalog.AbstractBuilder<T>>An abstract Builder which sets the bases to create the Catalog object.static classThe Builder to create the Catalog object. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected static CatalogFields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCatalog(Catalog.AbstractBuilder<?> builder) The Catalog constructor using theCatalog.AbstractBuilderCatalog(EventEmitter eventEmitter, String account, String policy) Deprecated.Catalog(EventEmitter eventEmitter, String account, String policy, String baseURL) Deprecated.Please useCatalog.Builderto create the Catalog. -
Method Summary
Modifier and TypeMethodDescriptionstatic Catalogempty()voidfindPlaylistByID(String playlistID, PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its playlist ID.voidfindPlaylistByID(String playlistID, HttpRequestConfig httpRequestConfig, PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its playlist ID.voidfindPlaylistByID(String playlistID, Map<String, String> headers, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByID(String, HttpRequestConfig, PlaylistListener)instead.voidfindPlaylistByID(String playlistID, Map<String, String> headers, Map<String, String> queryParameters, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByID(String, HttpRequestConfig, PlaylistListener)instead.voidfindPlaylistByReferenceID(String referenceID, PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its reference ID, a customer supplied unique identifier.voidfindPlaylistByReferenceID(String referenceID, HttpRequestConfig httpRequestConfig, PlaylistListener playlistListener) Retrieves a Playlist from the Playback API service by its reference ID, a customer supplied unique identifier.voidfindPlaylistByReferenceID(String referenceID, Map<String, String> headers, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener)instead.voidfindPlaylistByReferenceID(String referenceID, Map<String, String> headers, Map<String, String> queryParameters, PlaylistListener playlistListener) Deprecated.Please usefindPlaylistByReferenceID(String, HttpRequestConfig, PlaylistListener)instead.voidfindVideoByID(String videoID, VideoListener videoListener) Retrieves a Video from the Playback API service by its video ID.voidfindVideoByID(String videoID, HttpRequestConfig httpRequestConfig, VideoListener videoListener) Retrieves a Video from the Playback API service by its video ID.voidfindVideoByID(String videoID, Map<String, String> headers, VideoListener videoListener) Deprecated.Please usefindVideoByID(String, HttpRequestConfig, VideoListener)instead.voidfindVideoByID(String videoID, Map<String, String> headers, Map<String, String> queryParameters, VideoListener videoListener) Deprecated.Please usefindVideoByID(String, HttpRequestConfig, VideoListener)instead.voidfindVideoByReferenceID(String referenceID, VideoListener videoListener) Retrieves a Video from the Playback API service by its reference ID, a customer supplied unique identifier.voidfindVideoByReferenceID(String referenceID, HttpRequestConfig httpRequestConfig, VideoListener videoListener) Retrieves a Video from the Playback API service by its reference ID, a customer supplied unique identifier.voidfindVideoByReferenceID(String referenceID, Map<String, String> headers, VideoListener videoListener) Deprecated.Please usefindVideoByReferenceID(String, HttpRequestConfig, VideoListener)instead.voidfindVideoByReferenceID(String referenceID, Map<String, String> headers, Map<String, String> queryParameters, VideoListener videoListener) Deprecated.Please usefindVideoByReferenceID(String, HttpRequestConfig, VideoListener)instead.static CatalogGet 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.Builderto create the Catalog. -
Catalog
@Deprecated public Catalog(@NonNull EventEmitter eventEmitter, @NonNull String account, @NonNull String policy, @NonNull String baseURL) Deprecated.Please useCatalog.Builderto 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 theVideoobject, 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 theVideoobject, 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 theVideoobject, 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 theVideoobject, 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.Builderto create the Catalog.