Skip to content

UOperatingSystemVideoPlayerProgramData

#include <OperatingSystemSimulator/Public/Programs/VideoPlayer/OperatingSystemVideoPlayerProgramData.h>
class UOperatingSystemVideoPlayerProgramData

Defined in OperatingSystemVideoPlayerProgramData.h:18

Inherits: UOperatingSystemProgramData

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemVideoPlayerProgramData["UOperatingSystemVideoPlayerProgramData"]
  class UOperatingSystemProgramData["UOperatingSystemProgramData"]
  UOperatingSystemProgramData <|-- UOperatingSystemVideoPlayerProgramData
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemVideoPlayerProgramData["UOperatingSystemVideoPlayerProgramData"]
  class FOperatingSystemVideoPlayerConfig["FOperatingSystemVideoPlayerConfig"]
  UOperatingSystemVideoPlayerProgramData *-- FOperatingSystemVideoPlayerConfig
  class UOperatingSystemVideoPlayerSettings["UOperatingSystemVideoPlayerSettings"]
  UOperatingSystemVideoPlayerProgramData *-- UOperatingSystemVideoPlayerSettings
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemVideoPlayerProgramData {
    +UOperatingSystemVideoPlayerProgramData()
    +OnCreate() override
    +OnOpenFile(UOperatingSystemFile *OpenedFile)
    +SetLoopVideo(const bool bNewLoop)
    +K2_OnOpenFile(UOperatingSystemFile *OpenedFile)
    +CurrentSettings : FOperatingSystemVideoPlayerConfig()
    +VideoPlayerSettings : TWeakObjectPtr< UOperatingSystemVideoPla
    +bHasBlueprintOnOpenFile : uint8
  }

UOperatingSystemVideoPlayerProgramData is an abstract class that represents the program data for a video player program in the operating system.

This class inherits from UOperatingSystemProgramData and provides additional functionality specific to video players.

ReturnNameDescription
UOperatingSystemVideoPlayerProgramData
voidOnCreate virtual overrideCalled when the video player program data is created.
voidOnOpenFileThis function is called when a file is opened in the video player program. This function checks if there is a blueprint implementation of the OnOpenFile event. If there is a blueprint implementation, it calls the K2_OnOpenFile event and passes the opened file object as a parameter.
voidSetLoopVideoSet to loop or not the video playback.

UOperatingSystemVideoPlayerProgramData()

Defined in OperatingSystemVideoPlayerProgramData.h:39


virtual override

virtual void OnCreate() override

Defined in OperatingSystemVideoPlayerProgramData.h:52 Called when the video player program data is created.

This function is responsible for initializing the video player program data. It is called when the program data is created and performs the following tasks:

  • Calls the OnCreate function of the base class UOperatingSystemProgramData to perform any necessary initialization.

  • Retrieves the video player settings from the parent program.

  • Checks if the retrieved video player settings are valid. If not, it logs a warning message.

See also: UOperatingSystemVideoPlayerSettings


void OnOpenFile(UOperatingSystemFile * OpenedFile)

Defined in OperatingSystemVideoPlayerProgramData.h:62 This function is called when a file is opened in the video player program. This function checks if there is a blueprint implementation of the OnOpenFile event. If there is a blueprint implementation, it calls the K2_OnOpenFile event and passes the opened file object as a parameter.

See also: UOperatingSystemVideoPlayerProgramData::K2_OnOpenFile


void SetLoopVideo(const bool bNewLoop)

Defined in OperatingSystemVideoPlayerProgramData.h:70 Set to loop or not the video playback.

  • bNewLoop True to loop the video.
ReturnNameDescription
voidK2_OnOpenFileCalled when a file is opened in the video player program.

void K2_OnOpenFile(UOperatingSystemFile * OpenedFile)

Defined in OperatingSystemVideoPlayerProgramData.h:84 Called when a file is opened in the video player program.

This function checks if there is a blueprint implementation of the OnOpenFile event. If there is a blueprint implementation, it calls the K2_OnOpenFile event and passes the opened file object as a parameter.

See also: UOperatingSystemVideoPlayerProgramData::K2_OnOpenFile

ReturnNameDescription
FOperatingSystemVideoPlayerConfigCurrentSettingsCurrent settings for the video player.
TWeakObjectPtr< UOperatingSystemVideoPlayerSettings >VideoPlayerSettingsRepresents the settings for a video player. It is a weak reference to an instance of the class UOperatingSystemVideoPlayerSettings. It is used in the class UOperatingSystemVideoPlayerProgramData to store and access the current settings for the video player program. The UOperatingSystemVideoPlayerSettings class provides additional functionality specific to video players.
uint8bHasBlueprintOnOpenFile

FOperatingSystemVideoPlayerConfig CurrentSettings

Defined in OperatingSystemVideoPlayerProgramData.h:24 Current settings for the video player.


TWeakObjectPtr< UOperatingSystemVideoPlayerSettings > VideoPlayerSettings

Defined in OperatingSystemVideoPlayerProgramData.h:33 Represents the settings for a video player. It is a weak reference to an instance of the class UOperatingSystemVideoPlayerSettings. It is used in the class UOperatingSystemVideoPlayerProgramData to store and access the current settings for the video player program. The UOperatingSystemVideoPlayerSettings class provides additional functionality specific to video players.

See also: UOperatingSystemVideoPlayerProgramData


uint8 bHasBlueprintOnOpenFile

Defined in OperatingSystemVideoPlayerProgramData.h:35