flutter_macos_video_player icon indicating copy to clipboard operation
flutter_macos_video_player copied to clipboard

Infinite loader and black screen

Open JulienDev opened this issue 2 years ago • 11 comments

Hello, I'm using a M1 with video_player_macos: 1.0.6 and video_player: ^2.4.4 The player view remains black, with no sound and an infinite loader. I don't know how I can help because no error is displayed in the console and unfortunately I'm only swift developer. Let me know if you want me to test something.

I've created a small native macOS app to be sure that AVPlayer is able to play my video and it works successfully.

Julien

JulienDev avatar Sep 01 '22 18:09 JulienDev

Have you tried the view here? https://github.com/ollydixon/flutter_macos_video_player/issues/10

ollyde avatar Sep 02 '22 06:09 ollyde

Hi! Just tried your example with this URL, same result: https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

I see this error after like a minute : flutter: There was an issue loading the video player. flutter: PlatformException(VideoError, Failed to load video: The operation could not be completed, null, null)

JulienDev avatar Sep 02 '22 07:09 JulienDev

You're using different versions from the one described in the README, so I don't know.

ollyde avatar Sep 02 '22 07:09 ollyde

Humm, I don't think so, I'm using the pubspec configuration from the readme:

# For iOS and Android
better_player: ^0.0.83
# For Web 
video_player: ^2.4.4
chewie: ^1.3.3
# This library
video_player_macos: 1.0.6

JulienDev avatar Sep 02 '22 07:09 JulienDev

@JulienDev I'm not sure then, we've had no issues :-P

ollyde avatar Sep 02 '22 07:09 ollyde

Thank you for your answers :) Just tried on a non-M1 but got the same problem. I'll try to debug it in the coming weeks

JulienDev avatar Sep 02 '22 08:09 JulienDev

@JulienDev resolved?

srix55 avatar Nov 25 '22 14:11 srix55

Finally I'm not using it, but if I remember well it was working after I enabled incoming/outcoming connections for the Mac Os project

JulienDev avatar Nov 25 '22 14:11 JulienDev

@JulienDev Hello. Excuse me, which solution did you finally choose to play videos on Macos?

jiangchunyu avatar Mar 20 '23 08:03 jiangchunyu

@JulienDev Hello. Excuse me, which solution did you finally choose to play videos on Macos?

Hello, I'm now using https://github.com/alexmercerind/media_kit

JulienDev avatar Mar 20 '23 08:03 JulienDev

Thanks I also use this library

jiangchunyu avatar Mar 21 '23 01:03 jiangchunyu