How to generate Download URL in Unreal Pixel Streaming App
This document demonstrates how you can get the Download URL of your Local File from your Pixel Streaming Unreal App.
Before Using some of the features take a look at the document below covering how to send a pixel streaming command to E3DS System:
How to send a Pixel Streaming Response
Demo Video:
Blueprint Code:
In order to make this work, there is a pixel streaming command that the user needs to send.
{"cmd":"getDownloadUrlOfLocalFile","fileToDownload":" (Path to Local File with extension) "}
The Complete path Example will be something like:
{"cmd":"getDownloadUrlOfLocalFile","fileToDownload":"C:\Unreal\Content\image.png"}
For demonstration in this document this code is added to a widget blueprint and being executed on Event Construct:
![image-20240220-154015.png](../__attachments/321192145/image-20240220-154015.png?inst-v=27e98e0b-a7f8-4fea-87e8-8659c502a385)
Then the BindEventOnInputEvent, there will be a response message from the system which will contain the download URL. This response will be:
{"type":"takeDownloadUrlOfLocalFile","downloadURL":"(DownloadURL)","localFile":"(FilePathInLocal)"}
Here is how you can get the Download URL from it in Unreal:
![image-20240220-162144.png](../__attachments/321192145/image-20240220-162144.png?inst-v=27e98e0b-a7f8-4fea-87e8-8659c502a385)
You can open this URL by running another pixel stream command.
{"cmd":"lunchUrl","value":"(URL to Open)"}
![image-20240220-164642.png](../__attachments/321192145/image-20240220-164642.png?inst-v=27e98e0b-a7f8-4fea-87e8-8659c502a385)
More About Opening URLs can be found in this Document.
Need help? Contact Support
If you still need help, contact support to get your issue resolved quickly.
Submit a new request at E3DS support portal or send an Email at support@eagle3dstreaming.com.
Seek advice. Connect with others. Share your experiences. Join our lively Community Forum today.