Table of Contents

Class VideoInputFrameRecorder

Namespace
easyar

Input frame recorder. Besitzt einen input frame input port und einen input frame output port, um durchlaufende input frames in einer EIF MKV-Datei zu speichern. Alle Mitglieder dieser Klasse sind thread-safe.

VideoInputFrameRecorder

Methoden

isAvailable

Prüft, ob es verfügbar ist. Gibt true nur auf MacOS, iOS und Android zurück.

bool easyar_VideoInputFrameRecorder_isAvailable(void)
static bool isAvailable()
public static boolean isAvailable()
companion object fun isAvailable(): Boolean
+ (bool)isAvailable
public static func isAvailable() -> Bool
public static bool isAvailable()

Rückgabewert

Typ Beschreibung
Boolean

input

Input port.

void easyar_VideoInputFrameRecorder_input(easyar_VideoInputFrameRecorder * This, easyar_InputFrameSink * * Return)
std::shared_ptr<InputFrameSink> input()
public @Nonnull InputFrameSink input()
fun input(): InputFrameSink
- (easyar_InputFrameSink *)input
public func input() -> InputFrameSink
public virtual InputFrameSink input()

Rückgabewert

Typ Beschreibung
InputFrameSink

accelerometerResultSink

Optional. Accelerometer result input port. Siehe AccelerometerResultSink.

void easyar_VideoInputFrameRecorder_accelerometerResultSink(easyar_VideoInputFrameRecorder * This, easyar_AccelerometerResultSink * * Return)
std::shared_ptr<AccelerometerResultSink> accelerometerResultSink()
public @Nonnull AccelerometerResultSink accelerometerResultSink()
fun accelerometerResultSink(): AccelerometerResultSink
- (easyar_AccelerometerResultSink *)accelerometerResultSink
public func accelerometerResultSink() -> AccelerometerResultSink
public virtual AccelerometerResultSink accelerometerResultSink()

Rückgabewert

Typ Beschreibung
AccelerometerResultSink

gyroscopeResultSink

Optional. Gyroscope result input port. Siehe GyroscopeResultSink.

void easyar_VideoInputFrameRecorder_gyroscopeResultSink(easyar_VideoInputFrameRecorder * This, easyar_GyroscopeResultSink * * Return)
std::shared_ptr<GyroscopeResultSink> gyroscopeResultSink()
public @Nonnull GyroscopeResultSink gyroscopeResultSink()
fun gyroscopeResultSink(): GyroscopeResultSink
- (easyar_GyroscopeResultSink *)gyroscopeResultSink
public func gyroscopeResultSink() -> GyroscopeResultSink
public virtual GyroscopeResultSink gyroscopeResultSink()

Rückgabewert

Typ Beschreibung
GyroscopeResultSink

attitudeSensorResultSink

Optional. Attitude sensor result input port. Siehe AttitudeSensorResultSink.

void easyar_VideoInputFrameRecorder_attitudeSensorResultSink(easyar_VideoInputFrameRecorder * This, easyar_AttitudeSensorResultSink * * Return)
std::shared_ptr<AttitudeSensorResultSink> attitudeSensorResultSink()
public @Nonnull AttitudeSensorResultSink attitudeSensorResultSink()
fun attitudeSensorResultSink(): AttitudeSensorResultSink
- (easyar_AttitudeSensorResultSink *)attitudeSensorResultSink
public func attitudeSensorResultSink() -> AttitudeSensorResultSink
public virtual AttitudeSensorResultSink attitudeSensorResultSink()

Rückgabewert

Typ Beschreibung
AttitudeSensorResultSink

magnetometerResultSink

Optional. Magnetometer result input port. Siehe MagnetometerResultSink.

