Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Description
Check whether the specified URL can be played by this player.
If a desired player name is set for this player, it will only check whether that particular player type can play the specified URL.
| Name | CanPlayUrl |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaPlayer")
bool CanPlayUrl
(
const FString & Url
)
Parameters
| Name | Remarks |
|---|---|
| Url | The URL to check. |
See Also
-
SetDesiredPlayerName