
We can then take that Material and apply it to a mesh in our Level to play our content on. This will automatically create a Media Texture associated with this Media Player that we can use inside a Material. In the Create Media Player window, enable the Video output Media Texture asset option then click OK and call the asset Media Player.

We still need to use a Media Player to open and play our Platform Media Source asset. Right-click in the Content/Movies folder then under Media, select Media Player.

You may also use different Media Source types, for example, on Windows you may elect to use a Media Stream to pull content from a website instead of using a file on disk.

However, you can use the same video that is encoded differently or in a different format for use with different devices. In our example we are using two different videos. Open the Platform_Source, then under Android select the Android_Movie and under Windows select the Windows_Movie. Now that we have multiple Media Source assets, we can define which Media Source is to be played on which Platform with the Platform Media Source asset. Right-click in the Content/Movies folder then under Media, select Platform Media Source and call it Platform_Source. Open the Windows_Movie Media Source, then point the File Path to the Infiltrator Demo (or your desired video) and select Open.

3GP video file which is better suited for playback on Android devices while our Windows movie is an. Open the Android_Movie Media Source, then for the File Path use the Gideon_720x480 (or your desired video) and select Open.įor our Android movie, we are using a. Here we are creating a Media Source asset that the Platform Media Source asset can point to and use if it is running on an Android device.Ĭreate another File Media Source asset and call it Windows_Movie. In your project under the Content/Movies folder of the Content Browser, right-click and under Media select File Media Source and name it Android_Movie. If you want to package and deploy your project along with any media files, you will need to place them inside the Content/Movies folder of your project.
