Google is committed to advancing racial equity for Black communities. See how.

RecordingConfig

public class RecordingConfig

Configuration related to session recording.

Public Constructors

Public Methods

RecordingConfig
addTrack(Track track)
Configures and adds a Track for recording.
boolean
getAutoStopOnPause()
Gets the setting that indicates whether the recording should stop automatically when the ARCore session is paused.
String
getMp4DatasetFilePath()
Gets the file path to save an MP4 dataset file for the recording.
int
getRecordingRotation()
Get the clockwise rotation in degrees that should be applied to the recorded image (0, 90, 180, or 270, or -1 for unspecified).
RecordingConfig
setAutoStopOnPause(boolean enable)
Specify whether recording should stop automatically when the ARCore session is paused.
RecordingConfig
setMp4DatasetFilePath(String mp4DatasetFilePath)
Sets the file path to save an MP4 dataset file for the recording.
RecordingConfig
setRecordingRotation(int rotation)
Specify the clockwise rotation in degrees that should be applied to the recorded image (0, 90, 180, or 270).

Inherited Methods

Public Constructors

RecordingConfig

public RecordingConfig(
  Session session
)

Parameters
session

Public Methods

addTrack

public RecordingConfig addTrack(
  Track track
)

Configures and adds a Track for recording.

Parameters
track

getAutoStopOnPause

public boolean getAutoStopOnPause()

Gets the setting that indicates whether the recording should stop automatically when the ARCore session is paused.

getMp4DatasetFilePath

public String getMp4DatasetFilePath()

Gets the file path to save an MP4 dataset file for the recording.

getRecordingRotation

public int getRecordingRotation()

Get the clockwise rotation in degrees that should be applied to the recorded image (0, 90, 180, or 270, or -1 for unspecified).

setAutoStopOnPause

public RecordingConfig setAutoStopOnPause(
  boolean enable
)

Specify whether recording should stop automatically when the ARCore session is paused.

Parameters
enable

setMp4DatasetFilePath

public RecordingConfig setMp4DatasetFilePath(
  String mp4DatasetFilePath
)

Sets the file path to save an MP4 dataset file for the recording.

Parameters
mp4DatasetFilePath

setRecordingRotation

public RecordingConfig setRecordingRotation(
  int rotation
)

Specify the clockwise rotation in degrees that should be applied to the recorded image (0, 90, 180, or 270).

Parameters
rotation