jakky1 / video_player_win

Flutter video player for Windows, lightweight, using Windows built-in Media Foundation API. Windows implementation of the video_player plugin.
BSD 3-Clause "New" or "Revised" License
35 stars 11 forks source link

Install .exe as a release, open app video_player_win_plugin.dll required. #46

Closed njzimpli closed 2 hours ago

njzimpli commented 2 hours ago

I'm working on video_player_win, it worked fine on debug and can play video in windows but when i build .exe and install as a release version and open app, there is prompt error video_player_win_plugin.dll required.

error2

Video player info:

Flutter version: 3.24.4 │ stable Dart: 3.5.4

Windows:

njzimpli commented 2 hours ago

There are video_player_win_plugin.dll in path: $project-path\build\windows\x64\plugins\video_player_win\Release\video_player_win_plugin.dll

Which file already being copied to .\build\windows\x64\runner\Release\

I think, it was my mistake about building .exe configuration. I'm investigating.

njzimpli commented 2 hours ago

In the Inno Setup Script (.iss)

Added this command to your installer .iss script. Source: "..\..\build\windows\x64\runner\Release\video_player_win_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion

Solved it.