Generate Download URL in the Unreal 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=9b033c68-0785-4908-9f10-846408bbe676)
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=9b033c68-0785-4908-9f10-846408bbe676)
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=9b033c68-0785-4908-9f10-846408bbe676)
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.