media.stopWebRTCAudio - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.media.stopWebRTCAudio

API μ„€λͺ…

  • WebRTC Audio μ—°κ²° ν•΄μ œ API
  • media.startWebRTCAudio μ—μ„œ μƒμ„±ν•œ webrtcaudio 연결을 ν•΄μ œν•¨

API ꡬ쑰

  • function stopWebRTCAudio(options,callback)
  • options
    • sessionid: (String, Mandatory) media.createChannel μ—μ„œ μƒμ„±ν•œ webrtcaudio Channel의 sessionid
  • result_cd
    • 200: 성곡
    • 500: μ‹œμŠ€ν…œ Error
  • extra
    • null

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

// callback 방식
var options = {};
options.sessionid = 'createchannelsessionid';
gigagenie.media.stopWebRTCAudio(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("stopWebRTCAudio Success..");
    } else {
        console.log("stopWebRTCAudio Fail");
    }
});