ue4plugins / VlcMedia

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

Package Project development,Play with RTSP ,But not work #34

Closed beyond6699 closed 6 years ago

beyond6699 commented 7 years ago

In Editor mode is work,But when Package Project ,run the exe , It not work with black texture.How to Package Project ? unreal 14.3 windows 10

beyond6699 commented 7 years ago

In log There are two warnings : It not use VlcMedia to read rtsp:// [2017.06.29-12.01.54:238][ 11]LogWmfMedia:Warning: Failed to finish resolve rtsp://192.168.0.178:8554/1:

and

LogPluginManager:Warning: Plugin 'VlcMedia' exists at '../../../vlc_NC/Plugins/VlcMedia/VlcMedia.uplugin' and '../../../vlc_NC/Plugins/VlcMedia/VlcMedia.uplugin' - second location will be ignored
LogModuleManager:Warning: ModuleManager: Module 'XMPP' not found - its StaticallyLinkedModuleInitializers function is null.
gmpreussner commented 6 years ago

You forgot to set the desired player plug-in on your media source asset. UE4 will pick a suitable player automatically if not set. Since both VlcMedia and WmfMedia support RTSP streams, UE4 chose to play it with WmfMedia in your case. However, WMF may not support the actual data format in the stream, so the resolving of the media source seems to fail (i.e. it can't be opened).

Set VlcMedia on your media source asset as the default player and try again. If you are opening the RTSP stream using a URL string from code, then set the DesiredPlayerName property to "VlcMedia" on your MediaPlayer asset before opening the URL.

beyond6699 commented 6 years ago

I think I did set the VideoLAN Media Player (VLCMedia) on my media source asset, I just set Windows player,other platform players set to Auto, But when package project still the same problem,In Editor mode everthing is ok. Did I missing something else?

beyond6699 commented 6 years ago

I got a new Warning in package game.
LogVlcMedia:Warning: Failed to create VLC instance ((null))

gmpreussner commented 6 years ago

Ok, I know what's happening. There was actually a bug that prevented VlcMedia from working in packaged builds. It is fixed for 4.17. You will need these changes: https://github.com/ue4plugins/VlcMedia/commit/cf82a58b1fe433f793b16b9a31a715f7d6a3cab1

beyond6699 commented 6 years ago

OK,It‘s work! Thanks!