neroant.blogg.se

Universal media server playlist
Universal media server playlist








universal media server playlist

With this setup, when you press 1 you will open the first file in the playlist, 2 the second and 3 the third. Right-click and add 2 and 3 keyboard events to Open Playlist Index for Index 1 and Index 2 respectively. With the Open Playlist Index node, you can specify which file you want to open within a playlist by entering its index value. The index refers to the playlist index order specified inside your Media Playlist asset (pictured below) and is zero-based with zero being the first video in your playlist. Here, when the Player presses the 1 key on the keyboard, the playlist will open (and start playing) with the first video in the list. In the graph, right-click and add a 1 Keyboard Event, then hold Ctrl and drag the MediaPlayer variable into the graph.ĭrag off the MediaPlayer variable and use Open Playlist Index (with In Playlist set to MyPlaylist) and connect to the Pressed of the 1 keyboard event. You may need to Compile your Blueprint in order to set the Default Value. In the MyBlueprint window, create a variable called MediaPlayer of the Media Player Object Reference type and set the Default Value to your Media Player asset. While our video plays inside the Media Editor, in order to play during gameplay we will need to open our playlist so it can start playing. Select the Media Sound component, then under the Media section assign your MediaPlayer asset.įrom the Main Toolbar, click the Blueprints button and select Open Level Blueprint. The Media Sound component enables us to associate audio with a Media Player and provides a way for the audio to be played along with our video. With the Plane selected in the Level, in the Details panel click the Add Component button and add a Media Sound component. When dragging the Media Texture onto the Static Mesh in the Level, a Material will automatically be created and applied to the mesh, enabling us to play our videos. (Basics/Actors/ManipulatingActors/) you can move ( W key), rotate ( E key), or scale ( R key) the plane as desired as we will play our videos on this Static Mesh.įrom the Content Browser, drag the MediaPlayer_Video Media Texture asset onto the plane in the Level to create and apply a new Material. Inside the Playlist window you can insert, duplicate or delete items from the playlist or left-click and drag rows to reorder the playback order by clicking the tab along the left side of each row.Īt the top of the Media Playlist window, the Loop option is available if you want to loop the entire playlist.įrom the Place Actors panel of the Main Editor window in the Basic tab, drag a Plane into the Level and use the Transform Tools to resize it. You can also use the + button to add new items to the playlist and the drop-down menu to select the type of Media Source to add. Open the MyPlaylist asset, then in the Media Library window, double-click on a video and add each to the playlist. Inside the Content/Movies folder of the Content Browser, right-click and under Media select Media Playlist and call it MyPlaylist. In the Playlist window, you can save out new playlist assets, however, as of 4.18, there is no way currently to add items to a playlist inside the Media Editor. Our Media Player is also set to Play on Open which means, when we open this Media Source associated with this Media Player, it will automatically start playing. The Loop option will loop the playback of entire playlist (or a single source if there is only one source in the Media Playlist). You can also set the player to Shuffle the playback order of videos in a playlist by enabling the option in the Details panel. Repeat the previous step and assign videos for the Video_02 and Video_03 assets.Ĭreate a MediaPlayer asset called MediaPlayer with an associated Media Texture, then open the MediaPlayer asset.ĭouble-clicking on a video inside the Media Library window will play the selected file. Inside Video_01, point the File Path to the Gideon_720x480 file (or your desired video file) then click the Open button. In your project, right-click in the Content/Movies folder then under Media select File Media Source.Ĭreate three File Media Source assets called Video_01, Video_02 and Video_03 respectively. In order to successfully package and deploy your video files along with your project, your videos must be placed inside the Content/Movies folder of your project.ĭrag the Sample Video files provided into the Content/Movies folder of your project.










Universal media server playlist