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");
    }
});