ue4plugins / VlcMedia

Media Framework plug-in using the Video LAN Codec (libvlc).
BSD 3-Clause "New" or "Revised" License
267 stars 145 forks source link

Vlc Plugin Doesn't work in packaged project #28

Closed thesissrl closed 8 years ago

thesissrl commented 8 years ago

Hi, I tried to package (shipping win64) a project with vlc plugin enabled. In the editor everithing works fine but when I package the progect and execute the exe file of the project the vlc pluging doesn't work anymore. No error is detected but the videos aren't showing. How can i solve the problem?

Deams51 commented 8 years ago

Hey :) Same here while packaging for Win64 Development (win10, UE4.13). In the logs, concerning VLC there seems to be only one issue: [2016.11.17-14.47.04:129][ 0]LogVlcMedia:Warning: Failed to create VLC instance ((null))

thesissrl commented 8 years ago

Hi! Same behaviour for me: First: 1. LogPluginManager: Loaded Plugin VlcMedia, From C:/Users/domen/Desktop/360/WindowsNoEditor/Engine/Plugins/Media/VlcMedia-4.14/VlcMedia.uplugin

But Then: [2016.11.17-15.18.58:289][ 0]LogVlcMedia:Warning: Failed to create VLC instance ((null))

Hope that someone could help!

Deams51 commented 8 years ago

Alright seems the issue is due to the vlc "plugins" folder not being copied during packaging in the VLC plugin folder. Doing it manually allows the warning to disappear and Vlc to be created. Might be unrelated, but it seems that even by setting the player name like this: MediaPlayer->DesiredPlayerName = TEXT("VlcMedia"); UE is using the Wmf player in the packaged game while using Vlc in editor.

thesissrl commented 8 years ago

Ok Thanks, Manually copying the VlcMedia files in Plugins folder of packaged game solves the problem!