Open moxil198 opened 2 weeks ago
Syncing files to device Windows... [log] flutter: video player file opened: id=2218161676096 [video_player_win] load fail, reload now [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
I placed entire example code. And the video is the bunny video which is available in video_player library
There is one more thing to add. In my olden project that is working fine in other laptops but even videos in older exe which works in other device is not working in my device so I feel that it might be due to codec so i installed k lite codec but even that is not working can you suggest what should be done and where's the issue?
@moxil198, since you said the same video file can be played in other laptops, but cannot play in your device, I have no idea how to fix it.
If this problem bothers you, please use other packages instead ... orz
@moxil198, since you said the same video file can be played in other laptops, but cannot play in your device, I have no idea how to fix it.
If this problem bothers you, please use other packages instead ... orz
Bro let me explain it in more detail:
I built an exe and installed it on another PC it works perfectly fine but when I try to run the same exe even after installing the K lite codec it is not playing the video.
Getting below details might help me:
So, with the same exe, and the same video file, it can be played in device A, but cannot be played with device B with K-lite codec installed, right ?
You should upload the video file here. I cannot know which codec this video file uses before I got the video file.
Performing hot restart... Syncing files to device Windows... Restarted application in 824ms. [video_player_win] load fail, reload now [log] flutter: video player file opened: id=2345614043808 [log] [video_player_win] playback event: error
Video link: https://drive.google.com/file/d/1bIFwjZCkoSSQW9ksWJRSAbBi-mJjMLMX/view?usp=sharing
The video file contains AVC (H.264) video
and AAC (audio)
.
Both are supported by K-lite codec pack.
It can be played in my PC with this package.
Maybe you can try the following steps:
AVC / H.264
if present.Mega
version instead.If it still not working, I have no idea how to fix it :(
I have same problem.
I installed K-lite codec Mega
Windows Media Player can play .mkv
file without problem.
if there were something wrong with K-lite codec pack i could not play video with Windows Media Player.
also i can play .mp4 files properly.
OS: Windows 10 X64
error message :
[log] flutter: video player file opened: id=3012009284576
[video_player_win] load fail, reload now
[log] [video_player_win] playback event: error
@mhkarami, I push a new branch, please try with the following dependency, and let me know if this helps. and post the logs even if it works.
dependencies:
video_player_win:
git:
url: https://github.com/jakky1/video_player_win.git
ref: test_no_reload_when_error #################### NOTEICE ~~~~~~~~~~~~~~~~~~~
@jakky1 new logs :
[log] flutter: video player file opened: id=2421225699824
[video_player_win] load fail, but not auto reload
[video_player_win] load fail, but not auto reload
.mp4 is ok but .mkv not . i test both local file and online video uri
// controller = VideoPlayerController.networkUrl(Uri.parse(uri));
controller = VideoPlayerController.network(uri);
// controller = VideoPlayerController.file(File(".......Carls.Date.2023.720p.WEB-DL.FilmKio.mkv"));
@mhkarami, I add some logs. Please try again and post the logs during execution.
The same branch, please remember to flutter pub get
again.
dependencies:
video_player_win:
git:
url: https://github.com/jakky1/video_player_win.git
ref: test_no_reload_when_error #################### NOTEICE ~~~~~~~~~~~~~~~~~~~
@jakky1 first i run
flutter clean
flutter pub get
errors :
[log] flutter: video player file opened: id=1870265986656
[video_player_win] load fail, but not auto reload
[video_player_win] load fail, but not auto reload
for both local and network uri
@mhkarami, Thanks for help.
Unfortunately, I have no idea how to fix it. I will try to re-implement with new API. Maybe take several weeks... orz
Please paste the error message, and upload the video file here that you try to play.