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.
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
Returns true if there are cast devices nearby and available for casting.
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.