|
|
@@ -42,6 +42,51 @@ function setVideoPos() {
|
|
|
|
|
|
}
|
|
|
|
|
|
+function queryVideoList(videoIds) {
|
|
|
+ if (videoIds != null) {
|
|
|
+ s1 = $.checkTask.start_time.replace(/-/g, "/");
|
|
|
+ var startTime = new Date(s1).getTime() / 1000;
|
|
|
+ s1 = $.checkTask.end_time.replace(/-/g, "/");
|
|
|
+ var endTime = new Date(s1).getTime() / 1000;
|
|
|
+
|
|
|
+ VideoGetByIds(videoIds, function(data) {
|
|
|
+ if (data != null && typeof(data) != "undefined") {
|
|
|
+ var pp = {
|
|
|
+ "videoIds": videoIds,
|
|
|
+ "cindex": 10,
|
|
|
+ starttime: startTime,
|
|
|
+ "endtime": endTime,
|
|
|
+ "videos": []
|
|
|
+ };
|
|
|
+
|
|
|
+ data.forEach(came => {
|
|
|
+
|
|
|
+ pp.videos.push({
|
|
|
+ "videoId": came.id,
|
|
|
+ "cametype": came.cameratype,
|
|
|
+ "filetype": came.playtype
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+ var pp = {
|
|
|
+ "videoIds": videoIds,
|
|
|
+ "cindex": 1,
|
|
|
+ starttime: startTime,
|
|
|
+ "endtime": endTime,
|
|
|
+ "videos": [{
|
|
|
+ "videoId": curVideo,
|
|
|
+ "cametype": data.cameratype,
|
|
|
+ "filetype": data.playtype
|
|
|
+ }]
|
|
|
+ };
|
|
|
+ callFunc("findvideolist", JSON.stringify(pp));
|
|
|
+ }
|
|
|
+ }, function(error) {});
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
function queryVideoList() {
|
|
|
|
|
|
var videos = $.checkTask.video_id.split(',');
|
|
|
@@ -66,7 +111,20 @@ function queryVideoList() {
|
|
|
VideoGetById(curVideo, function(data) {
|
|
|
if (data != null && typeof(data) != "undefined") {
|
|
|
var str = curVideo + '|' + startTime + '|' + endTime + '|' + data.cameratype + '|' + data.playtype + '|' + index;
|
|
|
- callFunc("findvideolist", str);
|
|
|
+
|
|
|
+
|
|
|
+ var pp = {
|
|
|
+ "videoIds": curVideo,
|
|
|
+ "cindex": 10,
|
|
|
+ starttime: startTime,
|
|
|
+ "endtime": endTime,
|
|
|
+ "videos": [{
|
|
|
+ "videoId": curVideo,
|
|
|
+ "cametype": data.cameratype,
|
|
|
+ "filetype": data.playtype
|
|
|
+ }]
|
|
|
+ };
|
|
|
+ callFunc("findvideolist", JSON.stringify(pp));
|
|
|
}
|
|
|
}, function(error) {
|
|
|
|