setPlayContent (v1.0)
Estimated reading time: 1 minute
- 此API提供了播放内容的函数的功能。使用此API,指定内容在请求参数中显示给用户。
语法
- http://<Base URL>/avContent
认证级别
- generic
需求
- params' Elements
- An object composed of the following pair(s).
name | type | multiplicity | default | description |
---|---|---|---|---|
uri | string | 1 | URI obtained from getContentList API. Refer to here to learn the URI structure in detail. |
- JSON Example
-
{ "method": "setPlayContent", "id": 101, "params": [{"uri": "extInput:hdmi?port=2"}], "version": "1.0" }
反馈
- result's Elements
- Not necessary.
- JSON Example
-
{ "result": [], "id": 101 }
- Error Code
- The following error codes are important for this API. Refer to error code for other errors.
code | Explanation |
---|---|
41001 | Content does not exist. |
41011 | Channel is fixed by USB recording. |
41012 | Channel is fixed by SCART recording. |
附录
指导需求
- 这个API没有播放的列表类型有:
- 媒体文件在USB存储。例如,mp3音乐文件jpeg文件,或mp4视频文件。
- 由DLNA服务器提供的媒体文件。
Last modified: 13 Feb 2019