admin 管理员组

文章数量: 1086019

Hello I'm using better player for hls video. It's working in android without any problem but in ios always getting error like PlatformException (PlatformException(VideoError, Failed to load video: Cannot Open, null, null)). And url is not contain .m3u8 how can I solve it. This is my code

  Future<void> initPlayer() async {
try {
  controller = BetterPlayerController(
    BetterPlayerConfiguration(),
    betterPlayerDataSource: BetterPlayerDataSourcework(
      widget.url,
      headers: data,
      videoFormat: BetterPlayerVideoFormat.hls,
      notificationConfiguration: BetterPlayerNotificationConfiguration(),
    ),
  );
  setState(() {});
} catch (e) {
  log('Error initializing BetterPlayer: $e', name: 'BetterPlayer Init');
}

}

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)