Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CloudScape.zhao
kiftd
提交
79e6f2a4
kiftd
项目概览
CloudScape.zhao
/
kiftd
与 Fork 源项目一致
Fork自
青阳龙野 / kiftd
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
kiftd
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
79e6f2a4
编写于
5月 18, 2020
作者:
青阳龙野
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update to v1.0.32-release
上级
9d104a2d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
2 addition
and
4 deletion
+2
-4
kiftd-1.0.32-RELEASE.jar
kiftd-1.0.32-RELEASE.jar
+0
-0
kiftd说明文档.pdf
kiftd说明文档.pdf
+0
-0
webContext/quickview/kplayer.js
webContext/quickview/kplayer.js
+1
-3
webContext/quickview/kplayer.min.js
webContext/quickview/kplayer.min.js
+1
-1
未找到文件。
kiftd-1.0.32-RELEASE.jar
浏览文件 @
79e6f2a4
无法预览此类型文件
kiftd说明文档.pdf
浏览文件 @
79e6f2a4
无法预览此类型文件
webContext/quickview/kplayer.js
浏览文件 @
79e6f2a4
...
...
@@ -21,9 +21,7 @@ $(function() {
success
:
function
(
result
)
{
if
(
result
!=
"
ERROR
"
)
{
f
=
eval
(
"
(
"
+
result
+
"
)
"
);
$
(
"
#vname
"
).
text
(
f
.
fileName
.
replace
(
'
\'
'
,
'
'
'
).
replace
(
'
<
'
,
'
<
'
).
replace
(
'
>
'
,
'
>
'
));
$
(
"
#vname
"
).
text
(
f
.
fileName
);
$
(
"
#vcreator
"
).
text
(
f
.
fileCreator
);
$
(
"
#vcdate
"
).
text
(
f
.
fileCreationDate
);
$
(
"
#vsize
"
).
text
(
f
.
fileSize
);
...
...
webContext/quickview/kplayer.min.js
浏览文件 @
79e6f2a4
function
getFileId
(){
var
b
,
a
=
location
.
search
;
return
-
1
!=
a
.
indexOf
(
"
?
"
)?(
b
=
a
.
substr
(
1
),
strs
=
b
.
split
(
"
=
"
),
strs
[
1
]):
""
}
function
playVideo
(){
$
(
"
#playerbox
"
).
html
(
"
<video id='kiftplayer' class='video-js col-md-12' controls preload='auto' height='500'><source src='resourceController/getResource/
"
+
f
.
fileId
+
"
' type='video/mp4'></video>
"
);
var
a
=
videojs
(
"
kiftplayer
"
,{
preload
:
"
auto
"
});
a
.
ready
(
function
(){
this
.
play
()})}
function
reMainPage
(){
null
!=
tReq
&&
tReq
.
abort
(),
null
!=
tTimer
&&
window
.
clearTimeout
(
tTimer
),
window
.
opener
=
null
,
window
.
open
(
""
,
"
_self
"
),
window
.
close
()}
function
doTranscode
(){
tReq
=
$
.
ajax
({
url
:
"
resourceController/getVideoTranscodeStatus.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
f
.
fileId
},
success
:
function
(
a
){
"
FIN
"
==
a
?
playVideo
():
"
ERROR
"
==
a
?(
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()):(
$
(
"
#transcodeProgress
"
).
text
(
a
),
tTimer
=
setTimeout
(
"
doTranscode()
"
,
500
))},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})}
function
showCloseBtn
(){
var
a
=
$
(
window
).
width
();
450
>
a
?
$
(
"
#closeBtn
"
).
addClass
(
"
hidden
"
):
$
(
"
#closeBtn
"
).
removeClass
(
"
hidden
"
)}
function
ping
(){
$
.
ajax
({
url
:
"
homeController/ping.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{},
success
:
function
(
a
){
"
pong
"
!=
a
&&
window
.
clearInterval
(
pingInt
)},
error
:
function
(){
window
.
clearInterval
(
pingInt
)}})}
var
tReq
,
tTimer
,
pingInt
;
$
(
function
(){
window
.
onresize
=
function
(){
showCloseBtn
()},
pingInt
=
setInterval
(
"
ping()
"
,
6
e4
);
var
fileId
=
getFileId
();
$
.
ajax
({
url
:
"
homeController/playVideo.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
fileId
},
success
:
function
(
result
){
"
ERROR
"
!=
result
?(
f
=
eval
(
"
(
"
+
result
+
"
)
"
),
$
(
"
#vname
"
).
text
(
f
.
fileName
.
replace
(
"
'
"
,
"
'
"
).
replace
(
"
<
"
,
"
<
"
).
replace
(
"
>
"
,
"
>
"
)),
$
(
"
#vcreator
"
).
text
(
f
.
fileCreator
),
$
(
"
#vcdate
"
).
text
(
f
.
fileCreationDate
),
$
(
"
#vsize
"
).
text
(
f
.
fileSize
),
"
N
"
==
f
.
needEncode
?
playVideo
():(
$
(
"
#playerMassage
"
).
html
(
"
<h2>播放器正在努力解码中...</h2><h3>已完成:<span id='transcodeProgress'>0</span>%</h3><p class='text-muted'>提示:该视频需解码后播放,请耐心等待!</p>
"
),
doTranscode
())):(
alert
(
"
错误:无法定位要预览的文件或该操作未被授权。
"
),
reMainPage
())},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})});
\ No newline at end of file
function
getFileId
(){
var
b
,
a
=
location
.
search
;
return
-
1
!=
a
.
indexOf
(
"
?
"
)?(
b
=
a
.
substr
(
1
),
strs
=
b
.
split
(
"
=
"
),
strs
[
1
]):
""
}
function
playVideo
(){
$
(
"
#playerbox
"
).
html
(
"
<video id='kiftplayer' class='video-js col-md-12' controls preload='auto' height='500'><source src='resourceController/getResource/
"
+
f
.
fileId
+
"
' type='video/mp4'></video>
"
);
var
a
=
videojs
(
"
kiftplayer
"
,{
preload
:
"
auto
"
});
a
.
ready
(
function
(){
this
.
play
()})}
function
reMainPage
(){
null
!=
tReq
&&
tReq
.
abort
(),
null
!=
tTimer
&&
window
.
clearTimeout
(
tTimer
),
window
.
opener
=
null
,
window
.
open
(
""
,
"
_self
"
),
window
.
close
()}
function
doTranscode
(){
tReq
=
$
.
ajax
({
url
:
"
resourceController/getVideoTranscodeStatus.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
f
.
fileId
},
success
:
function
(
a
){
"
FIN
"
==
a
?
playVideo
():
"
ERROR
"
==
a
?(
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()):(
$
(
"
#transcodeProgress
"
).
text
(
a
),
tTimer
=
setTimeout
(
"
doTranscode()
"
,
500
))},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})}
function
showCloseBtn
(){
var
a
=
$
(
window
).
width
();
450
>
a
?
$
(
"
#closeBtn
"
).
addClass
(
"
hidden
"
):
$
(
"
#closeBtn
"
).
removeClass
(
"
hidden
"
)}
function
ping
(){
$
.
ajax
({
url
:
"
homeController/ping.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{},
success
:
function
(
a
){
"
pong
"
!=
a
&&
window
.
clearInterval
(
pingInt
)},
error
:
function
(){
window
.
clearInterval
(
pingInt
)}})}
var
tReq
,
tTimer
,
pingInt
;
$
(
function
(){
window
.
onresize
=
function
(){
showCloseBtn
()},
pingInt
=
setInterval
(
"
ping()
"
,
6
e4
);
var
fileId
=
getFileId
();
$
.
ajax
({
url
:
"
homeController/playVideo.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
fileId
},
success
:
function
(
result
){
"
ERROR
"
!=
result
?(
f
=
eval
(
"
(
"
+
result
+
"
)
"
),
$
(
"
#vname
"
).
text
(
f
.
fileName
),
$
(
"
#vcreator
"
).
text
(
f
.
fileCreator
),
$
(
"
#vcdate
"
).
text
(
f
.
fileCreationDate
),
$
(
"
#vsize
"
).
text
(
f
.
fileSize
),
"
N
"
==
f
.
needEncode
?
playVideo
():(
$
(
"
#playerMassage
"
).
html
(
"
<h2>播放器正在努力解码中...</h2><h3>已完成:<span id='transcodeProgress'>0</span>%</h3><p class='text-muted'>提示:该视频需解码后播放,请耐心等待!</p>
"
),
doTranscode
())):(
alert
(
"
错误:无法定位要预览的文件或该操作未被授权。
"
),
reMainPage
())},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录