设置和获取屏幕旋转方向

555

# 设置和获取屏幕旋转方向

# 设置屏幕旋转方向

Path:

/api/screen_orientation

Method: POST

Content-type: application/json; charset=utf-8

接口描述: 设置屏幕旋转方向,可以设置的角度分别为0°,90°,180°,270°。(除A600 A800外的播放盒需要重启)

参数说明

名称 类型 示例 描述
orientation String 0 设置屏幕方向:0表示0°,1表示90°,2表示180°,3表示270°

请求示例

{"orientation": "0"}

# 获取屏幕旋转方向

Path:

/api/screen_orientation.json

Method: GET

Content-type: application/json; charset=utf-8

接口描述: 获取屏幕旋转方向。

响应参数

名称 类型 示例 描述
orientation String 0 设置屏幕方向:0表示0°,1表示90°,2表示180°,3表示270°

响应示例

{"orientation": "0"}