Commit 8cdb5014 authored by 以墨为白's avatar 以墨为白 🎧

视频播放接口调整

parent e9f21862
......@@ -714,9 +714,10 @@ export default {
_this.title = "正在播放视频---" + row.name;
_this.centerDialogVisible_video = true;
setTimeout(function () {
let path_srt = "api/rest/document/download/";
path_srt = path_srt + _this.type_folder + '/'+row.file.uuid;
_this.video_src = path_srt;
// let path_srt = "api/rest/document/download/";
// path_srt = path_srt + _this.type_folder + '/'+row.file.uuid;
// _this.video_src = path_srt;
_this.video_src = `api/rest/file/playVideo/Document?objectName=${row.file.uuid}`
if (document.getElementById("video").currentTime != 0)
document.getElementById("video").currentTime = 0;
}, 500);
......
......@@ -554,9 +554,10 @@ export default {
_this.title = "正在播放视频---" + row.name;
_this.centerDialogVisible_video = true;
setTimeout(function () {
let path_srt = "api/rest/document/download/";
path_srt = path_srt + _this.type_folder + '/'+row.file.uuid;
_this.video_src = path_srt;
// let path_srt = "api/rest/document/download/";
// path_srt = path_srt + _this.type_folder + '/'+row.file.uuid;
// _this.video_src = path_srt;
_this.video_src = `api/rest/file/playVideo/Document?objectName=${row.file.uuid}`
if (document.getElementById("video").currentTime != 0)
document.getElementById("video").currentTime = 0;
}, 500);
......
......@@ -597,9 +597,10 @@ export default {
_this.title = "正在播放视频---" + row.name;
_this.centerDialogVisible_video = true;
setTimeout(function () {
let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + row.file.uuid;
_this.video_src = path_srt;
// let path_srt = "api/rest/file/download/Document/";
// path_srt = path_srt + row.file.uuid;
// _this.video_src = path_srt;
_this.video_src = `api/rest/file/playVideo/Document?objectName=${row.file.uuid}`
if (document.getElementById("video").currentTime != 0)
document.getElementById("video").currentTime = 0;
}, 500);
......
......@@ -797,9 +797,10 @@ export default {
_this.title = "正在播放视频---" + row.name;
_this.centerDialogVisible_video = true;
setTimeout(function () {
let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + row.file.uuid;
_this.video_src = path_srt;
// let path_srt = "api/rest/file/download/Document/";
// path_srt = path_srt + row.file.uuid;
// _this.video_src = path_srt;
_this.video_src = `api/rest/file/playVideo/Document?objectName=${row.file.uuid}`
if (document.getElementById("video").currentTime != 0)
document.getElementById("video").currentTime = 0;
}, 500);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment