FMediaPlayerFacade::GetVideoTrackAspectRatio

Get the aspect ratio of the specified video track.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaUtils

Header

/Engine/Source/Runtime/MediaUtils/Public/MediaPlayerFacade.h

Include

#include "MediaPlayerFacade.h"

Source

/Engine/Source/Runtime/MediaUtils/Private/MediaPlayerFacade.cpp

Syntax

float GetVideoTrackAspectRatio
(
    int32 TrackIndex,
    int32 FormatIndex
) const

Remarks

Get the aspect ratio of the specified video track.

Returns

Aspect ratio.

Parameters

Parameter

Description

TrackIndex

The index of the track.

FormatIndex

Index of the track format.

See Also