Enabling Pixel Streaming

With Unreal’s Pixel Streaming feature, you can stream your 3D application to any remote user with a modern web browser. The Azure Game Development VM comes with an option to enable Pixel Streaming access and with a few other steps, you can share your project in just minutes.

Enable Pixel Streaming during VM creation

  1. When creating the Azure Game Development VM, you must check the box to enable the Unreal Pixel Streaming port access.

Screenshot showing where to enable Pixel streaming in the Azure Portal

  1. Once the Azure Game Development VM is created and an Unreal Editor project is loaded, select the Plug-in's option from the settings menu on the top of the Editor

Screenshot showing Plug-in option in the Unreal Editor settings

  1. Find or search for Pixel Streaming and click on the Enabled checkbox to install the Plugin. You will need to restart the Unreal Editor for the changes to take effect.

Screenshot showing the Pixel streaming plugin in the Unreal Editor

  1. When Unreal has restarted select the Editor Preferences item, under the Edit menu.

Screenshot showing the editor preferences menu in the Unreal Editor

  1. With the Editor Preferences window open, find or search for Additional Launch Parameters. It can be found under the Level Editor -> Play section on the left side of the window. Add the following values to the setting: -AudioMixer -PixelStreamingIP=localhost -PixelStreamingPort=8888

Screenshot showing the parameters to use for the Pixel Streaming plugin

  1. Close the Editor Preferences window/tab.
  2. Along the top of the editor, open the dropdown menu next to the Play icon and choose the selection Standalone Game. This will run the game in its own process, which is necessary to utilize the settings added in Step 5.

Screenshot showing the standalone game setting in the Unreal Editor

  1. Once the game is launched in its own window, the game will connect to the Pixel Streaming server process running on the VM. In order to connect a browser from your local machine to the game, you must know the public IP address or the DNS Name of the Game Development VM. An easy place to find this information is on the Overview panel of the VM instance in the Azure Portal.

Screenshot showing the way to connect Pixel Streaming in the Azure Portal

  1. Navigating a browser to the value listed in either the Public IP address or DNS Name should result in a view such as the one below.

Screenshot showing the browser window view to start a game

  1. Clicking the text in the middle, should change the text to a play icon.

Screenshot showing the browser window view to play a game

  1. Clicking the play icon, will begin streaming the game process from the remote Azure Game Development VM to your local browser window.

Screenshot showing the game has started in the browser window

Congratulations, you have setup & enabled pixel streaming with your Unreal application. All the keyboard and mouse inputs to the browser window will be transmitted to the game process on the VM, so you can play the game as if it was on your local machine.

Next steps

To learn more about Unreal’s Pixel Streaming and its features, please refer to Epic Games’ documentation for Pixel Streaming.