initialize static method

Future<BitmovinCastManager> initialize(
  1. {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: This should only be called when the Google Cast SDK is available in the application.

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;
}