Table of Contents

Class LoopVideoPlayer

Namespace
KSP.Video
Assembly
Assembly-CSharp.dll
public class LoopVideoPlayer : Indicator
Inheritance
LoopVideoPlayer
Derived
Inherited Members
Extension Methods

Constructors

LoopVideoPlayer()

public LoopVideoPlayer()

Fields

FRAME_TIME_60_HZ

protected const float FRAME_TIME_60_HZ = 0.016666668

Field Value

float

_border

protected Image _border

Field Value

Image

_currentVideoData

protected LoopVideoData _currentVideoData

Field Value

LoopVideoData

_defaultVideoData

protected LoopVideoData _defaultVideoData

Field Value

LoopVideoData

_gifPlayerUIScreen

protected Image _gifPlayerUIScreen

Field Value

Image

_isPlaying

protected bool _isPlaying

Field Value

bool

_videoPlayer

protected VideoPlayer _videoPlayer

Field Value

VideoPlayer

_videoPlayerTexture

protected RenderTexture _videoPlayerTexture

Field Value

RenderTexture

_videoPlayerUIScreen

protected RawImage _videoPlayerUIScreen

Field Value

RawImage

autoAddedToProvider

protected bool autoAddedToProvider

Field Value

bool

playAutomatically

protected bool playAutomatically

Field Value

bool

spriteIndex

protected int spriteIndex

Field Value

int

Methods

IsDataValid()

public bool IsDataValid()

Returns

bool

OnUpdate()

public override void OnUpdate()

Play(LoopVideoData, Vector2, bool)

public virtual void Play(LoopVideoData loopVideoData, Vector2 size, bool usevideoPlayerSize = false)

Parameters

loopVideoData LoopVideoData
size Vector2
usevideoPlayerSize bool

Show(IndicatorData, Action<Indicator>)

public override void Show(IndicatorData indicatorData, Action<Indicator> onHideCallback)

Parameters

indicatorData IndicatorData
onHideCallback Action<Indicator>

Stop()

public virtual void Stop()

Validate()

protected virtual bool Validate()

Returns

bool