public class
RecordingConfig
Configuration related to session recording.
Public Constructors
|
RecordingConfig(Session session)
|
Public Methods
RecordingConfig
|
|
boolean
|
getAutoStopOnPause()
Gets the setting that indicates whether the recording should stop automatically when the ARCore
session is paused.
|
String
|
getMp4DatasetFilePath()
This method is deprecated.
Please use
getMp4DatasetUri() to get the recording location.
|
Uri
|
getMp4DatasetUri()
Gets the
Uri that the MP4 dataset will be recorded to. |
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)
This method is deprecated.
Please use
setMp4DatasetUri(Uri) to set the recording location.
|
RecordingConfig
|
setMp4DatasetUri(Uri mp4DatasetUri)
Set MP4 recording dataset
Uri . |
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
public RecordingConfig (Session session)
RecordingConfig
public RecordingConfig( Session session )
Details | |||
---|---|---|---|
Parameters |
|
Public Methods
public RecordingConfig addTrack (Track track)
addTrack
public RecordingConfig addTrack( Track track )
Configures and adds a Track
for recording.
Details | |||
---|---|---|---|
Parameters |
|
public boolean getAutoStopOnPause ()
getAutoStopOnPause
public boolean getAutoStopOnPause()
Gets the setting that indicates whether the recording should stop automatically when the ARCore session is paused.
public String getMp4DatasetFilePath ()
getMp4DatasetFilePath
public String getMp4DatasetFilePath()
This method was deprecated.
Please use getMp4DatasetUri()
to get the recording location.
Gets the file path to save an MP4 dataset file for the recording.
This will return null
if the output was set with setMp4DatasetUri(Uri)
.
public Uri getMp4DatasetUri ()
getMp4DatasetUri
public Uri getMp4DatasetUri()
Gets the Uri
that the MP4 dataset will be recorded to.
This will return null
if the output was set with setMp4DatasetFilePath(String)
.
public int getRecordingRotation ()
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).
public RecordingConfig setAutoStopOnPause (boolean enable)
setAutoStopOnPause
public RecordingConfig setAutoStopOnPause( boolean enable )
Specify whether recording should stop automatically when the ARCore session is paused.
Details | |||
---|---|---|---|
Parameters |
|
public RecordingConfig setMp4DatasetFilePath (String mp4DatasetFilePath)
setMp4DatasetFilePath
public RecordingConfig setMp4DatasetFilePath( String mp4DatasetFilePath )
This method was deprecated.
Please use setMp4DatasetUri(Uri)
to set the recording location.
Sets the file path to save an MP4 dataset file for the recording.
The app must have permission to write to mp4DatasetFilePath
. See Storage updates in
Android 11 for potential limitations with file paths on Android 11 and later.
Details | |||
---|---|---|---|
Parameters |
|
public RecordingConfig setMp4DatasetUri (Uri mp4DatasetUri)
setMp4DatasetUri
public RecordingConfig setMp4DatasetUri( Uri mp4DatasetUri )
Set MP4 recording dataset Uri
.
This will override any output set by setMp4DatasetFilePath(String)
.
The Uri
must represent a resource that supports lseek
. Otherwise, Session.startRecording(RecordingConfig)
will throw an IllegalArgumentException
when
called.
Details | |||
---|---|---|---|
Parameters |
|
public RecordingConfig setRecordingRotation (int rotation)
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).
Details | |||
---|---|---|---|
Parameters |
|