THEOplayerViewControllerWeb constructor

THEOplayerViewControllerWeb(
  1. int id,
  2. HTMLElement _playerWrapperDiv,
  3. THEOplayerConfig theoPlayerConfig
)

Implementation

THEOplayerViewControllerWeb(int id, this._playerWrapperDiv, THEOplayerConfig theoPlayerConfig) : super(id) {
  _channelSuffix = id.toString();
  var webTheoliveConfig;
  var theoliveConfig = theoPlayerConfig.theoLive;
  if (theoliveConfig != null) {
    webTheoliveConfig = TheoLiveConfig(
        externalSessionId: theoliveConfig.externalSessionId,
        fallbackEnabled: theoliveConfig.fallbackEnabled,
    );
  }
  _theoPlayerJS = THEOplayerJS(
      _playerWrapperDiv,
      THEOplayerConfigParams(
        license: theoPlayerConfig.license,
        licenseUrl: theoPlayerConfig.licenseUrl,
        theoLive: webTheoliveConfig,
      ));
  _eventForwarder = PlayerEventForwarderWeb(_theoPlayerJS);
  _tracksController = THEOplayerTrackControllerWeb(_theoPlayerJS);
  if (_theoPlayerJS.theoLive != null) {
    _theoliveController = THEOliveControllerWeb(_theoPlayerJS.theoLive!);
  }
}