media.startWebRTCAudio - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.media.startWebRTCAudio

API ์„ค๋ช…

  • WebRTC Audio ์—ฐ๊ฒฐ API
  • media.createChannel ์—์„œ ์ƒ์„ฑํ•œ channel์—(channeltype='webrtcaudio') WebRTC ํ”„๋กœํ† ์ฝœ ๊ธฐ๋ฐ˜ Audio Stream ์„ ์—ฐ๊ฒฐํ•จ
  • ๋‹จ๋ฐฉํ–ฅ์œผ๋กœ๋งŒ ์ง€์›

API ๊ตฌ์กฐ

  • function startWebRTCAudio(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.startWebRTCAudio(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("startWebRTCAudio Success..");
    } else {
        console.log("startWebRTCAudio Fail");
    }
});