Barotrauma Client Doc
Barotrauma.VideoPlayer Class Reference

Classes

class  TextSettings
 
class  VideoSettings
 

Public Member Functions

 VideoPlayer ()
 
void Play ()
 
void Stop ()
 
void Update ()
 
void AddToGUIUpdateList (bool ignoreChildren=false, int order=0)
 
void LoadContent (string contentPath, VideoSettings videoSettings, TextSettings textSettings, Identifier contentId, bool startPlayback)
 
void LoadContent (string contentPath, VideoSettings videoSettings, TextSettings textSettings, Identifier contentId, bool startPlayback, LocalizedString objective, Action onStop=null)
 
void Remove ()
 

Public Attributes

bool IsPlaying
 

Detailed Description

Definition at line 11 of file VideoPlayer.cs.

Constructor & Destructor Documentation

◆ VideoPlayer()

Barotrauma.VideoPlayer.VideoPlayer ( )

Definition at line 63 of file VideoPlayer.cs.

Member Function Documentation

◆ AddToGUIUpdateList()

void Barotrauma.VideoPlayer.AddToGUIUpdateList ( bool  ignoreChildren = false,
int  order = 0 
)

Definition at line 123 of file VideoPlayer.cs.

◆ LoadContent() [1/2]

void Barotrauma.VideoPlayer.LoadContent ( string  contentPath,
VideoSettings  videoSettings,
TextSettings  textSettings,
Identifier  contentId,
bool  startPlayback 
)

Definition at line 129 of file VideoPlayer.cs.

◆ LoadContent() [2/2]

void Barotrauma.VideoPlayer.LoadContent ( string  contentPath,
VideoSettings  videoSettings,
TextSettings  textSettings,
Identifier  contentId,
bool  startPlayback,
LocalizedString  objective,
Action  onStop = null 
)

Definition at line 134 of file VideoPlayer.cs.

◆ Play()

void Barotrauma.VideoPlayer.Play ( )

Definition at line 95 of file VideoPlayer.cs.

◆ Remove()

void Barotrauma.VideoPlayer.Remove ( )

Definition at line 293 of file VideoPlayer.cs.

◆ Stop()

void Barotrauma.VideoPlayer.Stop ( )

Definition at line 100 of file VideoPlayer.cs.

◆ Update()

void Barotrauma.VideoPlayer.Update ( )

Definition at line 115 of file VideoPlayer.cs.

Member Data Documentation

◆ IsPlaying

bool Barotrauma.VideoPlayer.IsPlaying

Definition at line 13 of file VideoPlayer.cs.