If you work with Flutter video_player plugin, you will see the below
We need to pass url as String to network() method. Here we see a crossed line through, which shows that this api is deprecated.
To solve this issue we need to use networkUrl() and Uri.parse() together.
So use networkUrl(Uri.parse(“stringUrl”));