Skip to content

Commit

Permalink
fix: Fix network URL parsing close #73
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Nov 24, 2023
1 parent 56c792c commit e75b7b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class _NetVideoPlayerState extends State<NetVideoPlayer> {
super.initState();
_currActiveIdx = widget.index;
if (widget.type == 'normal') {
_videoPlayerController =
VideoPlayerController.networkUrl(widget.videoList[_currActiveIdx]['url'], httpHeaders: widget.headers);
_videoPlayerController = VideoPlayerController.networkUrl(Uri.parse(widget.videoList[_currActiveIdx]['url']),
httpHeaders: widget.headers);
_chewieController = ChewieController(
videoPlayerController: _videoPlayerController,
aspectRatio: 16 / 9,
Expand Down

0 comments on commit e75b7b1

Please sign in to comment.