![]() We will use the Level Blueprint and tell our Media Player to open our File Media Source asset at the start of gameplay so it will start playing in the level.Īdd a Variable of the Media Player Reference type called MediaPlayer and set the Default Value to MyPlayer. ![]() Here we are associating the Media Sound component with our Media Player asset so it knows where to draw audio from.įrom the main toolbar, click the Blueprints button and select Open Level Blueprint. In the Details panel, select the new Media Sound component then under the Media section, set the Media Player to use MyPlayer. The Media Sound component is used to define the audio that will playback alongside the video. With the Plane selected in the level, in the Details panel click the Add Component button and search for and add a Media Sound. When dragging the Media Texture onto the Static Mesh in the level, it will automatically create a new Material in the Content Browser and apply it to the mesh in the level. (Basics/Actors/ManipulatingActors) and Translate (W), Rotate (E) and Scale (R) the mesh to your desired appearance.ĭrag the MyPlayer_Video Media Texture asset onto the Plane inside the level to auto create and assign a new Material. With the Plane selected in the level, use the While our video plays back inside the Media Editor, a little later in this guide we will need to tell our Media Player through Blueprint Visual Scripting to open our File Media Source asset during gameplay so that the file will start playing while we are playing our game.įrom the Place Actors panel in the Basic tab, drag a Plane into the level and use the Transform tools to move/scale the mesh as desired. When this option is checked, whenever a Media Source asset is opened, it will automatically start playing back and does not need to explicitly be told to start playing. This is because the Play on Open option is enabled in the Playback section of the Details panel. When double-clicking on the File Media Source asset inside the Media Library section, the video will start playing back. Name the Media Player and Media Texture asset, MyPlayer and MyPlayer_Video then open the MyPlayer Media Player asset.ĭouble-click on the SampleVideo in the Media Library section. The Media Texture is responsible for playing back the media content and we can use this to create a Material that will be applied to a Static Mesh in our level a little later in this guide. This will create a Media Texture asset and automatically assign it to the Media Player we are creating. ![]() In the Create Media Player window, enable the Video out Media Texture asset option then click OK. This means it takes more data to download the 720p file than stream the 480p version. Right-click inside the Movies folder again and under Media select Media Player. The key difference is that a streaming file is simply played as it. button and point to your sample video on your computer. Inside the File Media Source asset, under File Path click the. Inside your project, right-click in the Movies folder and under Media select File Media Source and call the asset SampleVideo. In order to package and deploy your content with your project, your media must reside in the Content/Movies folder of your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |