RecorderConfiguration Class¶
Description¶
RecorderConfiguration为 Recorder 的启动配置。
Constructor¶
- C
void easyar_RecorderConfiguration__ctor(easyar_RecorderConfiguration * * Return)
- C++17
RecorderConfiguration()
- C++03
RecorderConfiguration()
- Java
public RecorderConfiguration()
- Kotlin
constructor()
- Objective-C
+ (easyar_RecorderConfiguration *) create
- Swift
public convenience init()
- C#
public RecorderConfiguration()
setOutputFile¶
设置输出视频文件的绝对路径。
- C
void easyar_RecorderConfiguration_setOutputFile(easyar_RecorderConfiguration * This, easyar_String * path)
- C++17
void setOutputFile(std::string path)
- C++03
void setOutputFile(String * path)
- Java
public void setOutputFile(java.lang.@Nonnull String path)
- Kotlin
fun setOutputFile(path: String): Unit
- Objective-C
- (void)setOutputFile:(NSString *)path
- Swift
public func setOutputFile(_ path: String) -> Void
- C#
public virtual void setOutputFile(string path)
setProfile¶
设置录屏配置。默认值是 Quality_720P_Middle。
这是个整体的配置,如果需要更为细节的配置可以调用其他API。
- C
bool easyar_RecorderConfiguration_setProfile(easyar_RecorderConfiguration * This, easyar_RecordProfile profile)
- C++17
bool setProfile(RecordProfile profile)
- C++03
bool setProfile(RecordProfile profile)
- Java
public boolean setProfile(int profile)
- Kotlin
fun setProfile(profile: Int): Boolean
- Objective-C
- (bool)setProfile:(easyar_RecordProfile)profile
- Swift
public func setProfile(_ profile: RecordProfile) -> Bool
- C#
public virtual bool setProfile(RecordProfile profile)
setVideoSize¶
设置录屏视频大小。默认值是 Vid720p。
- C
void easyar_RecorderConfiguration_setVideoSize(easyar_RecorderConfiguration * This, easyar_RecordVideoSize framesize)
- C++17
void setVideoSize(RecordVideoSize framesize)
- C++03
void setVideoSize(RecordVideoSize framesize)
- Java
public void setVideoSize(int framesize)
- Kotlin
fun setVideoSize(framesize: Int): Unit
- Objective-C
- (void)setVideoSize:(easyar_RecordVideoSize)framesize
- Swift
public func setVideoSize(_ framesize: RecordVideoSize) -> Void
- C#
public virtual void setVideoSize(RecordVideoSize framesize)
setVideoBitrate¶
设置录屏视频比特率。默认值是 2500000。
- C
void easyar_RecorderConfiguration_setVideoBitrate(easyar_RecorderConfiguration * This, int bitrate)
- C++17
void setVideoBitrate(int bitrate)
- C++03
void setVideoBitrate(int bitrate)
- Java
public void setVideoBitrate(int bitrate)
- Kotlin
fun setVideoBitrate(bitrate: Int): Unit
- Objective-C
- (void)setVideoBitrate:(int)bitrate
- Swift
public func setVideoBitrate(_ bitrate: Int32) -> Void
- C#
public virtual void setVideoBitrate(int bitrate)
setChannelCount¶
设置录屏音频通道数。默认值是 1。
- C
void easyar_RecorderConfiguration_setChannelCount(easyar_RecorderConfiguration * This, int count)
- C++17
void setChannelCount(int count)
- C++03
void setChannelCount(int count)
- Java
public void setChannelCount(int count)
- Kotlin
fun setChannelCount(count: Int): Unit
- Objective-C
- (void)setChannelCount:(int)count
- Swift
public func setChannelCount(_ count: Int32) -> Void
- C#
public virtual void setChannelCount(int count)
setAudioSampleRate¶
设置录屏音频采样率。默认值是 44100。
- C
void easyar_RecorderConfiguration_setAudioSampleRate(easyar_RecorderConfiguration * This, int samplerate)
- C++17
void setAudioSampleRate(int samplerate)
- C++03
void setAudioSampleRate(int samplerate)
- Java
public void setAudioSampleRate(int samplerate)
- Kotlin
fun setAudioSampleRate(samplerate: Int): Unit
- Objective-C
- (void)setAudioSampleRate:(int)samplerate
- Swift
public func setAudioSampleRate(_ samplerate: Int32) -> Void
- C#
public virtual void setAudioSampleRate(int samplerate)
setAudioBitrate¶
设置录屏音频比特率。默认值是 96000。
- C
void easyar_RecorderConfiguration_setAudioBitrate(easyar_RecorderConfiguration * This, int bitrate)
- C++17
void setAudioBitrate(int bitrate)
- C++03
void setAudioBitrate(int bitrate)
- Java
public void setAudioBitrate(int bitrate)
- Kotlin
fun setAudioBitrate(bitrate: Int): Unit
- Objective-C
- (void)setAudioBitrate:(int)bitrate
- Swift
public func setAudioBitrate(_ bitrate: Int32) -> Void
- C#
public virtual void setAudioBitrate(int bitrate)
setVideoOrientation¶
设置录屏视频朝向。默认值是 Landscape。
- C
void easyar_RecorderConfiguration_setVideoOrientation(easyar_RecorderConfiguration * This, easyar_RecordVideoOrientation mode)
- C++17
void setVideoOrientation(RecordVideoOrientation mode)
- C++03
void setVideoOrientation(RecordVideoOrientation mode)
- Java
public void setVideoOrientation(int mode)
- Kotlin
fun setVideoOrientation(mode: Int): Unit
- Objective-C
- (void)setVideoOrientation:(easyar_RecordVideoOrientation)mode
- Swift
public func setVideoOrientation(_ mode: RecordVideoOrientation) -> Void
- C#
public virtual void setVideoOrientation(RecordVideoOrientation mode)
setZoomMode¶
设置录屏缩放模式。默认值是 NoZoomAndClip。
- C
void easyar_RecorderConfiguration_setZoomMode(easyar_RecorderConfiguration * This, easyar_RecordZoomMode mode)
- C++17
void setZoomMode(RecordZoomMode mode)
- C++03
void setZoomMode(RecordZoomMode mode)
- Java
public void setZoomMode(int mode)
- Kotlin
fun setZoomMode(mode: Int): Unit
- Objective-C
- (void)setZoomMode:(easyar_RecordZoomMode)mode
- Swift
public func setZoomMode(_ mode: RecordZoomMode) -> Void
- C#
public virtual void setZoomMode(RecordZoomMode mode)