万店掌 开放平台 Start video play

open.shopweb.device.startPlayRecReq (Start video play)Sandbox debugging

Start video playing (Before accessing this interface, please visit the NVR daily video recording information interface to obtain the video information in which period of the day)

Interface description#

The environmentInterface methodSubmission methodDo you need a signatureHTTP request routing
Formal environmentopen.shopweb.device.startPlayRecReqPOSTtruehttp://openapi.opretail.com/m.api

Common request parameters#

ParametersTypes ofIs requiredThe maximum lengthDescriptionExample values
_aidStringTrue20Open platform system number, fixed to S107S107
_akeyStringTrue20Opretail open platform assigns developer keys to third partiesObtained after certification of platform developer
_mtStringTrue100Interface nameopen.shopweb.device.startPlayRecReq
_smStringTrue100Signature algorithm md5,sha1md5
_requestModeStringTrue100Request method post,getPOST
_versionStringTrue100Version numberv1
_timestampStringTrue100TimestampyyyyMMddHHmmss format
_sigStringTrue32Signature tokenGenerated according to the signature algorithm, see the signature algorithm rules for details
_formatStringFalse10Format typeCurrently only supports json by default

Business request parameters#

ParametersTypes ofIs requiredThe maximum lengthDescriptionExample values
id
stringDevice ID(The Video Device ID obtained by the Get Device List interface)1
startTime
stringStart Time2018-09-18 00:00:00
endTime
stringEnd Time2018-09-18 00:00:00
playRate
int×Multiply speed playback (1,2,4,8), no pass default normal playback2

Common response parameters#

ParametersTypes ofThe maximum lengthDescriptionExample values
statJSON-Gateway status (specific parameters are described below :)View
stat.cidString100Http request identifier
stat.codeString100Gateway return code
stat.codenameString100Gateway return code name
stat.systimeStringLongThe current time of the interface call
resultString100Interface returns prompt information
dataJSON-Business information returned by the interface call (generally json format data, the specific data format will be defined in the business return parameters)View

Business return parameters#

ParameterTypes ofWhether to returnReturns the maximum lengthDescriptionExample values
result
int×11Check the success or fail0:查询成功
flv
string×100Video urlhttp://118.31.174.18:5581/rtsp/26a85850-1e1e-4a2a-8a4a-af77c54cf4fa/live.flv
relStartTime
string×100Video recording start time (timestamp)1591574400
rtsp
string×100rtmp Streaming Addressrtsp://118.31.174.18:5555/rtsp/4e8230c2-3651-48f8-8f85-47466cf03a18
tlshls
string×100https hls stream address(.m3u8 format)https://dataswitch-test-001.ovopark.com:6682/rtsp/4e8230c2-3651-48f8-8f85-47466cf03a18/index.m3u8
hls
string×100hls stream address (.m3u8 format)http://118.31.174.18:6681/rtsp/4e8230c2-3651-48f8-8f85-47466cf03a18/index.m3u8
tlsflv
string×100https flv stream addresshttps://dataswitch-test-001.ovopark.com:5582/rtsp/4e8230c2-3651-48f8-8f85-47466cf03a18/live.flv
vencodingname
string×100Video encoding format [H264] (tlsflv,flv,rtmp exists only under H264)H264
url
string×100same as flv parameter(Compatible with interface fields of earlier versions)
tls_url
string×100same as tlsflv parameter(Compatible with interface fields of earlier versions)

Public return code#

Return code nameReturn codeReturn code descriptionSolution
SUCCESS0Call success
KEY_NOTNULL1_akey can not be emptyInput the _akey parameter when the interface is called
KEY_UNLAWFUL2_akey is illegalkey is illegal, input in the correct key
KEY_HAS_EXPIRED3_akey has expiredPlease renew the service or contact the platform administrator
SIGN_METHOD_NOTNULL4_sm parameter cannot be emptyInput the _sm parameter when the interface is called
SIGN_TYPE_NOTEXIST5_sm type does not existCurrently only supports md5, sha1
SIGN_NOTNULL6_sig parameter cannot be emptyInput the _sig parameter when the interface is called
SIGN_WRONG7Invalid signature, please check parameters and signature format_sig value is generated according to the signature algorithm
METHOD_NOTNULL8_mt parameter cannot be emptyInput the _mt parameter when the interface is called
METHOD_NOTEXIST_CODE9The method name corresponding to _mt does not exist or is not registered in the serviceCheck if the method corresponding to _mt method name and _version version number is passed in error
REQUESTMODE_NOTNULL10_requestMode parameter cannot be emptyInput the _requestMode parameter when the interface is called
APPLICATIONID_NOTNULL11_aid parameter cannot be emptyInput the _aid parameter when the interface is called
APPLICATIONID_NOTSAME12_aid does not match the current key_aid and _akey must correspond one-to-one
VERSION_NOTNULL13_version version number cannot be emptyInput the _version parameter when the interface is called
TIMESTAMP_NOTNULL14_timestamp timestamp cannot be emptyInput the _timestamp parameter when the interface is called
TIMESTAMP_FORMAT_ERROR15_timestamp timestamp formatting errorAccording to yyyyMMddHHmmss format
TIMESTAMP_OVERTIME16_timestamp has expired_timestamp is regenerated every time the interface is called
FORMAT_TYPE_NOTEXIST17_format type does not existCurrently only supports json (default), xml
API_CALL_REPEAT-100The interface is called repeatedlyInterface platform call exception
API_SYSTEM_CALL_ERROR-500API call failed, system exception occurredInterface platform call exception
UNKNOWN_ERROR-999Open platform system exceptionReissue request

Business return code#

Return code nameReturn codeReturn code description
BUSINESS_PLATFORM_UNBOUND
103001业务平台未做绑定,请联系客服
DATA_NOT_NULL
103002必填字段不能为空
PARAMETER_VALIDATE_ERROR
103004参数效验异常
IDENTITY_INFORMATION_WRONG
103005身份信息有误,_akey与企业id不匹配
SERVICE_TIMEOUT
103066服务请求超时
API_SYSTEM_ERROR
103999api服务未知异常
NO_AUTH_USER
103064没有用户权限
NO_DEVICE
103092没有设备