UMediaPlayer::CanPlaySource

Check whether the specified media source can be played by this player.

Windows
MacOS
Linux

References

Module

MediaAssets

Header

/Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h

Include

#include "MediaPlayer.h"

Source

/Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp

Syntax

bool CanPlaySource
(
    UMediaSource * MediaSource
)

Remarks

Check whether the specified media source 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 source.

Returns

true if the media source can be opened, false otherwise.

Parameters

Parameter

Description

MediaSource

The media source to check.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss