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 WebCamTextureSource class.
Declaration
public Texture2DSourceBase(VideoFormat outputFormat, ScreenConfig targetConfig)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VideoFormat | outputFormat | |
| ScreenConfig | 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.Boolean | 
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.Object> | 
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.Object> | 
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.Int32 | targetFrameRate | 
Returns
| Type | Description | 
|---|---|
| System.Int32 |