Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example with the default video not working in iOS #12

Closed
michelesandroni opened this issue Apr 2, 2023 · 3 comments
Closed

Example with the default video not working in iOS #12

michelesandroni opened this issue Apr 2, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@michelesandroni
Copy link

Describe the bug
The example works fine using the Android emulator.
The iOS Simulator throws a generic error
"PlatformException (PlatformException(VideoError, Failed to load video: Operation Stopped, null, null))"
when trying to load the default video
"https://www.fluttercampus.com/video.mp4"
but not when using the following video
"https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4"
or the other 1 minute sample (https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4).

The Simulator image is "iPhone 14 Pro Max".

To Reproduce

  1. Simply open the example on MacOs and built to the iOS Simulator
  2. See error
    "PlatformException (PlatformException(VideoError, Failed to load video: Operation Stopped, null, null))"

Expected behavior
No errors, just like on Android.

Platform (please complete the following information):
render: ^0.1.2
video_player: ^2.5.2

Moving to the latest version of video_player 2.6.0 doesn't solve the problem.

@michelesandroni michelesandroni added the bug Something isn't working label Apr 2, 2023
@polarby
Copy link
Owner

polarby commented May 12, 2023

This seems to be a VideoPlayerrelated problem, no? Are you suggesting changing the example video URL, as it may contain an unreadable format for ios?

@michelesandroni
Copy link
Author

I think that's the issue, an unreadable format for iOS.
The other video works.

Unrelated: could you please reopen Issue #11 ?
The proposed solution / workaround does not work ... I've also posted repro steps.

@polarby
Copy link
Owner

polarby commented May 12, 2023

Updated with 29ec060, pub.dev update on next release. Thanks for pointing that out!

@polarby polarby closed this as completed May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants