1 - Required Setup


  1. Inside your project in the Content Browser, expand the Sources panel then right-click on the Content folder and create a new folder called Movies.
    In order to package or deploy your project and any media files, you must place your media inside the Content/Movies folder of your project.
  2. Right-click on the Movies folder then select the Show in Explorer option.
  3. Place the sample video inside the Content/Movies folder on your computer.
  4. Right-click in the Movies folder, then under Media, choose File Media Source and name it Video_01.
    The File Media Source asset is used to point to video files that are stored locally on a device (which we will point to our sample file).
  5. Open the File Media Source asset, then click the ... symbol and point to the sample video file on your computer.
    While we have created a source for playback, we need a Media Player asset to actually play our video.
  6. Right-click in the Movies folder, then under Media, choose Media Player.
  7. In the Create Media Player dialogue window, enable Video output Media Texture asset then click the OK button and name it MediaPlayer_01.
    This will automatically create and assign a Media Texture to the Media Player asset which is needed for playing back our video.
  8. Open the MediaPlayer_01 asset, then in the Details panel of the Media Editor, enable the Loop option.
    Inside the Media Editor , if you double-click on the Video_01 file, playback will occur. In the Details panel, we have options to determine how we want to handle playback (in this case, we are setting this video to loop playback). Another option that is enabled by default is Play on Open, which will tell our video to start playing as soon as we open it through Blueprint or C++.
  9. Inside the Content Browser, create a new folder called TV and drag the SM_TV and T_TV_M2 files from the Sample Content into your project to Import All.

End Result

The assets needed for our set up are ready and we have created our first few Media Framework assets (the File Media Source, Media Player, and Media Texture assets) which are needed to play back our video. We also imported a Static Mesh TV that we will play our video on inside our level and a texture that we will use in setting up our Material for our TV which we will do in the next step.