initialize static method
- BitmovinCastManagerOptions options = const BitmovinCastManagerOptions(),
Initialize BitmovinCastManager based on the provided BitmovinCastManagerOptions. This method needs to be called before Player creation to enable casting features. If no options are provided, the default options will be used.
IMPORTANT: On iOS and Android, this should only be called when the Google Cast SDK is available and linked in the application. For Web, loading the CAST SDK is handled automatically.
Implementation
static Future<BitmovinCastManager> initialize({
BitmovinCastManagerOptions options = const BitmovinCastManagerOptions(),
}) async {
final singleton = _singleton;
if (singleton != null) {
return singleton;
}
final instance = BitmovinCastManager._();
await instance._initialize(options);
return _singleton = instance;
}