Navigation
Unreal Engine C++ API Reference > Runtime > MediaAssets > UMediaPlayer
References
Module | MediaAssets |
Header | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
Include | #include "MediaPlayer.h" |
Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
bool OpenSourceWithOptions
&40;
UMediaSource &42; MediaSource,
const FMediaPlayerOptions & Options
&41;
Remarks
Open the specified media source with supplied options applied.
A return value of true indicates that the player will attempt to open the media, but it may fail to do so later for other reasons, i.e. if a connection to the media server timed out. Use the OnMediaOpened and OnMediaOpenFailed delegates to detect if and when the media is ready! true if the source will be opened, false otherwise.
Parameters
Name | Description |
---|---|
MediaSource | The media source to open. |
Options | The media player options to apply. |