Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document is a tutorial of the feature ‘'Should Append Parameters from URL with existing one to override’'.

Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#F4F5F7

It is possible to append CMDLine CMD Line Arguments with existing ones. This can be used for authentication / token purposes.

Prepare to execute instructions

Info

For this document you need toshould :

  1. Access the Control Panel

.
  1. Enable the Pixel Streaming plugin Enable the Pixel Streaming plugin

  2. Package your Project

from Unreal Engine
  1. Package your Project from Unreal Engine

  • Upload at least one application on your Control PanelUpload your Unreal Engine Application

  • Check other features from Set Up Configurations on your Control Panel

  • Follow this tutorial Send Commands to your App from Parameters to Pass to App
    1. Upload your App Upload your App on your Control Panel

    2. Select an App from Step 1 in the Control Panel Select an App from your Control Panel

    3. Select/Create a Config Select/Create a Config from your Control Panel

    4. Apply these instructions firstPass Commands/Parameters to your App from your Control Panel

    • To complete this guide, your working environment must meet all the requirements above. If you have not completed any of the points, follow the link to the appropriate instruction and complete it first.

    Instructions

    Step 1. Prepare the setup

    Follow this tutorial first to follow along with the next steps Send Pass Commands/Parameters to your App from Parameters to Pass to Appyour Control Panel

    STEP 2. Enter -green in the text field of Parameters to Pass to App. Click Save

    Info

    Go to: Control Panel → Step 2: Config Selection → Edit → Developer Option → Parameters to Pass to App → Enter -green → Save.

    Step 3. Enable Should append parameters from URL with existing one to override. Click Save

    Info

    UE will receive the command during runtime. The color of the sphere should be green when you run the game.

    Step 3. Open the game. Run to the 12th bay

    Open the game to check the color of the sphere.

    Info

    Go to: Control Panel →Step 3: Generate URLs → Play App → Run to the 12th bay

    The color of the sphere changed to green.

    Step 4. Copy the App URL

    Info

    Go to : Control Panel → Step 3: Generate URLs → Copy App URL

    This is the URL you would get:

    https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo

    Step 5. Add additional command lines to the copied App URL

    Info

    Add '?exeLunchArgs=-[variable]' to the end of the URL.

    Info

    For example:

    Add '?exeLunchArgs=-blue' to the end of it like so :

    https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo?exeLunchArgs=-blue

    The system has now appended the additional command and has sent both the command added into the config and the command added into the URL to the UE game.

    Example:

    https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/E3DS-Iframe-Demo?exeLunchArgs=-green pink red

    Step 6. Open the game. Run to the 12th bay

    Open the game again to see the additional Command Lines you have added.

    Panel
    panelIconIdatlassian-info
    panelIcon:info:
    bgColor#F4F5F7

    When you click on https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo?exeLunchArgs=-blue,

    2 values will be getting parsed from two places in CMDLine arguments in the game.

    Panel
    panelIconIdatlassian-info
    panelIcon:info:
    bgColor#F4F5F7

    Now that we are familiar with how the appending system works, we can explore how this is used for authentication.

    Step 7. Authenticate by a user’s Email address

    Panel
    panelIconIdatlassian-info
    panelIcon:info:
    bgColor#DEEBFF

    On the URL side, append the user’s email address to the URL, so that it looks like this:

    (assuming that you know how to do this programmatically)

    https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo?exeLunchArgs=-user=myEmailAddress@gmail.com

    (this link will not work and is for demonstration purposes only).

    Panel
    panelIconIdatlassian-info
    panelIcon:info:
    bgColor#F4F5F7

    By adding the email address into the URL (the '@' sign is an accepted character),

    you will be able to pass the email address into your UE app where you can then proceed with the authentication.

    Within the E3DSFeaturesTemplate App, there is a blueprint showing how to receive a value

    (in the E3DSFeaturesTemplate example we show how to use the Command Line to get an IP Address for multiplayer).


    Special data:

    Info

    %ip_streamer% will pass the IP address of the machine where UE app is running

    %ip_ss% will pass the IP address of the Signaling server

    %port_streamer2ss% will pass the port of the Signaling server through which UE app communicates with the signaling server


    Step 8. Add -bb=%ip_streamer% -aa=%ip_ss%:%port_streamer2ss%

    Add these Commands in Parameters to Pass to App.

    Step 9. Get this Output


    Was this article helpful? Comment Below. Let us know your feedback.

    Click Page Feedback on top of the article. Select an emoji. Tell us how helpful this page was.

     

     

     

     

     


    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 E3DS Community Forum today.