最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - PlatformException (PlatformException(VideoError, Failed to load video: Cannot Open, null, null)) Better Player - Stack Ove

programmeradmin0浏览0评论

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

}

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论