Class NativePlugin
Inheritance
System.Object
NativePlugin
Assembly: cs.temp.dll.dll
public class NativePlugin
Fields
Declaration
public static readonly string[] AudioCodecNamesAndroid
Field Value
Type |
Description |
System.String[] |
|
Declaration
public static readonly string[] AudioCodecNamesIOS
Field Value
Type |
Description |
System.String[] |
|
Declaration
public static readonly string[] AudioCodecNamesMacOS
Field Value
Type |
Description |
System.String[] |
|
Declaration
public const string ExpectedPluginVersion = "5.3.2"
Field Value
Type |
Description |
System.String |
|
Declaration
public const int MaxRenderHeight = 16384
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MaxRenderWidth = 16384
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public static string[] PlatformNames
Field Value
Type |
Description |
System.String[] |
|
Declaration
public const string ScriptVersion = "5.3.2"
Field Value
Type |
Description |
System.String |
|
Declaration
public static readonly string[] VideoCodecNamesAndroid
Field Value
Type |
Description |
System.String[] |
|
Declaration
public static readonly string[] VideoCodecNamesIOS
Field Value
Type |
Description |
System.String[] |
|
Declaration
public static readonly string[] VideoCodecNamesMacOS
Field Value
Type |
Description |
System.String[] |
|
Methods
Declaration
public static extern void ConfigureAudioCodec(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Declaration
public static extern void ConfigureVideoCodec(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Declaration
public static extern int CreateRecorderImages(string filename, uint width, uint height, float frameRate, int format, bool isRealTime, bool isTopDown, int imageFormatType, bool forceGpuFlush, int startFrame, ImageEncoderHints hints)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.UInt32 |
width |
|
System.UInt32 |
height |
|
System.Single |
frameRate |
|
System.Int32 |
format |
|
System.Boolean |
isRealTime |
|
System.Boolean |
isTopDown |
|
System.Int32 |
imageFormatType |
|
System.Boolean |
forceGpuFlush |
|
System.Int32 |
startFrame |
|
ImageEncoderHints |
hints |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static extern int CreateRecorderPipe(string filename, uint width, uint height, float frameRate, int format, bool isTopDown, int transparencyMode, bool forceGpuFlush)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.UInt32 |
width |
|
System.UInt32 |
height |
|
System.Single |
frameRate |
|
System.Int32 |
format |
|
System.Boolean |
isTopDown |
|
System.Int32 |
transparencyMode |
|
System.Boolean |
forceGpuFlush |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static extern int CreateRecorderVideo(string filename, uint width, uint height, float frameRate, int format, bool isRealTime, bool isTopDown, int videoCodecIndex, AudioCaptureSource audioSource, int audioSampleRate, int audioChannelCount, int audioInputDeviceIndex, int audioCodecIndex, bool forceGpuFlush, VideoEncoderHints hints)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.UInt32 |
width |
|
System.UInt32 |
height |
|
System.Single |
frameRate |
|
System.Int32 |
format |
|
System.Boolean |
isRealTime |
|
System.Boolean |
isTopDown |
|
System.Int32 |
videoCodecIndex |
|
AudioCaptureSource |
audioSource |
|
System.Int32 |
audioSampleRate |
|
System.Int32 |
audioChannelCount |
|
System.Int32 |
audioInputDeviceIndex |
|
System.Int32 |
audioCodecIndex |
|
System.Boolean |
forceGpuFlush |
|
VideoEncoderHints |
hints |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static extern void Deinit()
Declaration
public static extern void EncodeAudio(int handle, IntPtr data, uint length)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
System.IntPtr |
data |
|
System.UInt32 |
length |
|
Declaration
public static extern void EncodeFrame(int handle, IntPtr data)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
System.IntPtr |
data |
|
Declaration
public static extern void EncodeFrameWithAudio(int handle, IntPtr videoData, IntPtr audioData, uint audioLength)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
System.IntPtr |
videoData |
|
System.IntPtr |
audioData |
|
System.UInt32 |
audioLength |
|
Declaration
public static extern void FreeRecorder(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Declaration
public static extern int GetAudioCodecCount()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static extern MediaApi GetAudioCodecMediaApi(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Returns
Declaration
public static string GetAudioCodecName(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static extern int GetAudioInputDeviceCount()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static MediaApi GetAudioInputDeviceMediaApi(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Declaration
public static string GetAudioInputDeviceName(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string[] GetContainerFileExtensions(int videoCodecIndex, int audioCodecIndex = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
videoCodecIndex |
|
System.Int32 |
audioCodecIndex |
|
Returns
Type |
Description |
System.String[] |
|
Declaration
public static extern uint GetEncodedSeconds(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.UInt32 |
|
Declaration
public static extern uint GetFileSize(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.UInt32 |
|
Declaration
public static bool GetFinalFileURL(int handle, StringBuilder fileURL, int length)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
StringBuilder |
fileURL |
|
System.Int32 |
length |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern uint GetNumDroppedEncoderFrames(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.UInt32 |
|
Declaration
public static extern uint GetNumDroppedFrames(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.UInt32 |
|
Declaration
public static extern uint GetNumEncodedFrames(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.UInt32 |
|
Declaration
public static string GetPixelFormatName(NativePlugin.PixelFormat pixelFormat)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public static string GetPluginVersionString()
Returns
Type |
Description |
System.String |
|
Declaration
public static extern int GetVideoCodecCount()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static extern MediaApi GetVideoCodecMediaApi(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Returns
Declaration
public static string GetVideoCodecName(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static extern bool Init()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool IsBasicEdition()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern bool IsConfigureAudioCodecSupported(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern bool IsConfigureVideoCodecSupported(int codecIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
codecIndex |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern bool IsFileWritingComplete(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern bool IsNewFrameDue(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern bool IsTrialVersion()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern void Pause(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Declaration
public static void RenderThreadEvent(NativePlugin.PluginEvent renderEvent, int handle)
Parameters
Declaration
public static extern int SetEncodedFrameLimit(int handle, uint encodedFrameLimit)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
System.UInt32 |
encodedFrameLimit |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static extern void SetErrorHandler(int handle, IntPtr handler)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
System.IntPtr |
handler |
|
Declaration
public static extern void SetLogFunction(IntPtr fn)
Parameters
Type |
Name |
Description |
System.IntPtr |
fn |
|
Declaration
public static extern void SetMicrophoneRecordingHint(bool enabled, NativePlugin.MicrophoneRecordingOptions options = NativePlugin.MicrophoneRecordingOptions.None)
Parameters
SetTexturePointer(Int32, IntPtr)
Declaration
public static extern void SetTexturePointer(int handle, IntPtr texture)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
System.IntPtr |
texture |
|
Declaration
public static extern bool Start(int handle)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static extern void Stop(int handle, bool skipPendingFrames)
Parameters
Type |
Name |
Description |
System.Int32 |
handle |
|
System.Boolean |
skipPendingFrames |
|