Navigation
API > API/Plugins > API/Plugins/MediaPlayerEditor
Implements the contents of the viewer tab in the UMediaPlayer asset editor.
| Name | SMediaPlayerEditorViewer |
| Type | class |
| Header File | /Engine/Plugins/Media/MediaPlayerEditor/Source/MediaPlayerEditor/Public/Widgets/SMediaPlayerEditorViewer.h |
| Include Path | #include "Widgets/SMediaPlayerEditorViewer.h" |
Syntax
class SMediaPlayerEditorViewer : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SMediaPlayerEditorViewer
- FSlateControlledConstruction → SWidget → SCompoundWidget → SMediaPlayerEditorViewer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SMediaPlayerEditorViewer() |
Default constructor. | Widgets/SMediaPlayerEditorViewer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~SMediaPlayerEditorViewer() |
Destructor. | Widgets/SMediaPlayerEditorViewer.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DragOver | bool | Whether something is currently being dragged over the widget. | Widgets/SMediaPlayerEditorViewer.h | |
| DragValid | bool | Whether the dragged object is a media file that can be played. | Widgets/SMediaPlayerEditorViewer.h | |
| LastUrl | FText | The text that was last typed into the URL box. | Widgets/SMediaPlayerEditorViewer.h | |
| MediaPlayer | UMediaPlayer * | Pointer to the media player that is being viewed. | Widgets/SMediaPlayerEditorViewer.h | |
| PlayerViewport | TSharedPtr< SMediaPlayerEditorViewport > | The viewport that shows the media. | Widgets/SMediaPlayerEditorViewer.h | |
| Style | TSharedPtr< ISlateStyle > | The style set to use for this widget. | Widgets/SMediaPlayerEditorViewer.h | |
| UrlTextBox | TSharedPtr< SEditableTextBox > | Media URL text box. | Widgets/SMediaPlayerEditorViewer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs, |
Construct this widget | Widgets/SMediaPlayerEditorViewer.h | |
void EnableMouseControl
(
bool bIsEnabled |
Enables/disables using the mouse to control the viewport. | Widgets/SMediaPlayerEditorViewer.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnDragEnter
(
const FGeometry& MyGeometry, |
Widgets/SMediaPlayerEditorViewer.h | ||
virtual void OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Widgets/SMediaPlayerEditorViewer.h | ||
virtual FReply OnDragOver
(
const FGeometry& MyGeometry, |
Widgets/SMediaPlayerEditorViewer.h | ||
virtual FReply OnDrop
(
const FGeometry& MyGeometry, |
Widgets/SMediaPlayerEditorViewer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void MakeCaptureDeviceMenu
(
TArray< FMediaCaptureDeviceInfo >& DeviceInfos, |
Populate a menu from the given capture device information. | Widgets/SMediaPlayerEditorViewer.h | |
void OpenUrl
(
const FText& TextUrl |
Open the specified media URL. | Widgets/SMediaPlayerEditorViewer.h | |
void SetDesiredPlayerName
(
FName PlayerName |
Set the name of the desired native media player. | Widgets/SMediaPlayerEditorViewer.h |