MediaMuxer Constructors
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
MediaMuxer(FileDescriptor, MuxerOutputType) |
Creates a media muxer that writes to the specified FileDescriptor. |
MediaMuxer(String, MuxerOutputType) |
Creates a media muxer that writes to the specified path. |
MediaMuxer(FileDescriptor, MuxerOutputType)
Creates a media muxer that writes to the specified FileDescriptor.
[Android.Runtime.Register(".ctor", "(Ljava/io/FileDescriptor;I)V", "", ApiSince=26)]
public MediaMuxer (Java.IO.FileDescriptor fd, Android.Media.MuxerOutputType format);
[<Android.Runtime.Register(".ctor", "(Ljava/io/FileDescriptor;I)V", "", ApiSince=26)>]
new Android.Media.MediaMuxer : Java.IO.FileDescriptor * Android.Media.MuxerOutputType -> Android.Media.MediaMuxer
Parameters
The FileDescriptor of the output media file. If format
is
OutputFormat#MUXER_OUTPUT_WEBM
, fd
must be open in read-write mode.
Otherwise, write mode is sufficient, but read-write is also accepted.
- format
- MuxerOutputType
The format of the output media file.
- Attributes
Remarks
Creates a media muxer that writes to the specified FileDescriptor.
The caller must not use the file referenced by the specified fd
before calling #stop
.
It is the caller's responsibility to close the file descriptor, which is safe to do so as soon as this call returns.
Java documentation for android.media.MediaMuxer.MediaMuxer(java.io.FileDescriptor, int)
.
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
MediaMuxer(String, MuxerOutputType)
Creates a media muxer that writes to the specified path.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public MediaMuxer (string path, Android.Media.MuxerOutputType format);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Android.Media.MediaMuxer : string * Android.Media.MuxerOutputType -> Android.Media.MediaMuxer
Parameters
- path
- String
The path of the output media file.
- format
- MuxerOutputType
The format of the output media file.
- Attributes
Exceptions
if failed to open the file for write
Remarks
Creates a media muxer that writes to the specified path.
The caller must not use the file path
before calling #stop
.
Java documentation for android.media.MediaMuxer.MediaMuxer(java.lang.String, int)
.
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.