BitmovinCastManager
Singleton providing access to GoogleCast related features. The BitmovinCastManager needs to be initialized in the Application, if casting should be used.
Note: Make sure to call updateContext on every Activitys switch. On devices where casting is unavailable, Cast operations are no-ops and return false when applicable.
Functions
Link copied to clipboard
Adds a MessageReceivedCallback to the BitmovinCastManager.
Link copied to clipboard
Disconnects from the current cast session.
Link copied to clipboard
Returns the class of the expanded controller activity, used at initialization.
Link copied to clipboard
open fun initialize(@Nullable applicationId: String, messageNamespace: String, castControllerActivity: Class)
Initializes the BitmovinCastManager.
Link copied to clipboard
Indicates whether Google Cast has been initialized and is available.
Link copied to clipboard
Returns true if currently connected to a cast session.
Link copied to clipboard
Returns true if currently connecting to a cast session.
Link copied to clipboard
Link copied to clipboard
Removes a MessageReceivedCallback from the BitmovinCastManager.
Link copied to clipboard
Sends the given message to the cast receiver.
Sends the given message to the cast receiver on the provided messageNamespace.
Link copied to clipboard
Link copied to clipboard
Opens the cast dialog, for selecting and starting a cast session.
Link copied to clipboard
Must be called in every Activity to update the context.