VideoInputFramePlayer Class¶
Description¶
输入帧播放器。
有一个输入帧输出端口,用于从EIF MKV文件将输入帧取出。参考 概览 。
本类的所有成员都是线程安全的。
isAvailable¶
检查是否可用。只在Windows上返回true。
- C
bool easyar_VideoInputFramePlayer_isAvailable(void)
- C++
static bool isAvailable()
- Java
public static boolean isAvailable()
- Kotlin
companion object fun isAvailable(): Boolean
- Objective-C
+ (bool)isAvailable
- Swift
public static func isAvailable() -> Bool
- C#
public static bool isAvailable()
output¶
输出端口。
- C
void easyar_VideoInputFramePlayer_output(easyar_VideoInputFramePlayer * This, easyar_InputFrameSource * * Return)
- C++
std::shared_ptr<InputFrameSource> output()
- Java
public @Nonnull InputFrameSource output()
- Kotlin
fun output(): InputFrameSource
- Objective-C
- (easyar_InputFrameSource *)output
- Swift
public func output() -> InputFrameSource
- C#
public virtual InputFrameSource output()
accelerometerResultSource¶
加速度计结果输出端口。参考 AccelerometerResultSource 。
- C
void easyar_VideoInputFramePlayer_accelerometerResultSource(easyar_VideoInputFramePlayer * This, easyar_AccelerometerResultSource * * Return)
- C++
std::shared_ptr<AccelerometerResultSource> accelerometerResultSource()
- Java
public @Nonnull AccelerometerResultSource accelerometerResultSource()
- Kotlin
fun accelerometerResultSource(): AccelerometerResultSource
- Objective-C
- (easyar_AccelerometerResultSource *)accelerometerResultSource
- Swift
public func accelerometerResultSource() -> AccelerometerResultSource
- C#
public virtual AccelerometerResultSource accelerometerResultSource()
gyroscopeResultSource¶
陀螺仪结果输出端口。参考 GyroscopeResultSource 。
- C
void easyar_VideoInputFramePlayer_gyroscopeResultSource(easyar_VideoInputFramePlayer * This, easyar_GyroscopeResultSource * * Return)
- C++
std::shared_ptr<GyroscopeResultSource> gyroscopeResultSource()
- Java
public @Nonnull GyroscopeResultSource gyroscopeResultSource()
- Kotlin
fun gyroscopeResultSource(): GyroscopeResultSource
- Objective-C
- (easyar_GyroscopeResultSource *)gyroscopeResultSource
- Swift
public func gyroscopeResultSource() -> GyroscopeResultSource
- C#
public virtual GyroscopeResultSource gyroscopeResultSource()
attitudeSensorResultSource¶
姿态传感器结果输出端口。参考 AttitudeSensorResultSource 。
- C
void easyar_VideoInputFramePlayer_attitudeSensorResultSource(easyar_VideoInputFramePlayer * This, easyar_AttitudeSensorResultSource * * Return)
- C++
std::shared_ptr<AttitudeSensorResultSource> attitudeSensorResultSource()
- Java
public @Nonnull AttitudeSensorResultSource attitudeSensorResultSource()
- Kotlin
fun attitudeSensorResultSource(): AttitudeSensorResultSource
- Objective-C
- (easyar_AttitudeSensorResultSource *)attitudeSensorResultSource
- Swift
public func attitudeSensorResultSource() -> AttitudeSensorResultSource
- C#
public virtual AttitudeSensorResultSource attitudeSensorResultSource()
magnetometerResultSource¶
磁力计结果输出端口。参考 MagnetometerResultSource 。
- C
void easyar_VideoInputFramePlayer_magnetometerResultSource(easyar_VideoInputFramePlayer * This, easyar_MagnetometerResultSource * * Return)
- C++
std::shared_ptr<MagnetometerResultSource> magnetometerResultSource()
- Java
public @Nonnull MagnetometerResultSource magnetometerResultSource()
- Kotlin
fun magnetometerResultSource(): MagnetometerResultSource
- Objective-C
- (easyar_MagnetometerResultSource *)magnetometerResultSource
- Swift
public func magnetometerResultSource() -> MagnetometerResultSource
- C#
public virtual MagnetometerResultSource magnetometerResultSource()
locationResultSource¶
位置结果输出端口。参考 LocationResultSource 。
- C
void easyar_VideoInputFramePlayer_locationResultSource(easyar_VideoInputFramePlayer * This, easyar_LocationResultSource * * Return)
- C++
std::shared_ptr<LocationResultSource> locationResultSource()
- Java
public @Nonnull LocationResultSource locationResultSource()
- Kotlin
fun locationResultSource(): LocationResultSource
- Objective-C
- (easyar_LocationResultSource *)locationResultSource
- Swift
public func locationResultSource() -> LocationResultSource
- C#
public virtual LocationResultSource locationResultSource()
proximityLocationResultSource¶
邻近位置结果输出端口。参考 ProximityLocationResultSource 。
- C
void easyar_VideoInputFramePlayer_proximityLocationResultSource(easyar_VideoInputFramePlayer * This, easyar_ProximityLocationResultSource * * Return)
- C++
std::shared_ptr<ProximityLocationResultSource> proximityLocationResultSource()
- Java
public @Nonnull ProximityLocationResultSource proximityLocationResultSource()
- Kotlin
fun proximityLocationResultSource(): ProximityLocationResultSource
- Objective-C
- (easyar_ProximityLocationResultSource *)proximityLocationResultSource
- Swift
public func proximityLocationResultSource() -> ProximityLocationResultSource
- C#
public virtual ProximityLocationResultSource proximityLocationResultSource()
create¶
创建。
- C
void easyar_VideoInputFramePlayer_create(easyar_VideoInputFramePlayer * * Return)
- C++
static std::shared_ptr<VideoInputFramePlayer> create()
- Java
public static @Nonnull VideoInputFramePlayer create()
- Kotlin
companion object fun create(): VideoInputFramePlayer
- Objective-C
+ (easyar_VideoInputFramePlayer *)create
- Swift
public static func create() -> VideoInputFramePlayer
- C#
public static VideoInputFramePlayer create()
start¶
开始播放。
- C
bool easyar_VideoInputFramePlayer_start(easyar_VideoInputFramePlayer * This, easyar_String * filePath)
- C++
bool start(std::string filePath)
- Java
public boolean start(java.lang.@Nonnull String filePath)
- Kotlin
fun start(filePath: String): Boolean
- Objective-C
- (bool)start:(NSString *)filePath
- Swift
public func start(_ filePath: String) -> Bool
- C#
public virtual bool start(string filePath)
stop¶
停止播放。
- C
void easyar_VideoInputFramePlayer_stop(easyar_VideoInputFramePlayer * This)
- C++
void stop()
- Java
public void stop()
- Kotlin
fun stop(): Unit
- Objective-C
- (void)stop
- Swift
public func stop() -> Void
- C#
public virtual void stop()
pause¶
暂停播放。
- C
void easyar_VideoInputFramePlayer_pause(easyar_VideoInputFramePlayer * This)
- C++
void pause()
- Java
public void pause()
- Kotlin
fun pause(): Unit
- Objective-C
- (void)pause
- Swift
public func pause() -> Void
- C#
public virtual void pause()
resume¶
继续播放。
- C
bool easyar_VideoInputFramePlayer_resume(easyar_VideoInputFramePlayer * This)
- C++
bool resume()
- Java
public boolean resume()
- Kotlin
fun resume(): Boolean
- Objective-C
- (bool)resume
- Swift
public func resume() -> Bool
- C#
public virtual bool resume()
totalTime¶
预期的总播放时间。单位为秒。录制过程非正常中断时,可能缺少。
- C
easyar_OptionalOfDouble easyar_VideoInputFramePlayer_totalTime(easyar_VideoInputFramePlayer * This)
- C++
std::optional<double> totalTime()
- Java
public java.lang.@Nullable Double totalTime()
- Kotlin
fun totalTime(): Double?
- Objective-C
- (NSNumber *)totalTime
- Swift
public func totalTime() -> Double?
- C#
public virtual Optional<double> totalTime()
currentTime¶
当前的播放时刻。单位为秒。初始为0。
- C
double easyar_VideoInputFramePlayer_currentTime(easyar_VideoInputFramePlayer * This)
- C++
double currentTime()
- Java
public double currentTime()
- Kotlin
fun currentTime(): Double
- Objective-C
- (double)currentTime
- Swift
public func currentTime() -> Double
- C#
public virtual double currentTime()
isSeekable¶
是否可定位当前播放时刻。录制过程非正常中断时,可能导致缺少索引数据,而无法设定当前播放时间。
- C
bool easyar_VideoInputFramePlayer_isSeekable(const easyar_VideoInputFramePlayer * This)
- C++
bool isSeekable()
- Java
public boolean isSeekable()
- Kotlin
fun isSeekable(): Boolean
- Objective-C
- (bool)isSeekable
- Swift
public func isSeekable() -> Bool
- C#
public virtual bool isSeekable()
seek¶
设定当前播放时刻。单位为秒。如果缺少索引数据,则返回false。
- C
bool easyar_VideoInputFramePlayer_seek(easyar_VideoInputFramePlayer * This, double time)
- C++
bool seek(double time)
- Java
public boolean seek(double time)
- Kotlin
fun seek(time: Double): Boolean
- Objective-C
- (bool)seek:(double)time
- Swift
public func seek(_ time: Double) -> Bool
- C#
public virtual bool seek(double time)
speed¶
当前的播放速度。初始为1。
- C
double easyar_VideoInputFramePlayer_speed(const easyar_VideoInputFramePlayer * This)
- C++
double speed()
- Java
public double speed()
- Kotlin
fun speed(): Double
- Objective-C
- (double)speed
- Swift
public func speed() -> Double
- C#
public virtual double speed()
setSpeed¶
设定当前播放速度。
- C
void easyar_VideoInputFramePlayer_setSpeed(easyar_VideoInputFramePlayer * This, double _value)
- C++
void setSpeed(double _value)
- Java
public void setSpeed(double value)
- Kotlin
fun setSpeed(value: Double): Unit
- Objective-C
- (void)setSpeed:(double)_value
- Swift
public func setSpeed(_ value: Double) -> Void
- C#
public virtual void setSpeed(double @value)
initalScreenRotation¶
录制数据时的初始屏幕旋转方向。
- C
int easyar_VideoInputFramePlayer_initalScreenRotation(easyar_VideoInputFramePlayer * This)
- C++
int initalScreenRotation()
- Java
public int initalScreenRotation()
- Kotlin
fun initalScreenRotation(): Int
- Objective-C
- (int)initalScreenRotation
- Swift
public func initalScreenRotation() -> Int32
- C#
public virtual int initalScreenRotation()
metadata¶
录制数据时的元数据。
- C
void easyar_VideoInputFramePlayer_metadata(easyar_VideoInputFramePlayer * This, easyar_String * * Return)
- C++
std::string metadata()
- Java
public java.lang.@Nonnull String metadata()
- Kotlin
fun metadata(): String
- Objective-C
- (NSString *)metadata
- Swift
public func metadata() -> String
- C#
public virtual string metadata()
isCompleted¶
获取是否已完成。
- C
bool easyar_VideoInputFramePlayer_isCompleted(easyar_VideoInputFramePlayer * This)
- C++
bool isCompleted()
- Java
public boolean isCompleted()
- Kotlin
fun isCompleted(): Boolean
- Objective-C
- (bool)isCompleted
- Swift
public func isCompleted() -> Bool
- C#
public virtual bool isCompleted()