Class Texture2DSourceBase
Base class for Texture2D-based video sources.
Inheritance
System.Object
MediaSource <IVideoOutput , IVideoInput , IVideoInputCollection , VideoSource , VideoFrame , VideoBuffer , VideoBufferCollection , VideoFormat >
Texture2DSourceBase
Implements
Inherited Members
Namespace: FM.LiveSwitch.Unity
Assembly: FM.LiveSwitch.Unity.dll
Syntax
public abstract class Texture2DSourceBase : ScreenSourceBase, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
Texture2DSourceBase(VideoFormat, ScreenConfig)
Initializes a new instance of the Web
Declaration
public Texture2DSourceBase(VideoFormat outputFormat, ScreenConfig targetConfig)
Parameters
Type | Name | Description |
---|---|---|
Video |
outputFormat | |
Screen |
targetConfig |
Properties
GameEngineFrameRate
Gets or sets whether we should use the game engine frame rate.
Declaration
protected bool GameEngineFrameRate { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.DoDestroy()
DoStart()
Starts this instance.
Declaration
protected override Future<object> DoStart()
Returns
Type | Description |
---|---|
Future<System. |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.DoStart()
DoStop()
Stops this instance.
Declaration
protected override Future<object> DoStop()
Returns
Type | Description |
---|---|
Future<System. |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.DoStop()
GetTexture2D()
Gets the current Texture2D.
Declaration
protected abstract Texture2D GetTexture2D()
Returns
Type | Description |
---|---|
Texture2D |
ProcessTargetFrameRate(Int32)
Processes the target frame rate.
Declaration
protected static int ProcessTargetFrameRate(int targetFrameRate)
Parameters
Type | Name | Description |
---|---|---|
System. |
targetFrameRate |
Returns
Type | Description |
---|---|
System. |