コード例 #1
0
 /// <summary>
 /// 停止录音
 /// </summary>
 /// <param name="isSend">是否发送到聊天组</param>
 /// <returns>音频的毫秒数,如果返回0, 表示录制失败, 或者时间不够</returns>
 public long StopRecord(bool isSend)
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         return(NativeManager.OnFuncCall <long>("StopRecord", isSend));
     }
     else if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         return(NativeManager.StopRecord(isSend));
     }
     return(0);
 }