admin管理员组文章数量:1130349
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');
}
}
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');
}
}
本文标签:
版权声明:本文标题:ios - PlatformException (PlatformException(VideoError, Failed to load video: Cannot Open, null, null)) Better Player - Stack Ove 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1742363938a1951608.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论