getPlayerConfig method

WatchPlayerConfig? getPlayerConfig()

Implementation

WatchPlayerConfig? getPlayerConfig() {
  final jsonMap = _playerConfigExp
      .firstMatch(root.getElementsByTagName('html').first.text)
      ?.group(1)
      ?.extractJson();
  if (jsonMap == null) {
    return null;
  }
  return WatchPlayerConfig(jsonMap);
}