IMediaPlayerFactory::CanPlayUrl

Whether the player can play the specified source URL.

Choose your operating system:

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).