THEOplayerViewControllerWeb constructor
THEOplayerViewControllerWeb(
- int id,
- HTMLElement _playerWrapperDiv,
- 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!);
}
}