Class MediaRecorderOptions

java.lang.Object
one.jpro.platform.media.recorder.impl.MediaRecorderOptions

public class MediaRecorderOptions extends Object
Media recorder options for the WebMediaRecorder.
Author:
Besmir Beqiri
  • Constructor Details

    • MediaRecorderOptions

      public MediaRecorderOptions()
  • Method Details

    • getMimeType

      public String getMimeType()
      Returns a MIME type specifying the format for the resulting media.
      Returns:
      a string form of the MIME type
    • mimeType

      public MediaRecorderOptions mimeType(String 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

      public Number getAudioBitsPerSecond()
      Returns the audio bitrate of the media.
      Returns:
      the audio bitrate per second
    • audioBitsPerSecond

      public MediaRecorderOptions audioBitsPerSecond(int audioBitsPerSecond)
      The chosen bitrate for the audio component of the media.
    • getVideoBitsPerSecond

      public Number getVideoBitsPerSecond()
      Returns the audio bitrate of the media.
      Returns:
      the audio bitrate per second
    • videoBitsPerSecond

      public MediaRecorderOptions videoBitsPerSecond(int videoBitsPerSecond)
      The chosen bitrate for the video component of the media.
    • getBitsPerSecond

      public Number getBitsPerSecond()
    • bitsPerSecond

      public MediaRecorderOptions bitsPerSecond(int 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