Skip to content

Instantly share code, notes, and snippets.

@ihipop
Created February 24, 2021 10:01
Show Gist options
  • Save ihipop/db85df42c9bca807df5a9be936f3aa3e to your computer and use it in GitHub Desktop.
Save ihipop/db85df42c9bca807df5a9be936f3aa3e to your computer and use it in GitHub Desktop.
M3C 机顶盒API

基本格式说明

成功响应

<LIST>
	<result r="0">Success</result>
</LIST>

失败响应

<LIST>
	<result r="-1">snapshot failed</result>
	<desc>失败说明</desc>
</LIST>
<LIST>
	<result>failed</result>
	<desc>open file failed</desc>
</LIST>

User-Agent

User-Agent: STB

重启

GET http://192.168.59.105:9000/request?cmd=reboot

命令列表

GET http://192.168.59.105:9000/request?cmd=

节目单

GET http://192.168.59.105:9000/request?cmd=channel_list&mode=get

更新节目单

POST http://192.168.59.105:9000/request?cmd=channel_list&mode=update

读取CAM设置

GET http://192.168.59.105:9000/request?cmd=cam_cfg&mode=read&password=36999209

提交cam设置:

POST http://192.168.59.105:9000/request?cmd=cam_cfg&mode=write&password=36999209

截屏

GET http://192.168.59.105:9000/request?cmd=snapshot

获取文件

http://192.168.59.105:9000/request?cmd=get&option=file&mode=read&type=stream&password=36999209&path=/flashfile/c/CaSetting.xml

写入文件

POST http://192.168.59.105:9000/request?cmd=get&option=file&mode=write&type=stream&password=36999209&path=/flashfile/c/CaSetting.xml

遥控器

GET http://192.168.59.105:9000/request?cmd=remote&name=up

键名

up down 0-9 menu exit pgup/down epg mute sat back info ok radio red yellow green blue lang lr standby 空(still)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment