Issue
Flutter plugin "video_player" works fine on android but when testing on iOS it throws the following exception:
PS: I have tested the app on iPhone XS Max and iPhone 11 Pro Max (real devices)
Also, I have tried different video formats like (mp4, flv, webm) and nothing works
I looked through all the issues opened in the video_player plugin and none had this exception.
Flutter Version: 1.12.13+hotfix.9 Dart Version: 2.7.2
Any help would be appreciated. Thanks in advance
Solution
The problem was in the API returning videoes links, it seems like on iOS it needs a header to specify the range of the bytes to be sent. by adding this header the videos worked as expected.
Answered By - omar hatem
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.