Class VideoPlayerDrawer
Draws the output of a VideoPlayer with the Daggerfall Unity UI.
Inherited Members
Namespace: DaggerfallWorkshop.Game.UserInterface
Assembly: Assembly-CSharp.dll
Syntax
public class VideoPlayerDrawer : BaseScreenComponent, IDisposable
Constructors
| Improve this Doc View SourceVideoPlayerDrawer(String)
A drawer for streamed sound and video data.
Declaration
public VideoPlayerDrawer(string url)
Parameters
Type | Name | Description |
---|---|---|
String | url |
VideoPlayerDrawer(VideoClip)
A drawer for a clip with sound and video data.
Declaration
public VideoPlayerDrawer(VideoClip videoClip)
Parameters
Type | Name | Description |
---|---|---|
VideoClip | videoClip |
Properties
| Improve this Doc View SourceIsPlaying
True if the video is playing or preparing to play.
Declaration
public bool IsPlaying { get; }
Property Value
Type | Description |
---|---|
Boolean |
ScaleMode
Video scale mode; by default it follows game settings.
Declaration
public ScaleMode ScaleMode { get; set; }
Property Value
Type | Description |
---|---|
ScaleMode |
Methods
| Improve this Doc View SourceDraw()
Declaration
public override void Draw()
Overrides
| Improve this Doc View SourcePlay()
Loads and plays the video.
Declaration
public void Play()
Stop()
Stops the running video.
Declaration
public void Stop()