Package io.agora.rtc2

Class AgoraMediaRecorder.MediaRecorderConfiguration

java.lang.Object
io.agora.rtc2.AgoraMediaRecorder.MediaRecorderConfiguration
Enclosing class:
AgoraMediaRecorder

public static class AgoraMediaRecorder.MediaRecorderConfiguration extends Object
Configurations for the local audio and video recording.
Since:
v3.5.2
  • Field Details

    • storagePath

      public String storagePath
      The absolute path (including the filename extensions) for the recording file. For example, `/storage/emulated/0/Android/data//files/example.mp4`.
    • containerFormat

      public int containerFormat
      The format of the recording file. The SDK currently supports only CONTAINER_MP4(1).
    • streamType

      public int streamType
      The recording content: - STREAM_TYPE_AUDIO(0x1): Only audio. - STREAM_TYPE_VIDEO(0x2): Only video. - STREAM_TYPE_BOTH(0x3): (Default) Audio and video.
    • maxDurationMs

      public int maxDurationMs
      The maximum recording duration, in milliseconds. The default value is 120000.
    • recorderInfoUpdateInterval

      public int recorderInfoUpdateInterval
      The interval (ms) of updating the recording information. The value range is [1000,10000]. Based on the set value of `recorderInfoUpdateInterval`, the SDK triggers the onRecorderInfoUpdated callback to report the updated recording information.
    • width

      public int width
      The video width
    • height

      public int height
      The video height
    • fps

      public int fps
      The video fps
    • sample_rate

      public int sample_rate
      The audio sample rate
    • channel_num

      public int channel_num
      The audio channel nums
    • videoSourceType

      public int videoSourceType
      The video source just for out channel recoder
  • Constructor Details

    • MediaRecorderConfiguration

      public MediaRecorderConfiguration(String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval)
    • MediaRecorderConfiguration

      public MediaRecorderConfiguration(String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval, int width, int height, int fps, int sample_rate, int channel_num, int videoSourceType)