-
Notifications
You must be signed in to change notification settings - Fork 16
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
Failed to load video: The operation could not be completed #10
Comments
Hey, here is an example of our MacOS video view. Please let me know if this helps, I need to update the docs.
|
@OllyDixon it hangs/stuck here: sample code:
|
@chenliang0571 it has to be an issue with how the assets are delivered. Can you try hosting the asset somewhere else? The example I've given seems to work for us :-/ |
it works for network now, turns out I didn't add network access in the relevant .entitlements files. I understand that |
my bad, |
Could you advise what location you are opening videos from and what entitlements have you added to the macos app? My files are under the
The macos video player controller code never returns from the
Oddly if I move file to @OllyDixon it would be great if you'd include a complete macos example project with your plugin implementation |
@ekuleshov hey I've been away for a few weeks. I'm mainly using this for HTTPs links. |
@OllyDixon right. It works for http and some shared dirs like "Downloads" once the app has corresponding permissions. But it does not work (with no error or anything) for the app's own internal data folder like I'd appreciate any ideas how to debug this. |
@ekuleshov I think on MacOS you need to request access to other directories which is out of the scope of this library. |
@OllyDixon I'd agree with that if the folder wasn't the app-owned data folder. Besides, the app can successfully write and read files from that folder. Just the video player doesn't work when file is given from that same location. |
for both network and file:
VideoPlayerController.network('https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'...
VideoPlayerController.file(File('/tmp/Butterfly-209.mp4'))
sample: https://github.com/chenliang0571/video_player/tree/master/video_player/example
The text was updated successfully, but these errors were encountered: