IMediaPlayerFactory::CanPlayUrl

Whether the player can play the specified source URL.

Windows
MacOS
Linux

References

Module

Media

Header

/Engine/Source/Runtime/Media/Public/IMediaPlayerFactory.h

Include

#include "IMediaPlayerFactory.h"

Syntax

bool CanPlayUrl
(
    const FString & Url,
    const IMediaOptions * Options,
    TArray< FText > * OutWarnings,
    TArray< FText > * OutErrors
) const

Remarks

Whether the player can play the specified source URL.

Returns

true if the source can be played, false otherwise.

Parameters

Parameter

Description

Url

The media source URL to check.

Options

Optional media player parameters.

OutWarnings

Will contain warning messages (optional).

OutErrors

will contain error messages (optional).

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