void easyar_VideoInputFrameRecorder_magnetometerResultSink(easyar_VideoInputFrameRecorder * This, easyar_MagnetometerResultSink * * Return)
std::shared_ptr<MagnetometerResultSink> magnetometerResultSink()
public @Nonnull MagnetometerResultSink magnetometerResultSink()
fun magnetometerResultSink(): MagnetometerResultSink
- (easyar_MagnetometerResultSink *)magnetometerResultSink
public func magnetometerResultSink() -> MagnetometerResultSink
public virtual MagnetometerResultSink magnetometerResultSink()

Rückgabewert

Typ Beschreibung
MagnetometerResultSink

locationResultSink

Optional. Location result input port. Siehe LocationResultSink.

void easyar_VideoInputFrameRecorder_locationResultSink(easyar_VideoInputFrameRecorder * This, easyar_LocationResultSink * * Return)
std::shared_ptr<LocationResultSink> locationResultSink()
public @Nonnull LocationResultSink locationResultSink()
fun locationResultSink(): LocationResultSink
- (easyar_LocationResultSink *)locationResultSink
public func locationResultSink() -> LocationResultSink
public virtual LocationResultSink locationResultSink()

Rückgabewert

Typ Beschreibung
LocationResultSink

proximityLocationResultSink

Optional. Proximity location result input port. Siehe ProximityLocationResultSink.

void easyar_VideoInputFrameRecorder_proximityLocationResultSink(easyar_VideoInputFrameRecorder * This, easyar_ProximityLocationResultSink * * Return)
std::shared_ptr<ProximityLocationResultSink> proximityLocationResultSink()
public @Nonnull ProximityLocationResultSink proximityLocationResultSink()
fun proximityLocationResultSink(): ProximityLocationResultSink
- (easyar_ProximityLocationResultSink *)proximityLocationResultSink
public func proximityLocationResultSink() -> ProximityLocationResultSink
public virtual ProximityLocationResultSink proximityLocationResultSink()

Rückgabewert

Typ Beschreibung
ProximityLocationResultSink

bufferRequirement

Die Anzahl der camera buffers, die derzeit von dieser Komponente belegt werden.

int easyar_VideoInputFrameRecorder_bufferRequirement(easyar_VideoInputFrameRecorder * This)
int bufferRequirement()
public int bufferRequirement()
fun bufferRequirement(): Int
- (int)bufferRequirement
public func bufferRequirement() -> Int32
public virtual int bufferRequirement()

Rückgabewert

Typ Beschreibung
Int32

output

Output port.

