abdelaziz-mahdy / flutter_meedu_videoplayer

Cross-Platform Video Player for flutter
https://abdelaziz-mahdy.github.io/flutter_meedu_videoplayer/
MIT License
132 stars 69 forks source link

M3u8 with qualities in Ios can't play .show 'Failed to load video: The operation could not be completed' #100

Closed mayhninkyidkmads closed 1 year ago

abdelaziz-mahdy commented 1 year ago

Please provide full logs in the issue not the title, and a url to test on

mayhninkyidkmads commented 1 year ago

url is example of M3u8 with qualities

viber_image_2023-05-30_17-02-58-779

abdelaziz-mahdy commented 1 year ago

Can you share app logs?

mayhninkyidkmads commented 1 year ago

flutter: PlatformException(VideoError, Failed to load video: The operation could not be completed, null, null) flutter: flutter: Fit is BoxFit.fill

abdelaziz-mahdy commented 1 year ago

And the url you are testing is the default one right?

Can you try it with media_kit enabled?

abdelaziz-mahdy commented 1 year ago

Right now I am busy, I can't test it I will try to test it whenever I have time

mayhninkyidkmads commented 1 year ago

I understand. Thank you for replying me. I'll also try my issue.

abdelaziz-mahdy commented 1 year ago

use media_kit for ios since video_player doesnt seem to support m3u8 on ios.

follow these steps

iOS (replace original video_player with media_kit one)

  1. The minimum supported iOS version is 13.0, so the target needs to be set IPHONEOS_DEPLOYMENT_TARGET to 13.0 in ios\Runner.xcodeproj\project.pbxproj
  2. Just add this package in case you set iosUseMediaKit to true in initMeeduPlayer
    dependencies:
    ...
    media_kit_libs_ios_video: ^1.0.4         # iOS package for video (& audio) native libraries.