media.getOTVChannel - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.media.getOTVChannel
API ์ค๋ช
- OTV ์ฑ๋ ์กฐํ API
- ํ์ฌ ์์ฒญ์ค์ธ OTV ์ฑ๋์ ์กฐํํจ
- Overlay Window ๊ฐ ์ ์ฉ๋ appid ๋ง ์ด์ฉ ๊ฐ๋ฅ
API ๊ตฌ์กฐ
- function getOTVChannel(options,callback)
options
result_cd
200
: ์ฑ๊ณต
406
: OTV ์คํ ์ค์ด ์๋
500
: ์์คํ
Error
extra
channelNo
: (String) Channel ๋ฒํธ(์ฑ๋ ์์ฒญ/๋
๋ฆฝํ ์ฑ ์คํ ์ํ๊ฐ ์๋ ๊ฒฝ์ฐ null)
channelName
: (String) ์ฑ๋ ์ด๋ฆ(์ฑ๋ ์์ฒญ/๋
๋ฆฝํ ์ฑ ์คํ ์ํ๊ฐ ์๋ ๊ฒฝ์ฐ null)
์ฌ์ฉ ์์
// callback ๋ฐฉ์
var options = {};
gigagenie.media.getOTVChannel(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log("channelNo: " + extra.channelNo);
console.log("channelName: " + extra.channelName);
};
});