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
์ฌ์ฉ ์์
// 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");
}
});