media.getOTVChannel - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.media.getOTVChannel

API ์„ค๋ช…

  • OTV ์ฑ„๋„ ์กฐํšŒ API
  • ํ˜„์žฌ ์‹œ์ฒญ์ค‘์ธ OTV ์ฑ„๋„์„ ์กฐํšŒํ•จ
  • Overlay Window ๊ฐ€ ์ ์šฉ๋œ appid ๋งŒ ์ด์šฉ ๊ฐ€๋Šฅ

API ๊ตฌ์กฐ

  • function getOTVChannel(options,callback)
  • options
    • null
  • 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);
    };
});