void easyar_VideoInputFrameRecorder_output(easyar_VideoInputFrameRecorder * 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()

Rückgabewert

Typ Beschreibung
InputFrameSource

create

Erstellt.

void easyar_VideoInputFrameRecorder_create(easyar_VideoInputFrameRecorder * * Return)
static std::shared_ptr<VideoInputFrameRecorder> create()
public static @Nonnull VideoInputFrameRecorder create()
companion object fun create(): VideoInputFrameRecorder
+ (easyar_VideoInputFrameRecorder *)create
public static func create() -> VideoInputFrameRecorder
public static VideoInputFrameRecorder create()

Rückgabewert

Typ Beschreibung
VideoInputFrameRecorder

start

Startet die Datenaufzeichnung. Die Definitionen von cameraDeviceType, cameraOrientation und initialScreenRotation sind dieselben wie in CameraParameters. initialScreenRotation ist die anfängliche Bildschirmrotationsrichtung beim Aufzeichnen von Daten, und das Rendering bei der Wiedergabe verwendet diese Richtung als Referenz.

bool easyar_VideoInputFrameRecorder_start(easyar_VideoInputFrameRecorder * This, easyar_String * filePath, easyar_CameraDeviceType cameraDeviceType, int cameraOrientation, int initialScreenRotation, easyar_VideoInputFrameRecorderVideoCodec codec, int width, int height, double frameRate, easyar_String * metadata)
bool start(std::string filePath, CameraDeviceType cameraDeviceType, int cameraOrientation, int initialScreenRotation, VideoInputFrameRecorderVideoCodec codec, int width, int height, double frameRate, std::string metadata)
public boolean start(java.lang.@Nonnull String filePath, int cameraDeviceType, int cameraOrientation, int initialScreenRotation, int codec, int width, int height, double frameRate, java.lang.@Nonnull String metadata)
fun start(filePath: String, cameraDeviceType: Int, cameraOrientation: Int, initialScreenRotation: Int, codec: Int, width: Int, height: Int, frameRate: Double, metadata: String): Boolean
- (bool)start:(NSString *)filePath cameraDeviceType:(easyar_CameraDeviceType)cameraDeviceType cameraOrientation:(int)cameraOrientation initialScreenRotation:(int)initialScreenRotation codec:(easyar_VideoInputFrameRecorderVideoCodec)codec width:(int)width height:(int)height frameRate:(double)frameRate metadata:(NSString *)metadata
public func start(_ filePath: String, _ cameraDeviceType: CameraDeviceType, _ cameraOrientation: Int32, _ initialScreenRotation: Int32, _ codec: VideoInputFrameRecorderVideoCodec, _ width: Int32, _ height: Int32, _ frameRate: Double, _ metadata: String) -> Bool
public virtual bool start(string filePath, CameraDeviceType cameraDeviceType, int cameraOrientation, int initialScreenRotation, VideoInputFrameRecorderVideoCodec codec, int width, int height, double frameRate, string metadata)

Parameter

Name Typ Beschreibung
filePath String
cameraDeviceType CameraDeviceType
cameraOrientation Int32
initialScreenRotation Int32
codec VideoInputFrameRecorderVideoCodec
width Int32
height Int32
frameRate Double
metadata String

Rückgabewert

Typ Beschreibung
Boolean

stop

Stoppt die Datenaufzeichnung. Diese Methode stoppt nur die Aufzeichnung; die Verbindung wird nicht beeinflusst.

void easyar_VideoInputFrameRecorder_stop(easyar_VideoInputFrameRecorder * This)
void stop()
public void stop()
fun stop(): Unit
- (void)stop
public func stop() -> Void
public virtual void stop()

Rückgabewert

Typ Beschreibung
Void

setAutomaticCompletionCallback

Legt den callback für den automatischen Abschluss der Aufzeichnung fest.

void easyar_VideoInputFrameRecorder_setAutomaticCompletionCallback(easyar_VideoInputFrameRecorder * This, easyar_CallbackScheduler * callbackScheduler, easyar_OptionalOfFunctorOfVoidFromVideoInputFrameRecorderCompletionReason automaticCompletionCallback)
void setAutomaticCompletionCallback(std::shared_ptr<CallbackScheduler> callbackScheduler, std::optional<std::function<void(VideoInputFrameRecorderCompletionReason)>> automaticCompletionCallback)
public void setAutomaticCompletionCallback(@Nonnull CallbackScheduler callbackScheduler, @Nullable FunctorOfVoidFromVideoInputFrameRecorderCompletionReason automaticCompletionCallback)
fun setAutomaticCompletionCallback(callbackScheduler: CallbackScheduler, automaticCompletionCallback: FunctorOfVoidFromVideoInputFrameRecorderCompletionReason?): Unit
- (void)setAutomaticCompletionCallback:(easyar_CallbackScheduler *)callbackScheduler automaticCompletionCallback:(void (^)(easyar_VideoInputFrameRecorderCompletionReason))automaticCompletionCallback
public func setAutomaticCompletionCallback(_ callbackScheduler: CallbackScheduler, _ automaticCompletionCallback: ((VideoInputFrameRecorderCompletionReason) -> Void)?) -> Void
public virtual void setAutomaticCompletionCallback(CallbackScheduler callbackScheduler, Optional<Action<VideoInputFrameRecorderCompletionReason>> automaticCompletionCallback)

Parameter

Name Typ Beschreibung
callbackScheduler CallbackScheduler
automaticCompletionCallback Optional<Action<VideoInputFrameRecorderCompletionReason>>

Rückgabewert

Typ Beschreibung
Void