CMSV6Help Center
/
839 DOCS · 211 VIDEOS中文

multi-channel playback

Author adminUpdated 2026-05-09 11:15:07Doc ID 1343473 words · 2 min readView original ↗

Interface description

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

Start multi- channel playback

startVodM(url, channel)
Parameter name Parameter type Must Example Parameter meaning
url string is as follows playback url address video query returns (priority PlaybackUrlWs field)
single- channel playback: url is PlaybackUrlWS
multi- channel synchronous playback: url is PlaybackUrlWS
multi- channel simultaneous playback: url is array for example: 'url.push(file1.PlaybackUrlWS); Url. push(file2.PlaybackUrlWS)'
PlaybackUrlWs example is as follows: playback url instance
channel string Yes None Single Playback: channel ""
Simultaneous Multichannel Playback: channel "0,1,2,3"
Simultaneous Multichannel Playback: channel ""


**URL playback instance **

https example link:
wss://v7.cmsv8.com:16604/3/5?DownType=5&jsession=66d754dd7f41473dbd2&DevIDNO=013300000001&FILELOC=1&FILESVR=0&FILECHN=0&FILEBEG=300&FILEEND=600&PLAYIFRM=0&PLAYFILE=;0;0;24;12;10;300;600;0;0_1_0_1&PLAYBEG=0&PLAYEND=0&PLAYCHN=0&YEAR=24&MON=12&DAY=10
http sample link:
ws://v7.cmsv8.com:6604/3/5?DownType=5&jsession=66d754dd7f41473dbd2&DevIDNO=013300000001&FILELOC=1&FILESVR=0&FILECHN=0&FILEBEG=300&FILEEND=600&PLAYIFRM=0&PLAYFILE=;0;0;24;12;10;300;600;0;0_1_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.
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

Stop multichannel playback

stopVodM()

Use Example

See also:

https://v7.cmsv8.com/808gps/open/player/videoExampleH5.html?lang=en

Sample code

  1. When the return PlaybackUrlWs, play the link to take PlaybackUrlWs
var playUrl = fileInfo.PlaybackUrlWs;
  1. Single channel playback, the playUrl is a playback link.
cmsv6Player.startVodM(playUrl, '');
  1. Multi- channel synchronous playback
    (1) The returned mulPlay > 0 represents that multi- way synchronous playback is supported.
    (2)mulChn represents the channel that can be played back in multiple ways, and is represented by bits. mulChn has two cases:
    1 type is 0(808 protocol) If mulChn is 0, it is necessary to determine which channels have video information according to the time period (need to be customized), and take these channels
    1 is not 0(ttx protocol)
  2. Multi- channel asynchronous playback, get the returned videoFileList, traverse and form an array, and call the startVodM method to play
var url = [];
url.push(file1.PlaybackUrlWS);
url.push(file2.PlaybackUrlWS);
cmsv6Player.startVodM(url, "");
  1. When a video file has multiple channels, replace the channel number of the playback link
// The method of replacing the playback channel number for the playback link
playUrl = playUrl.replace('PLAYCHN=0', 'PLAYCHN=' chnIndex);
Source help.cmsv7.com
839 documents · 211 videos · docs.alwaycare.com