CMSV6Help Center
/
839 DOCS · 211 VIDEOS中文

Remote Playback

Author adminUpdated 2026-05-09 11:13:53Doc ID 1342367 words · 2 min readView original ↗

Interface description

The following describes the API interface for remote playback cmsv6player the. min.js plug- in.
The plug- in needs to be loaded before use, see: Initialize plug- in

Start remote playback

startVod(index, url)
Parameter name Parameter type Must Example Parameter meaning
index number Yes None Window subscript (starting from 0)
url string yes none remote playback url address when video recording query returns (priority is PlaybackUrlWs field)
the url assembled according to the video recording information obtained by video recording query, please refer to playback address description

playback address description

(1) The address is fixed at ws://ip:port/3/5?DownType=5
(2) Request parameter description

Parameter name Parameter meaning
FILELOC loc returned during file search
FILESVR svr returned during file search
FILECHN CHN returned during file search
PLAYFILE file returned by file search
FILEBEG beg and end returned during file search
FILEEND end returned during file search
PLAYBEG The playback start offset, in milliseconds, equivalent to the start time of the file. 0 indicates that the file is played from the start position.
PLAYEND The playback end offset, in milliseconds, which is equivalent to the start time of the file and cannot be greater than the total duration of the file.
PLAYIFRM Play only I frames (please fill in 0)
PLAYCHN To play the video of that channel, it is used when there are videos of multiple channels in the file. If there are no multiple channels, 0 is used directly.
DevIDNO When playing a file on the device, it is the device number; when playing a file on the server, it is the vehicle number

Example of playback address

// https example
wss://v7.cmsv8.com:16604/3/5?DownType=5&jsession=66d754dd7f41473dbd2&DevIDNO=013300000001&FILELOC=1&FILESVR=0&FILECHN=0&FILEBEG=0&FILEEND=300&PLAYIFRM=0&PLAYFILE=;0;0;24;12;10;0;300;0;0_0_0_1&PLAYBEG=0&PLAYEND=0&PLAYCHN=0&YEAR=24&MON=12&DAY=10
// http example
ws://v7.cmsv8.com:6604/3/5?DownType=5&jsession=66d754dd7f41473dbd2&DevIDNO=013300000001&FILELOC=1&FILESVR=0&FILECHN=0&FILEBEG=0&FILEEND=300&PLAYIFRM=0&PLAYFILE=;0;0;24;12;10;0;300;0;0_0_0_1&PLAYBEG=0&PLAYEND=0&PLAYCHN=0&YEAR=24&MON=12&DAY=10

Note: When the server is https, ws is changed to wss and 6604 is changed to 16604 in the link.

Stop remote playback

stopVideo(index)
Parameter name Parameter type Must Example Parameter meaning
index number Yes 0 Window subscript (starts at 0)

Use Example

See also:

https://v7.cmsv8.com/808gps/open/player/videoExampleH5.html?lang=en
https://v7.cmsv8.com/808gps/open/player/VideoSearchDemo.html?lang=en
https://v7.cmsv8.com/808gps/open/player/PlayBackVideo.html?account=cmsv6&password=cmsv6&PlateNum=S66666&lang=en

Sample code

// The video plug- in must be initialized before it can be called.
// Start remote playback
function startPlayback() {
// stop remote playback
cmsv6player.stopVideo(0);
// Start remote playback
cmsv6player.startVod(0, "https://v7.cmsv8.com:16604/3/5?DownType=5&DevIDNO=013300000001&FILELOC=1&FILESVR=0&FILECHN=0&FILEBEG=1&FILEEND=100&PLAYIFRM=0&PLAYFILE=H20121123- 112931P3A1P0.avi&PLAYBEG=0&PLAYEND=0&PLAYCHN=0&jsession=");
}
// stop remote playback
function stopPlayback() {
cmsv6player.stopVideo(0);
}
Source help.cmsv7.com
839 documents · 211 videos · docs.alwaycare.com