Module one.jpro.platform.media
Class MediaRecorderOptions
java.lang.Object
one.jpro.platform.media.recorder.impl.MediaRecorderOptions
Media recorder options for the
WebMediaRecorder.- Author:
- Besmir Beqiri
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudioBitsPerSecond(int audioBitsPerSecond) The chosen bitrate for the audio component of the media.bitsPerSecond(int bitsPerSecond) The chosen bitrate for the audio and video components of the media.Returns the audio bitrate of the media.Returns a MIME type specifying the format for the resulting media.Returns the audio bitrate of the media.A MIME type specifying the format for the resulting media; you may specify the container format (the browser will select its preferred codecs for audio and/or video), or you may use the codecs parameter and/or the profiles parameter to provide detailed information about which codecs to use and how to configure them.org.json.JSONObjecttoJSON()Return the JSON representation for this object.videoBitsPerSecond(int videoBitsPerSecond) The chosen bitrate for the video component of the media.
-
Constructor Details
-
MediaRecorderOptions
public MediaRecorderOptions()
-
-
Method Details
-
getMimeType
Returns a MIME type specifying the format for the resulting media.- Returns:
- a string form of the MIME type
-
mimeType
A MIME type specifying the format for the resulting media; you may specify the container format (the browser will select its preferred codecs for audio and/or video), or you may use the codecs parameter and/or the profiles parameter to provide detailed information about which codecs to use and how to configure them. Applications can check in advance if a mimeType is supported by the user agent by calling MediaRecorder.isTypeSupported(). -
getAudioBitsPerSecond
Returns the audio bitrate of the media.- Returns:
- the audio bitrate per second
-
audioBitsPerSecond
The chosen bitrate for the audio component of the media. -
getVideoBitsPerSecond
Returns the audio bitrate of the media.- Returns:
- the audio bitrate per second
-
videoBitsPerSecond
The chosen bitrate for the video component of the media. -
getBitsPerSecond
-
bitsPerSecond
The chosen bitrate for the audio and video components of the media. This can be specified instead of the above two properties. If this is specified along with one or the other of the above properties, this will be used for the one that isn't specified.- Returns:
- a number value.
-
toJSON
public org.json.JSONObject toJSON()Return the JSON representation for this object.- Returns:
- a json object
-