文档目录搜索⌘K

文档24/7 频道

JSON 格式的节目指南(EPG)

频道以 JSON 格式发布节目指南和当前状态——可用于制作“正在播出”小组件或电视节目单。

链接位于频道 Overview 标签页的 Channel data as JSON 区块中:

数据URL
Programme guide (JSON)https://stream.dodocast.com/public/ch/<code>/epg
Channel state (JSON)——正在播出和即将播出的内容https://stream.dodocast.com/public/ch/<code>
  • 默认情况下,节目指南覆盖未来 24 小时。如需其他时间范围,请以毫秒级 Unix 时间传入 ?from= 和 ?to=,最长两周。
  • 频道处于发布状态时才能获取这些数据。

示例:2026 年 10 月 11 日至 18 日这一周(UTC):

bash
curl "https://stream.dodocast.com/public/ch/<code>/epg?from=1791676800000&to=1792281600000"

提示

Player SDK 已封装了这些接口:getChannelState() 返回当前和下一个节目,getChannelGuide() 返回最长两周的节目指南,progress() 返回当前节目已播放到的位置。

更新于:

    ↑ ↓ 选择,Enter 打开,Esc 关闭