This plugin enable to play real time stream from Millicast in your Unreal Engine game. You can configure your credentials and configure your game logic using unreal object and then render the video in a texture2D.
You can install the plugin from the source code. Follow these steps :
git clone https://github.com/millicast/millicast-player-unreal-engine-plugin.git MillicastPlayer
It will prompt you, saying if you want to re-build MillicastPlayer plugin, say yes. You are now in the editor and can build your game using MillicastPlayer.
Note: After you package your game, it is possible that you will get an error when launching the game :
"Plugin MillicastPlayer could not be load because module MillicastPlayer has not been found"
And then the game fails to launch. That is because Unreal has excluded the plugin. If that is the case, create an empty C++ class in your project. This will force Unreal to include the plugin. Then, re-package the game, launch it, and it should be fixed.
If you want to run the plugin on Mac, or have H264 decoding support, you will need to use our webrtc library instead of the Unreal one. You need to add it directly into your project, in the plugin ThirdParty.
Download the ThirdParty.zip
file that you can find in the release assets of the latest github release.
Then, extract it and move the ThirdParty
folder into the Source
folder of the plugins.
After that, you should be able to build and run the plugin using our WebRTC library.
Installs needed for Android:
Java JDK
Install Android Studio
Open the Android Studio and go to More Actions dropdown
and select SDK Manager
go to SDK Tools Tab and mark checkboxes: 33.0.0, 32.0.0, 31.0.0, 30.0.3, 29.0.2
go to: C:\Path\to\Android\Sdk\build-tools (You have Android SDK Location path at the top of the settings)
go trough each folder and change file name d8
to dx
For UE less than 5.1: Android NDK r21d
For UE 5.1 and above: Android NDK r25b
After extraction, you will have to copy the ndk
folder path and set it in Unreal Engine Project Settings
JAVA_HOME
: C:\Program Files\Java\jdk1.8.0_202ANDROID_HOME
: C:\Path\to\Android\SdkANDROID_SDK_HOME
: C:\Path\to\Android\SdkNDK_ROOT
: C:\Path\To\Android\Sdk\ndk\android-ndk-r25bNDKROOT
: C:\Path\To\Android\Sdk\ndk\android-ndk-r25bNavigate to the Unreal Engine and open Project Settings, go to the Android SDK tab and set the paths.
C:/Path/To/Android/Sdk
C:/Path/To/Sdk/ndk/android-ndk-r25b
C:/Path/To/Java/jdk1.8.0_202/jre
matchndk
android-31
Next go to the Android tab inside Project Settings and set the following:
Press Configure
Now and Press Accept SDK button and if button greyed out that mean it accepted before.Auto
in the Destribution Signing you must have key.keystore
file and to make this file follow steps:
keytool -genkey -v -keystore key.keystore -alias Mykey -keyalg RSA -keysize 2048 -validity 10000
firstandlastname
orgunit
org
city
state
12345
for country codeyes
The Key will be now created, go to C:\Path\To\Java\jdk1.8.0_202\bin folder to get the file copy the key.keystore
file and paste it in ProjectRootFolder/Build/Android/
Back at the Project settings in the Unreal Engine editor inside Distribution Signing
:
Log into Developer Account you will have to create the Provisioning Profile
. Log into your account and go to Certificated, Identifiers & Profiles
, next create a new certificate and choose iOS Distribution
and click continue.
Now you will be required to provide the Certificate Signing Request
.
To do that on your Mac search for Keychain Access
and inside Certificate Assistant
select Create a Certificate For Someone Else as a Certificate Authority
.
Write out the information required and enable checkbox Saved to desk
.
Now back at the Apple site you can click Choose file
and select the certificate signing request that you just created, after that click continue.
On the next page click Download
. You will need to upload this to the Unreal Engine Project Settings.
Now go back to the main panel on the Developer account and select the Identifiers
Tab.
Add new Identifier, select App
, next give it a Description
and App ID Prefix
(You will need Description
and App ID Prefix
later in the Unreal Engine). After that click next and Register
Navigate to the Profiles
tab from the main page in the Developer account.
App Store
from the Distribution
section.App ID
we have just created, click continue.Certificate
that we created, click continue.Provisioning Profile
. Press the Generate
button and download it.Packaging
. Under Base Configuration
select Shipping.Provisioning Profile
Provisioning Profile
Bundle Display Name
Bundle Name
Bundle Identifier
with the one you created before your Bundle IdentifierFor the Plugin to work correctly you will also have to copy the certificate to your content folder.
Path/To/The/UnrealEngine/Engine/Content/Certificates/ThirdParty
and from there copy the cacert.pem
Path/To/YourProject/Content/
and create the directory Certificates
paste the cacert.pem
inside the folder.Additional Non-Assets Directories to Copy
and add the Certificates
directory to it.You can find the documentation for the plugin here: https://docs.millicast.com/docs/millicast-player-plugin