EMVoiceMessageBody constructor

EMVoiceMessageBody(File voiceFile, int duration)

创建方法,voiceFile: 要发送的音频文件; duration: 文件时长

Implementation

EMVoiceMessageBody(File voiceFile, int duration)

    : this._file = voiceFile,
      this._length = duration,
      super(voiceFile.path);