MediaRecorder.SetNextOutputFile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetNextOutputFile(File) |
Sets the next output file to be used when the maximum filesize is reached on the prior
output |
SetNextOutputFile(FileDescriptor) |
Sets the next output file descriptor to be used when the maximum filesize is reached
on the prior output |
SetNextOutputFile(File)
Sets the next output file to be used when the maximum filesize is reached on the prior
output #setOutputFile
or #setNextOutputFile
).
[Android.Runtime.Register("setNextOutputFile", "(Ljava/io/File;)V", "GetSetNextOutputFile_Ljava_io_File_Handler", ApiSince=26)]
public virtual void SetNextOutputFile (Java.IO.File? file);
[<Android.Runtime.Register("setNextOutputFile", "(Ljava/io/File;)V", "GetSetNextOutputFile_Ljava_io_File_Handler", ApiSince=26)>]
abstract member SetNextOutputFile : Java.IO.File -> unit
override this.SetNextOutputFile : Java.IO.File -> unit
Parameters
- file
- File
The file to use.
- Attributes
Remarks
Sets the next output file to be used when the maximum filesize is reached on the prior output #setOutputFile
or #setNextOutputFile
). File should be seekable. After setting the next output file, application should not use the file until #stop
. Application must call this after receiving on the android.media.MediaRecorder.OnInfoListener
a "what" code of #MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING
and before receiving a "what" code of #MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED
. The file is not used until switching to that output. Application will receive #MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED
when the next output file is used. Application will not be able to set a new output file if the previous one has not been used. Application is responsible for cleaning up unused files after #stop
is called.
Java documentation for android.media.MediaRecorder.setNextOutputFile(java.io.File)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SetNextOutputFile(FileDescriptor)
Sets the next output file descriptor to be used when the maximum filesize is reached
on the prior output #setOutputFile
or #setNextOutputFile
).
[Android.Runtime.Register("setNextOutputFile", "(Ljava/io/FileDescriptor;)V", "GetSetNextOutputFile_Ljava_io_FileDescriptor_Handler", ApiSince=26)]
public virtual void SetNextOutputFile (Java.IO.FileDescriptor? fd);
[<Android.Runtime.Register("setNextOutputFile", "(Ljava/io/FileDescriptor;)V", "GetSetNextOutputFile_Ljava_io_FileDescriptor_Handler", ApiSince=26)>]
abstract member SetNextOutputFile : Java.IO.FileDescriptor -> unit
override this.SetNextOutputFile : Java.IO.FileDescriptor -> unit
Parameters
an open file descriptor to be written into.
- Attributes
Remarks
Sets the next output file descriptor to be used when the maximum filesize is reached on the prior output #setOutputFile
or #setNextOutputFile
). File descriptor must be seekable and writable. After setting the next output file, application should not use the file referenced by this file descriptor until #stop
. It is the application's responsibility to close the file descriptor. It is safe to do so as soon as this call returns. Application must call this after receiving on the android.media.MediaRecorder.OnInfoListener
a "what" code of #MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING
and before receiving a "what" code of #MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED
. The file is not used until switching to that output. Application will receive#MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED
when the next output file is used. Application will not be able to set a new output file if the previous one has not been used. Application is responsible for cleaning up unused files after #stop
is called.
Java documentation for android.media.MediaRecorder.setNextOutputFile(java.io.FileDescriptor)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.