media.destroyChannel - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.media.destroyChannel

API μ„€λͺ…

  • Channel 제거 API
  • media.createChannel μ—μ„œ μƒμ„±ν•œ Channel을 μ œκ±°ν•¨

API ꡬ쑰

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

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

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