Table of Contents

Class InputFramePlayer

命名空间
easyar

输入帧播放器。 有一个输入帧输出端口,用于从EIF文件将输入帧取出。 本类的所有成员都是线程安全的。

InputFramePlayer

方法

output

输出端口。

void easyar_InputFramePlayer_output(easyar_InputFramePlayer * This, easyar_InputFrameSource * * Return)
std::shared_ptr<InputFrameSource> output()
public @Nonnull InputFrameSource output()
fun output(): InputFrameSource
- (easyar_InputFrameSource *)output
public func output() -> InputFrameSource
public virtual InputFrameSource output()

返回

类型 描述
InputFrameSource

create

创建。

void easyar_InputFramePlayer_create(easyar_InputFramePlayer * * Return)
static std::shared_ptr<InputFramePlayer> create()
public static @Nonnull InputFramePlayer create()
companion object fun create(): InputFramePlayer
+ (easyar_InputFramePlayer *)create
public static func create() -> InputFramePlayer
public static InputFramePlayer create()

返回

类型 描述
InputFramePlayer

start

开始播放。

bool easyar_InputFramePlayer_start(easyar_InputFramePlayer * This, easyar_String * filePath)
bool start(std::string filePath)
public boolean start(java.lang.@Nonnull String filePath)
fun start(filePath: String): Boolean
- (bool)start:(NSString *)filePath
public func start(_ filePath: String) -> Bool
public virtual bool start(string filePath)

参数

名称 类型 描述
filePath String

返回

类型 描述
Boolean

stop

停止播放。

void easyar_InputFramePlayer_stop(easyar_InputFramePlayer * This)
void stop()
public void stop()
fun stop(): Unit
- (void)stop
public func stop() -> Void
public virtual void stop()

返回

类型 描述
Void

pause

暂停播放。

void easyar_InputFramePlayer_pause(easyar_InputFramePlayer * This)
void pause()
public void pause()
fun pause(): Unit
- (void)pause
public func pause() -> Void
public virtual void pause()

返回

类型 描述
Void

resume

继续播放。

bool easyar_InputFramePlayer_resume(easyar_InputFramePlayer * This)
bool resume()
public boolean resume()
fun resume(): Boolean
- (bool)resume
public func resume() -> Bool
public virtual bool resume()

返回

类型 描述
Boolean

totalTime

预期的总播放时间。单位为秒。

double easyar_InputFramePlayer_totalTime(easyar_InputFramePlayer * This)
double totalTime()
public double totalTime()
fun totalTime(): Double
- (double)totalTime
public func totalTime() -> Double
public virtual double totalTime()

返回

类型 描述
Double

currentTime

当前的播放时刻。单位为秒。初始为0。

double easyar_InputFramePlayer_currentTime(easyar_InputFramePlayer * This)
double currentTime()
public double currentTime()
fun currentTime(): Double
- (double)currentTime
public func currentTime() -> Double
public virtual double currentTime()

返回

类型 描述
Double

initalScreenRotation

录制数据时的初始屏幕旋转方向。

int easyar_InputFramePlayer_initalScreenRotation(easyar_InputFramePlayer * This)
int initalScreenRotation()
public int initalScreenRotation()
fun initalScreenRotation(): Int
- (int)initalScreenRotation
public func initalScreenRotation() -> Int32
public virtual int initalScreenRotation()

返回

类型 描述
Int32

isCompleted

获取是否已完成。

bool easyar_InputFramePlayer_isCompleted(easyar_InputFramePlayer * This)
bool isCompleted()
public boolean isCompleted()
fun isCompleted(): Boolean
- (bool)isCompleted
public func isCompleted() -> Bool
public virtual bool isCompleted()

返回

类型 描述
Boolean