1. How to update your plug-in to match the UE version you want
The plug-ins we download online are usually UE4 version plug-ins. At this time, we need to modify and compile them ourselves. Next, we will teach you how to modify the plug-ins to adapt to your own engine.
If you don’t want to compile the code yourself, you can directly ask me to get the compiled plug-in source code of UE5.0, UE5.1, and UE5.2.
2. Create an illusory version of your own
Create a C++ project
Then create a Plugins folder
Download our plug-in. The 427 version of the plug-in downloaded here is as follows.
Link: https://pan.baidu.com/s/1lW9rDvIVNJ8H6UYjgs0S_gExtraction
code: q1n3
After downloading the plug-in, copy it to the Plugins folder we just created
After completion, right-click Generate Visual Studio project files and let C++ compile it.
This error will occur during compilation. Unknown platform Win32 does not know the name of the platform error. This is because UE5 cancels the Win32-bit platform.
The solution is to block the Win32 bit related code
Find the location of VlcMediaFactor.build.cs of this plug-in and open this code
Comment out the Win32 code
Find the VlcMediaBuilds.cs of this plug-in and open the code
Comment out this code
Find the plug-in VlcMedia.uplugin,
Right-click to open and change EngineVersion to version 5.0.0, so that when you open it, you will not be prompted for version inconsistencies.
Then right-click the project Generate Visual Studio project files to regenerate C++
After the generation is successful, double-click to open the project and start UE5.
3. Start creating a blueprint to play surveillance videos, live video broadcasts, and online live broadcasts
Create a video stream Source. This allows you to choose to fill in the address of the video stream to play.
Windows choose our plug-in VlcMedia,
Create a MediaPlayer to play our video stream
When creating, we need to check the texture so that we can create a texture material and paste it on the subsequent model, so that the video stream can be played on our model.
Create map material
Drag the model into the scene and attach the material we just created
Open the streaming media file and fill in the streaming media address you want to play here.
Open MediaPlayer, double-click the streaming media to see the played video. Make sure that your streaming media is correct and playable. Otherwise, it cannot be played. The default is to open the video.
Finally, it can be played in our scene