This document provides the detail on how to download it in your unreal engine pixel streaming app. Before following the guide make sure you have enabled the Pixel Streaming Plugin and you have added the pixel streaming input component to your player controller or any other blueprint actor.
How to download the screenshot from Pixel Streaming App:
In order to do this, create a custom event and make an Input parameter of type “String”. It can be done by clicking the plus button in custom event details.
Now select string parameter type.
Note: You need to give the path of the screenshot you want to download to this string parameter.
Now drag the path parameter and search “Convert to absolute path” and get it.
Now take the return value from Convert to absolute path node and get append node by right clicking and searching.
Now make sure you have three inputs for append node. In the “A” input of the append node, put the following command:
{“cmd”:”downloadLocalFileOnUserDevice”,”fileToDownload”:”
This command will be parsed through the Eagle 3D Streaming system, and it will tell the system to download the file in the given path. Similarly, in the “C” input of the append node, put the following command:
“}
So, it would look like this:
Now that it is done, you need to get the reference to pixel streaming input component. For this documentation the pixel streaming input component is added to the player controller and here is how you can get it:
Get player controller and from the return value of player controller get component by class node and search “Pixel streamer input component”.
Now for the final step, you need to drag the return value of “Get component by class” with pixel streamer input component selected, search “send pixel streaming response” and get it.
Now connect the return value of append node to the Descriptor of “Send Pixel Streaming Response” node.
You can also add a node called “File Exists” with a branch node to make sure you are downloading a valid file.
(we will add a sample code here to show how file exit node can be used)
This will download the screenshot that you will give path to. If you want to know how to get the path of latest screenshot, please refer to the document below.
How to Capture a Screenshot in Unreal Engine and Get Its File Path and Name.
In case you need to look into the source code of this project, Here’s a link of the repository:
Bitbucket
Here’s a link in case you want to try it.
ScreenShot_Demo
Here’s a Video how you can do it in the Eagle 3D Streaming feature template project.
Need help? Contact Support
if you still need help, contact Eagle 3D Streaming 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.