I was trying to use flutter video_player and it’s not playing or loading. One of the reasons where the url.
My url of the video from the network contained empty spaces, looks like video_player does not recognize this kind of link.
There should not be any empty space in url like below
You may replace space with _ (underscore). It shoud be working.
you may also use https link and see what’s the issue. If it’s because https then use https link for video url.
In general video player only works with https link.
Make sure that you change your url.
iOS settings
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Android settings
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">10.0.2.2:8000</domain>
</domain-config>
</network-security-config>