class

IArcUIMediaSource

What a VideoPlayer widget needs from a clip, and nothing about how the clip is decoded. ArcUI sits below Game, where FMediaPlayer and the .media asset live, so the host injects a source factory the same way it injects the image decoder — the widget drives playback through this and samples the frame it hands back.

Module
ArcUI
Header
#include "ArcUI/IArcUIMediaSource.h"
Namespace
Mowo

Constructors

SignatureNameDescription
virtual ~IArcUIMediaSource() = default~IArcUIMediaSource

Public functions

ReturnsNameDescription
boolOpenA .media asset path (settings travel with it) or a bare clip path.
voidClose
voidPlay
voidPause
voidSeek
voidSetLooping
voidSetVolume
voidUpdateAdvances the clock and decodes into the frame texture.
boolIsOpen
boolIsPlaying
boolIsLooping
doubleGetTime
doubleGetDuration
uint32_tGetWidth
uint32_tGetHeight
Arcf::Ref<Arcf::IArcRHITexture>GetFrameTextureThe frame target, updated in place by Update.

Function details

~IArcUIMediaSource

C++
virtual ~IArcUIMediaSource() = default

Open

C++
virtual bool Open(const std::string& assetPath) = 0

A .media asset path (settings travel with it) or a bare clip path.

Close

C++
virtual void Close() = 0

Play

C++
virtual void Play() = 0

Pause

C++
virtual void Pause() = 0

Seek

C++
virtual void Seek(double seconds) = 0

SetLooping

C++
virtual void SetLooping(bool loop) = 0

SetVolume

C++
virtual void SetVolume(float volume) = 0

Update

C++
virtual void Update(float deltaSeconds) = 0

Advances the clock and decodes into the frame texture. Called once per frame by the widget's tick; nothing decodes while paused.

IsOpen

C++
virtual bool IsOpen() const = 0

IsPlaying

C++
virtual bool IsPlaying() const = 0

IsLooping

C++
virtual bool IsLooping() const = 0

GetTime

C++
virtual double GetTime() const = 0

GetDuration

C++
virtual double GetDuration() const = 0

GetWidth

C++
virtual uint32_t GetWidth() const = 0

GetHeight

C++
virtual uint32_t GetHeight() const = 0

GetFrameTexture

C++
virtual Arcf::Ref<Arcf::IArcRHITexture> GetFrameTexture() = 0

The frame target, updated in place by Update. The source re-wraps it whenever the underlying image is recreated, so a widget compares the pointer it holds against this one to know when its brush went stale.

Generated from ArcUI/IArcUIMediaSource.h via arcui.json · Nov 4, 2026Version 1.0.0