media.stopRecordAudio - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.media.stopRecordAudio

API μ„€λͺ…

  • μŒμ„± λ…ΉμŒ 쀑지 API
  • μŒμ„± λ…ΉμŒμ„ 쀑지함
  • μŒμ„± λ…ΉμŒ 쀑지 APIλŠ” μ¦‰μ‹œ μ‘λ‹΅ν•˜λ©°, media.onVoiceRecordComplete 에 였λ₯˜ 이벀트λ₯Ό 503으둜 전달함

API ꡬ쑰

  • function stopRecordAudio(options,callback)
  • options
    • null
  • result_cd
    • 200: 성곡
    • 404: μŒμ„± λ…ΉμŒ μš”μ²­ 쀑이 μ•„λ‹˜
    • 500: μ‹œμŠ€ν…œ Error
  • extra
    • null

μ‚¬μš© μ˜ˆμ‹œ

gigagenie.media.onVoiceRecordComplete = function (result_cd, inBuffer) {
    if (result_cd === 200) {
        console.log("recording success");
    } else if (result_cd === 503) {
        console.log("recording interruppted");
    } else console.log("recording fail:" + result_cd);
};
gigagenie.media.stopRecordAudio(null, function (result_cd, result_msg, extra) {
    console.log(result_cd);
});