Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
ac0f551c
提交
ac0f551c
authored
7月 19, 2019
作者:
GOD_ZYX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v1.1.3
上级
f320f688
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
29 行增加
和
15 行删除
+29
-15
History.md
History.md
+5
-0
index.html
client-dist/index.html
+2
-2
11.39188c2b.js
client-dist/resources/11.39188c2b.js
+0
-2
11.5302c669b95c.css
client-dist/resources/11.5302c669b95c.css
+2
-0
11.6efe3774.js
client-dist/resources/11.6efe3774.js
+2
-0
11.7275abdd54ff.css
client-dist/resources/11.7275abdd54ff.css
+0
-2
app.5fb36ac1.js
client-dist/resources/app.5fb36ac1.js
+0
-0
manifest.85abc648.js
client-dist/resources/manifest.85abc648.js
+2
-2
chapterVideo.vue
client/components/player/chapterVideo/chapterVideo.vue
+11
-2
video.vue
client/components/player/chapterVideo/video.vue
+2
-2
videoH5.vue
client/components/player/chapterVideo/videoH5.vue
+2
-2
main.js
client/project/main.js
+1
-1
没有找到文件。
History.md
浏览文件 @
ac0f551c
PC-1.1.3 / 2019-07-19
==================
*
修改 video currentTime 突然获取 超大值,增加判断 提示播放器异常,刷新重看
PC-1.1.2 / 2019-07-16
PC-1.1.2 / 2019-07-16
==================
==================
...
...
client-dist/index.html
浏览文件 @
ac0f551c
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.f39c4625.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.bb1c6d7c.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.5c558967.js"
></script></body></html>
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.85abc648.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.bb1c6d7c.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.5fb36ac1.js"
></script></body></html>
\ No newline at end of file
\ No newline at end of file
client-dist/resources/11.39188c2b.js
deleted
100644 → 0
浏览文件 @
f320f688
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
11
],{
269
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
455
),
s
=
i
(
359
);
for
(
var
r
in
s
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
r
);
var
a
=
i
(
1
),
o
=
Object
(
a
.
a
)(
s
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
null
,
null
);
o
.
options
.
__file
=
"chapterVideo.vue"
,
t
.
default
=
o
.
exports
},
359
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
360
),
s
=
i
.
n
(
n
);
for
(
var
r
in
n
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
r
);
t
.
default
=
s
.
a
},
360
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
i
(
419
)),
s
=
a
(
i
(
421
)),
r
=
a
(
i
(
422
)),
d
=
a
(
i
(
74
));
function
a
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
o
=
1
e4
;
t
.
default
=
{
components
:{
eVideo
:
n
.
default
,
eVideoH5
:
s
.
default
,
ePpt
:
r
.
default
},
props
:{
chapterId
:{
type
:
String
,
require
:
!
1
},
chapterName
:{
type
:
String
,
require
:
!
1
},
chapterVideo
:{
type
:
Object
,
require
:
!
1
},
ppts
:{
type
:
Array
,
require
:
!
1
,
default
:[]},
sid
:{
type
:
String
,
require
:
!
1
},
cid
:{
type
:
String
,
require
:
!
1
},
id
:{
type
:
String
,
require
:
!
1
},
videoType
:{
type
:
String
,
require
:
!
1
}},
data
:
function
(){
return
{
state
:{
pptIndex
:
0
,
pptBoxOnly
:
!
1
,
pptBoxShow
:
!
1
,
skipBegin
:
/skip=1/
.
test
(
document
.
cookie
),
calculatedSize
:
!
1
},
videoFlash
:{
lastTime
:
null
,
speed
:
1
,
isSeek
:
!
1
,
isFinish
:
!
1
,
queueFrames
:[],
mapFrames
:[],
videoWidth
:
550
,
videoHeight
:
360
,
username
:
window
.
G
.
UserInfo
&&
window
.
G
.
UserInfo
.
username
||
""
},
resizeVideo
:
null
,
hearBeat
:
null
,
_rProgress
:{},
isPlaying
:
!
1
}},
mounted
:
function
(){
var
e
=
this
.
getCalculateSize
();
e
.
video
.
w
&&
(
this
.
videoFlash
.
videoWidth
=
e
.
video
.
w
,
this
.
videoFlash
.
videoHeight
=
e
.
video
.
h
),
this
.
resizeVideo
||
(
this
.
resizeVideo
=
d
.
default
.
debounce
(
this
.
jdugeSize
.
bind
(
this
),
200
)),
setTimeout
(
this
.
jdugeSize
,
300
),
window
.
addEventListener
(
"resize"
,
this
.
resizeVideo
),
this
.
createHeartTime
(
o
)},
destroyed
:
function
(){
window
.
removeEventListener
(
"resize"
,
this
.
resizeVideo
),
this
.
destroyHeartTime
(),
this
.
hearBeatFunc
(
o
)},
watch
:{
id
:{
handler
:
function
(){
this
.
id
&&
(
this
.
state
.
pptBoxShow
=!
1
,
this
.
state
.
pptBoxOnly
=!
1
,
this
.
_rProgress
=
{},
setTimeout
(
this
.
jdugeSize
,
0
))}}},
methods
:{
togglePptBox
:
function
(){
this
.
state
.
pptBoxShow
=!
this
.
state
.
pptBoxShow
,
this
.
state
.
pptBoxOnly
=!
1
,
setTimeout
(
this
.
jdugeSize
,
0
)},
togglePptBoxOnly
:
function
(){
this
.
state
.
pptBoxOnly
=!
this
.
state
.
pptBoxOnly
,
setTimeout
(
this
.
jdugeSize
,
0
)},
toggleSkipBegin
:
function
(){
var
e
=!
this
.
state
.
skipBegin
,
t
=
new
Date
;
t
.
setMonth
(
t
.
getMonth
()
+
1
),
document
.
cookie
=
"skip="
+
+
e
+
";path=/;domain=.ezijing.com;expires="
+
t
.
toGMTString
(),
e
&&
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
skipBegin
(),
this
.
state
.
skipBegin
=
e
},
onVideoTimeChange
:
function
(
e
){
var
t
=
e
.
time
;
this
.
videoFlash
.
speed
=
parseFloat
(
e
.
quality
.
split
(
" "
)[
1
]
||
1
),
this
.
videoFlash
.
isSeek
=
e
.
isSeek
,
this
.
videoFlash
.
lastTime
!==
t
&&
(
this
.
videoFlash
.
lastTime
=
t
,
this
.
isPlaying
=!
0
,
e
.
isSeek
||
this
.
videoFlash
.
queueFrames
.
push
(
t
),
this
.
setPptIndexByTime
(
t
),
this
.
$emit
(
"handlePlayTime"
,
t
))},
onVideoPlayFinish
:
function
(
e
){
if
(
this
.
chapterVideo
){
if
(
this
.
_rProgress
&&
this
.
_rProgress
.
id
);
else
{
this
.
_rProgress
=
d
.
default
.
assignIn
({},
this
.
chapterVideo
.
progress
);
for
(
var
t
=
[],
i
=
this
.
chapterVideo
.
video_length
||
1
,
n
=
0
;
n
<
i
;
n
++
)
t
.
push
(
0
);
this
.
videoFlash
.
mapFrames
=
this
.
_rProgress
.
map
.
length
?
this
.
_rProgress
.
map
:
t
,
this
.
_rProgress
.
map
=
this
.
videoFlash
.
mapFrames
}
this
.
_rProgress
.
pt
+
10
*
this
.
videoFlash
.
speed
>=
e
.
time
&&
(
this
.
isPlaying
=!
0
,
this
.
hearBeatFunc
(
o
))}},
changeVideoArr
:
function
(
e
){
this
.
$emit
(
"changeVideoArr"
,
e
)},
setPptIndexByTime
:
function
(
e
){
for
(
var
t
=
this
.
ppts
||
[],
i
=
0
;
i
<
t
.
length
&&!
(
e
<
t
[
i
].
ppt_point
);
i
++
);
this
.
state
.
pptIndex
!==
i
-
1
&&
(
this
.
state
.
pptIndex
=
i
-
1
)},
setVideoTime
:
function
(
e
){
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
setTimeTo
(
e
)},
jdugeSize
:
function
(){
var
e
=
this
.
$refs
.
box
,
t
=
this
.
getCalculateSize
(),
i
=
0
,
n
=
0
;
this
.
state
.
pptBoxOnly
?(
n
=
t
.
ppt
.
w
,
i
=
t
.
ppt
.
h
,
this
.
$refs
.
ppt
&&
this
.
$refs
.
ppt
.
setSize
(
n
,
i
)):
this
.
state
.
pptBoxShow
?(
this
.
$refs
.
ppt
&&
this
.
$refs
.
ppt
.
setSize
(
t
.
ppt
.
w
,
t
.
ppt
.
h
),
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
setSize
(
t
.
video
.
w
,
t
.
video
.
h
),
n
=
t
.
ppt
.
w
+
t
.
video
.
w
,
i
=
t
.
video
.
h
):(
n
=
t
.
video
.
w
,
i
=
t
.
video
.
h
,
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
setSize
(
n
,
i
)),
this
.
state
.
calculatedSize
=!
0
,
e
.
style
.
paddingLeft
=
(
t
.
space
.
w
-
n
)
/
2
+
15
+
"px"
,
e
.
style
.
paddingTop
=
(
t
.
space
.
h
-
i
)
/
2
+
10
+
"px"
},
getCalculateSize
:
function
(){
var
e
=
this
.
$refs
.
container
,
t
=
e
.
offsetWidth
-
30
,
i
=
e
.
offsetHeight
-
53
-
20
,
n
=
550
/
363
,
s
=
336
/
236
,
r
=
{
space
:{
w
:
t
,
h
:
i
},
video
:{
w
:
0
,
h
:
0
},
ppt
:{
w
:
0
,
h
:
0
}};
if
(
this
.
state
.
pptBoxOnly
)
r
.
ppt
.
w
=
t
<
i
*
s
?
t
:
i
*
s
,
r
.
ppt
.
h
=
i
<
t
/
s
?
i
:
t
/
s
;
else
if
(
this
.
state
.
pptBoxShow
){
var
a
=
t
/
2
,
o
=
a
<
i
*
n
?
a
:
i
*
n
,
l
=
i
<
a
/
n
?
i
:
a
/
n
,
d
=
l
,
p
=
d
*
s
;
r
.
video
.
w
=
o
,
r
.
video
.
h
=
l
,
r
.
ppt
.
w
=
p
,
r
.
ppt
.
h
=
d
}
else
r
.
video
.
w
=
t
<
i
*
n
?
t
:
i
*
n
,
r
.
video
.
h
=
i
<
t
/
n
?
i
:
t
/
n
;
return
r
},
hearBeatFunc
:
function
(
e
){
if
(
this
.
chapterVideo
&&
this
.
isPlaying
){
if
(
this
.
_rProgress
&&
this
.
_rProgress
.
id
);
else
{
this
.
_rProgress
=
d
.
default
.
assignIn
({},
this
.
chapterVideo
.
progress
);
for
(
var
t
=
[],
i
=
this
.
chapterVideo
.
video_length
||
1
,
n
=
0
;
n
<
i
;
n
++
)
t
.
push
(
0
);
this
.
videoFlash
.
mapFrames
=
this
.
_rProgress
.
map
.
length
?
this
.
_rProgress
.
map
:
t
,
this
.
_rProgress
.
map
=
this
.
videoFlash
.
mapFrames
}
var
s
=
this
.
_rProgress
,
r
=
this
.
videoFlash
.
lastTime
,
a
=
this
.
videoFlash
.
speed
,
o
=
this
.
videoFlash
.
isSeek
,
l
=
this
.
videoFlash
.
queueFrames
;
0
===
s
.
cpt
&&
0
===
s
.
mpt
&&
0
===
s
.
pt
&&
/skip=1/
.
test
(
document
.
cookie
)
&&
(
s
.
pt
=
7
),
o
||
(
s
.
pt
+=
e
/
1
e3
*
a
,
s
.
cpt
=
r
,
s
.
mpt
=
r
>
s
.
mpt
?
r
:
s
.
mpt
,
s
.
ps
=
l
,
s
.
vid
=
this
.
id
,
this
.
$emit
(
"updateProgress"
,
this
.
_rProgress
)),
this
.
isPlaying
=!
1
}},
createHeartTime
:
function
(
e
){
var
t
=
this
,
i
=
e
||
1
e4
;
this
.
destroyHeartTime
(),
this
.
hearBeat
=
setInterval
(
function
(){
t
.
hearBeatFunc
(
i
)},
i
)},
destroyHeartTime
:
function
(){
this
.
hearBeat
&&
clearInterval
(
this
.
hearBeat
)}}}},
361
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
362
),
s
=
i
.
n
(
n
);
for
(
var
r
in
n
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
r
);
t
.
default
=
s
.
a
},
362
:
function
(
e
,
r
,
a
){
"use strict"
;(
function
(
n
){
Object
.
defineProperty
(
r
,
"__esModule"
,{
value
:
!
0
});
var
e
,
t
=
a
(
270
),
d
=
(
e
=
t
)
&&
e
.
__esModule
?
e
:{
default
:
e
};
var
s
=
"playerWrap"
,
i
=
0
;
r
.
default
=
{
props
:{
lastTime
:{
type
:
Number
,
require
:
!
1
},
videoId
:{
type
:
String
,
require
:
!
1
},
width
:{
type
:
Number
,
require
:
!
1
},
height
:{
type
:
Number
,
require
:
!
1
},
username
:{
type
:
String
,
require
:
!
1
},
videoSrt
:{
type
:
String
,
require
:
!
1
},
autoPlay
:{
type
:
Boolean
,
require
:
!
1
,
default
:
!
0
},
chapterVideo
:{
type
:
Object
,
require
:
!
1
}},
mounted
:
function
(){
this
.
definWindowFun
()},
watch
:{
videoId
:{
handler
:
function
(){
this
.
videoId
&&
(
i
=
this
.
lastTime
||
0
,
this
.
renderPlayer
(
"player"
,
this
.
videoId
,
this
.
autoPlay
,
this
.
videoSrt
,
this
.
username
,
this
.
width
,
this
.
height
))}}},
methods
:{
definWindowFun
:
function
(){
var
t
=
this
;
window
.
_playerStart
=
function
(){
/
skip
=
1
/
.
test
(
document
.
cookie
)?
t
.
getPlayer
().
callAction
(
"setCurrentTime"
,
Math
.
max
(
i
,
7
)):
i
&&
t
.
getPlayer
().
callAction
(
"setCurrentTime"
,
i
)},
window
.
_playerIng
=
function
(
e
){
n
(
"#"
+
s
).
trigger
(
"player.time"
,{
time
:
e
,
quality
:
t
.
getPlayer
().
callAction
(
"getQuality"
),
isSeek
:
!
1
})},
window
.
_playerSeek
=
function
(){
n
(
"#"
+
s
).
trigger
(
"player.seek"
,{
time
:
t
.
getPlayer
().
callAction
(
"getCurrentTime"
),
quality
:
t
.
getPlayer
().
callAction
(
"getQuality"
),
isSeek
:
!
0
})},
window
.
_playerFinish
=
function
(){
t
.
$emit
(
"handlePlayfinish"
,{
time
:
t
.
getPlayer
().
callAction
(
"getDuration"
)})},
window
.
_playerCallback
=
function
(){
var
e
=
t
.
getPlayer
();
e
&&
(
e
.
callAction
(
"register"
,
"onCanplay"
,
"_playerStart"
),
e
.
callAction
(
"register"
,
"onPlaying"
,
"_playerIng"
),
e
.
callAction
(
"register"
,
"onSeekComplete"
,
"_playerSeek"
),
e
.
callAction
(
"register"
,
"onEnded"
,
"_playerFinish"
))}},
renderPlayer
:
function
(
e
,
t
,
i
,
n
,
s
,
r
,
a
){
var
o
=
{
autoStart
:
i
=
void
0
===
i
?
1
:
i
-
0
,
vid
:
t
,
isShowSpeeder
:
1
,
videoType
:
1
,
callback
:
"_playerCallback"
};
n
&&
(
o
.
srtUrl
=
n
),
s
&&
(
o
.
username
=
s
);
var
l
=
{
id
:
e
,
name
:
e
,
align
:
"middle"
,
wmode
:
"opaque"
};
d
.
default
.
embedSWF
(
"/static/videoJs/swf/Player1705192.swf"
,
e
,
parseInt
(
r
),
parseInt
(
a
),
"11.1.0"
,
"playerProductInstall.swf"
,
o
,{
quality
:
"high"
,
bgcolor
:
"#000000"
,
allowscriptaccess
:
"always"
,
allowfullscreen
:
"true"
},
l
),
this
.
listenPlayerEvents
()},
listenPlayerEvents
:
function
(){
var
i
=
this
;
n
(
"#"
+
s
).
off
(
"player.time player.seek"
).
on
(
"player.time player.seek"
,
function
(
e
,
t
){
i
.
$emit
(
"handlePlayTime"
,
t
)})},
getPlayer
:
function
(){
return
document
.
getElementById
(
"player"
)},
getTime
:
function
(){
var
e
=
this
.
getPlayer
();
return
e
?
e
.
callAction
(
"getCurrentTime"
):
0
},
setTimeTo
:
function
(
e
){
var
t
=
this
.
getPlayer
();
t
&&
t
.
callAction
(
"setCurrentTime"
,
e
+
2
)},
skipBegin
:
function
(){
var
e
=
this
.
getPlayer
();
e
&&
e
.
callAction
(
"getCurrentTime"
)
<
7
&&
e
.
callAction
(
"setCurrentTime"
,
7
)},
setSize
:
function
(
e
,
t
){
var
i
=
this
.
getPlayer
();
i
&&
(
i
.
width
=
e
,
i
.
height
=
t
)}}}}).
call
(
this
,
a
(
313
))},
363
:
function
(
e
,
t
,
i
){},
364
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
365
),
s
=
i
.
n
(
n
);
for
(
var
r
in
n
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
r
);
t
.
default
=
s
.
a
},
365
:
function
(
e
,
i
,
u
){
"use strict"
;(
function
(
n
){
Object
.
defineProperty
(
i
,
"__esModule"
,{
value
:
!
0
});
var
t
=
e
(
u
(
41
)),
o
=
e
(
u
(
271
)),
l
=
e
(
u
(
272
));
function
e
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
s
=
"playerWrap"
,
r
=
"player"
,
d
=
null
,
p
=
null
,
a
=
0
;
i
.
default
=
{
props
:{
lastTime
:{
type
:
Number
,
require
:
!
1
},
videoId
:{
type
:
String
,
require
:
!
1
},
width
:{
type
:
Number
,
require
:
!
1
},
height
:{
type
:
Number
,
require
:
!
1
},
username
:{
type
:
String
,
require
:
!
1
},
videoSrt
:{
type
:
String
,
require
:
!
1
},
autoPlay
:{
type
:
Boolean
,
require
:
!
1
,
default
:
!
0
},
chapterVideo
:{
type
:
Object
,
require
:
!
1
}},
data
:
function
(){
return
{
videoArr
:{}}},
mounted
:
function
(){
this
.
definWindowFun
()},
watch
:{
videoId
:{
handler
:
function
(){
var
i
=
this
;
if
(
this
.
videoId
){
a
=
this
.
lastTime
||
0
;
var
e
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
t
.
default
.
chapterAction
.
getCurrentChapterDetailAliyun
(
this
.
videoId
).
then
(
function
(
e
){
i
.
videoArr
=
e
.
video
;
var
t
=
i
.
getPlayer
();
p
&&
t
.
innerHTML
?
i
.
playNextVideo
(
r
,
i
.
videoId
,
i
.
autoPlay
,
i
.
videoSrt
,
i
.
username
,
i
.
width
,
i
.
height
):
i
.
renderPlayer
(
r
,
i
.
videoId
,
i
.
autoPlay
,
i
.
videoSrt
,
i
.
username
,
i
.
width
,
i
.
height
)}).
catch
(
function
(
e
){
i
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
e
.
close
()})}}}},
methods
:{
definWindowFun
:
function
(){
var
e
=
this
;
window
.
_playerStart
=
function
(){
a
=
d
.
getDuration
()
<
a
?
d
.
getDuration
():
a
,
/skip=1/
.
test
(
document
.
cookie
)?
d
.
seek
(
parseInt
(
Math
.
max
(
a
,
7
))):
a
&&
d
.
seek
(
parseInt
(
a
))},
window
.
_playerIng
=
function
(
e
){
var
t
=
d
.
getComponent
(
"QualityComponent"
).
definition
,
i
=
d
.
getComponent
(
"RateComponent"
).
html
.
innerText
;
switch
(
t
){
case
"FD"
:
t
=
"普通"
;
break
;
case
"LD"
:
t
=
"清晰"
;
break
;
case
"SD"
:
t
=
"高清"
}
i
&&
(
t
+=
" "
+
i
),
e
=
d
.
getCurrentTime
(),
n
(
"#"
+
s
).
trigger
(
"player.time"
,{
time
:
e
,
quality
:
t
,
isSeek
:
!
1
})},
window
.
_playerSeekStart
=
function
(
e
){},
window
.
_playerSeek
=
function
(){
var
e
=
d
.
getComponent
(
"QualityComponent"
).
definition
,
t
=
d
.
getComponent
(
"RateComponent"
).
html
.
innerText
;
switch
(
e
){
case
"FD"
:
e
=
"普通"
;
break
;
case
"LD"
:
e
=
"清晰"
;
break
;
case
"SD"
:
e
=
"高清"
}
t
&&
(
e
+=
" "
+
t
),
n
(
"#"
+
s
).
trigger
(
"player.seek"
,{
time
:
d
.
getCurrentTime
(),
quality
:
e
,
isSeek
:
!
0
})},
window
.
_playerFinish
=
function
(){
e
.
$emit
(
"handlePlayfinish"
,{
time
:
d
.
getDuration
()})}},
renderPlayer
:
function
(
e
,
t
,
i
,
n
,
s
,
r
,
a
){
i
=
void
0
===
i
?
1
:
i
-
0
,
p
=
new
o
.
default
({
id
:
e
,
source
:
JSON
.
stringify
(
this
.
videoArr
),
width
:
"100%"
,
height
:
"100%"
,
autoplay
:
!!
i
,
isLive
:
!
1
,
controlBarVisibility
:
"always"
,
definition
:
"FD,LD,SD"
,
defaultDefinition
:
"LD"
,
components
:[{
name
:
"QualityComponent"
,
type
:
l
.
default
.
QualityComponent
},{
name
:
"RateComponent"
,
type
:
l
.
default
.
RateComponent
}]},
function
(
s
){
d
=
s
,
console
.
log
(
"The player is created"
),
s
.
on
(
"sourceloaded"
,
function
(
e
){
var
t
=
e
.
paramData
,
i
=
t
.
desc
,
n
=
t
.
definition
;
s
.
getComponent
(
"QualityComponent"
).
setCurrentQuality
(
i
,
n
)}),
d
&&
(
d
.
on
(
"ready"
,
window
.
_playerStart
),
d
.
on
(
"timeupdate"
,
window
.
_playerIng
),
d
.
on
(
"startSeek"
,
window
.
_playerSeekStart
),
d
.
on
(
"completeSeek"
,
window
.
_playerSeek
),
d
.
on
(
"ended"
,
window
.
_playerFinish
))}),
this
.
setSize
(
r
,
a
),
this
.
listenPlayerEvents
()},
listenPlayerEvents
:
function
(){
var
i
=
this
;
n
(
"#"
+
s
).
off
(
"player.time player.seek"
).
on
(
"player.time player.seek"
,
function
(
e
,
t
){
i
.
$emit
(
"handlePlayTime"
,
t
)})},
playNextVideo
:
function
(
e
,
t
,
i
,
n
,
s
,
r
,
a
){
var
o
=
this
;
this
.
changeVideoArr
(
t
,
function
(){
d
.
_urls
[
0
].
FD
=
o
.
videoArr
.
FD
,
d
.
_urls
[
1
].
LD
=
o
.
videoArr
.
LD
,
d
.
_urls
[
2
].
SD
=
o
.
videoArr
.
SD
;
var
e
=
d
.
getComponent
(
"QualityComponent"
).
definition
||
"LD"
;
p
.
loadByUrl
(
o
.
videoArr
[
e
])})},
changeVideoArr
:
function
(
e
,
t
){
this
.
$emit
(
"changeVideoArr"
,{
vid
:
e
,
callback
:
t
})},
getPlayer
:
function
(){
return
document
.
getElementById
(
r
)},
getTime
:
function
(){
return
d
?
d
.
getCurrentTime
():
0
},
setTimeTo
:
function
(
e
){
d
&&
d
.
seek
(
parseInt
(
e
+
2
))},
skipBegin
:
function
(){
d
&&
d
.
getCurrentTime
()
<
7
&&
d
.
seek
(
parseInt
(
7
))},
setSize
:
function
(
e
,
t
){
var
i
=
this
.
getPlayer
();
i
&&
(
i
.
style
.
width
=
e
+
"px"
,
i
.
style
.
height
=
t
+
"px"
)}}}}).
call
(
this
,
u
(
313
))},
366
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
367
),
s
=
i
.
n
(
n
);
for
(
var
r
in
n
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
r
);
t
.
default
=
s
.
a
},
367
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
{
props
:{
ppts
:{
type
:
Array
,
require
:
!
1
},
currentIndex
:{
type
:
Number
,
require
:
!
1
,
default
:
0
}},
data
:
function
(){
return
{
state
:{
index
:
this
.
currentIndex
,
sync
:
!
0
}}},
watch
:{
currentIndex
:{
handler
:
function
(){
this
.
state
.
sync
&&
(
this
.
state
.
index
=
this
.
currentIndex
)}}},
methods
:{
gotoIndex
:
function
(
e
){
this
.
state
.
index
=
e
},
getIndex
:
function
(
e
){
return
Math
.
min
(
this
.
ppts
.
length
-
1
,
Math
.
max
(
0
,
e
))},
prev
:
function
(
e
){
this
.
state
.
index
=
this
.
getIndex
(
this
.
state
.
index
-
1
),
this
.
state
.
sync
=!
1
},
next
:
function
(
e
){
this
.
state
.
index
=
this
.
getIndex
(
this
.
state
.
index
+
1
),
this
.
state
.
sync
=!
1
},
onToggleSync
:
function
(
e
){
this
.
state
.
sync
=!
this
.
state
.
sync
,
this
.
state
.
index
=
this
.
state
.
sync
?
this
.
currentIndex
:
this
.
state
.
index
},
onSetVideoTime
:
function
(
e
){
this
.
$emit
(
"onVideoSyncTime"
,
this
.
ppts
[
this
.
state
.
index
].
ppt_point
)},
setSize
:
function
(
e
,
t
){
this
.
$refs
.
wrap
.
style
.
width
=
e
+
"px"
,
this
.
$refs
.
wrap
.
style
.
height
=
t
+
"px"
,
this
.
$refs
.
preview
.
style
.
lineHeight
=
t
-
44
+
"px"
}}}},
419
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
464
),
s
=
i
(
361
);
for
(
var
r
in
s
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
r
);
i
(
420
);
var
a
=
i
(
1
),
o
=
Object
(
a
.
a
)(
s
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
"dced0884"
,
null
);
o
.
options
.
__file
=
"video.vue"
,
t
.
default
=
o
.
exports
},
420
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
i
(
363
);
i
.
n
(
n
).
a
},
421
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
465
),
s
=
i
(
364
);
for
(
var
r
in
s
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
r
);
var
a
=
i
(
1
),
o
=
Object
(
a
.
a
)(
s
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
null
,
null
);
o
.
options
.
__file
=
"videoH5.vue"
,
t
.
default
=
o
.
exports
},
422
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
467
),
s
=
i
(
366
);
for
(
var
r
in
s
)
"default"
!==
r
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
r
);
var
a
=
i
(
1
),
o
=
Object
(
a
.
a
)(
s
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
null
,
null
);
o
.
options
.
__file
=
"ppt.vue"
,
t
.
default
=
o
.
exports
},
455
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
ref
:
"container"
,
staticClass
:
"play-content-video"
},[
i
(
"div"
,{
ref
:
"box"
,
staticClass
:
"play-center"
},[
e
.
chapterVideo
?[
i
(
"div"
,{
class
:[
"play-video"
,
e
.
state
.
pptBoxOnly
?
"play-video-hide"
:
""
,
e
.
state
.
calculatedSize
?
""
:
"play-video-init-center"
]},[
"3"
!==
e
.
videoType
?[
i
(
"e-video"
,{
ref
:
"video"
,
attrs
:{
lastTime
:
parseFloat
(
e
.
chapterVideo
.
progress
&&
e
.
chapterVideo
.
progress
.
pt
||
0
),
width
:
e
.
videoFlash
.
videoWidth
,
height
:
e
.
videoFlash
.
videoHeight
,
username
:
e
.
videoFlash
.
username
,
videoId
:
e
.
chapterVideo
.
video_origionalID
,
videoSrt
:
e
.
chapterVideo
.
video_subtitle
||
""
,
chapterVideo
:
e
.
chapterVideo
},
on
:{
handlePlayTime
:
e
.
onVideoTimeChange
,
handlePlayfinish
:
e
.
onVideoPlayFinish
}})]:[
i
(
"e-video-h5"
,{
ref
:
"video"
,
attrs
:{
lastTime
:
parseFloat
(
e
.
chapterVideo
.
progress
&&
e
.
chapterVideo
.
progress
.
pt
||
0
),
width
:
e
.
videoFlash
.
videoWidth
,
height
:
e
.
videoFlash
.
videoHeight
,
username
:
e
.
videoFlash
.
username
,
videoId
:
e
.
chapterVideo
.
id
,
videoSrt
:
e
.
chapterVideo
.
video_subtitle
||
""
,
chapterVideo
:
e
.
chapterVideo
,
videoType
:
e
.
videoType
},
on
:{
handlePlayTime
:
e
.
onVideoTimeChange
,
handlePlayfinish
:
e
.
onVideoPlayFinish
,
changeVideoArr
:
e
.
changeVideoArr
}})]],
2
),
e
.
_v
(
" "
),
i
(
"div"
,{
class
:[
"play-jiangyi"
,
e
.
state
.
pptBoxShow
?
""
:
"hide"
]},[
e
.
ppts
.
length
?[
i
(
"e-ppt"
,{
ref
:
"ppt"
,
attrs
:{
ppts
:
e
.
ppts
,
currentIndex
:
e
.
state
.
pptIndex
},
on
:{
onVideoSyncTime
:
e
.
setVideoTime
,
onPptOnly
:
e
.
togglePptBoxOnly
,
onClose
:
e
.
togglePptBox
}})]:
e
.
_e
()],
2
)]:[
i
(
"p"
,[
e
.
_v
(
"课程视频数据不存在"
)])]],
2
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"play-footer"
},[
i
(
"div"
,{
staticClass
:
"fl"
}),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"fr"
},[
e
.
chapterVideo
.
pdf
?[
i
(
"em"
,{
staticClass
:
"play-state play-state-ppt"
},[
i
(
"a"
,{
attrs
:{
href
:
e
.
chapterVideo
.
pdf
,
target
:
"_blank"
}},[
e
.
_v
(
"下载PPT"
)])])]:
e
.
_e
(),
e
.
_v
(
" "
),
e
.
ppts
.
length
?[
i
(
"em"
,{
class
:[
"play-state"
,
"play-state-ppt"
+
(
e
.
state
.
pptBoxShow
?
"-active"
:
""
)],
on
:{
click
:
e
.
togglePptBox
}},[
e
.
_v
(
"同步显示PPT"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"em"
,{
class
:[
"play-state"
,
"play-state-check"
+
(
e
.
state
.
skipBegin
?
"-active"
:
""
)],
on
:{
click
:
e
.
toggleSkipBegin
}},[
e
.
_v
(
"始终跳过片头"
)])],
2
)])])},
s
=
[];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
s
})},
464
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
.
$createElement
;
this
.
_self
.
_c
;
return
this
.
_m
(
0
)},
s
=
[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"playerWrap"
}},[
t
(
"div"
,{
attrs
:{
id
:
"player"
}},[
t
(
"p"
,[
this
.
_v
(
"您还没有安装flash播放器,请 "
),
t
(
"a"
,{
attrs
:{
href
:
"http://www.adobe.com/go/getflash"
,
target
:
"_blank"
}},[
this
.
_v
(
"点击这里安装"
)])])])])}];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
s
})},
465
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
.
$createElement
;
this
.
_self
.
_c
;
return
this
.
_m
(
0
)},
s
=
[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"playerWrap"
}},[
t
(
"div"
,{
attrs
:{
id
:
"player"
}})])}];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
s
})},
467
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
,
t
=
this
,
i
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
i
;
return
n
(
"div"
,{
ref
:
"wrap"
,
staticClass
:
"play-ppt"
},[
t
.
ppts
.
length
?[
n
(
"div"
,{
ref
:
"preview"
,
staticClass
:
"play-preview"
},[
t
.
ppts
[
t
.
state
.
index
]
&&
t
.
ppts
[
t
.
state
.
index
].
ppt_url
?[
n
(
"img"
,{
staticClass
:
"play-ppt-img"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
src
:
t
.
ppts
[
t
.
state
.
index
].
ppt_url
}})]:
t
.
_e
()],
2
),
t
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"play-controls cl"
},[
n
(
"div"
,{
staticStyle
:{
float
:
"left"
}},[
0
<=
t
.
state
.
index
?[
n
(
"a"
,{
staticStyle
:{
margin
:
"0 20px 0 0"
,
color
:
"#fff"
},
attrs
:{
href
:
"#"
},
on
:{
click
:
t
.
prev
}},[
n
(
"i"
,{
staticClass
:
"el-icon-arrow-left"
})])]:
t
.
_e
(),
t
.
_v
(
" "
),
t
.
state
.
index
+
1
<
t
.
ppts
.
length
?[
n
(
"a"
,{
attrs
:{
href
:
"#"
},
on
:{
click
:
t
.
next
}},[
n
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
,
staticStyle
:{
color
:
"#fff"
}})])]:
t
.
_e
()],
2
),
t
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"play-page"
},[
n
(
"span"
,{
staticClass
:
"play-now"
},[
t
.
_v
(
t
.
_s
(
t
.
state
.
index
+
1
))]),
t
.
_v
(
"
\
n /
\
n "
),
n
(
"span"
,{
staticClass
:
"play-total"
},[
t
.
_v
(
t
.
_s
(
t
.
ppts
.
length
))]),
t
.
_v
(
"页
\
n "
)]),
t
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"play-amazing"
},[
n
(
"i"
,{
class
:[
"el-icon-self-xuexiao"
,
t
.
state
.
sync
?
"active"
:
""
],
on
:{
click
:
t
.
onToggleSync
}}),
t
.
_v
(
" "
),
n
(
"i"
,{
staticClass
:
"el-icon-self-quanping"
,
on
:{
click
:
function
(){
e
.
$emit
(
"onPptOnly"
)}}}),
t
.
_v
(
" "
),
n
(
"i"
,{
staticClass
:
"el-icon-self-shipin"
,
on
:{
click
:
t
.
onSetVideoTime
}}),
t
.
_v
(
" "
),
n
(
"i"
,{
staticClass
:
"el-icon-self-guanbi"
,
on
:{
click
:
function
(){
e
.
$emit
(
"onClose"
)}}})])])]:
t
.
_e
()],
2
)},
s
=
[];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
s
})}}]);
\ No newline at end of file
client-dist/resources/11.5302c669b95c.css
0 → 100644
浏览文件 @
ac0f551c
#player
p
[
data-v-b94f6c04
]
{
color
:
#fff
;
text-align
:
center
;
padding
:
50px
0
}
#player
p
a
[
data-v-b94f6c04
]
{
color
:
#b01c40
;
text-decoration
:
underline
}
\ No newline at end of file
client-dist/resources/11.6efe3774.js
0 → 100644
浏览文件 @
ac0f551c
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
11
],{
269
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
455
),
a
=
i
(
359
);
for
(
var
s
in
a
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
s
);
var
r
=
i
(
1
),
o
=
Object
(
r
.
a
)(
a
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
null
,
null
);
o
.
options
.
__file
=
"chapterVideo.vue"
,
t
.
default
=
o
.
exports
},
359
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
360
),
a
=
i
.
n
(
n
);
for
(
var
s
in
n
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
s
);
t
.
default
=
a
.
a
},
360
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
r
(
i
(
419
)),
a
=
r
(
i
(
421
)),
s
=
r
(
i
(
422
)),
p
=
r
(
i
(
74
));
function
r
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
o
=
1
e4
;
t
.
default
=
{
components
:{
eVideo
:
n
.
default
,
eVideoH5
:
a
.
default
,
ePpt
:
s
.
default
},
props
:{
chapterId
:{
type
:
String
,
require
:
!
1
},
chapterName
:{
type
:
String
,
require
:
!
1
},
chapterVideo
:{
type
:
Object
,
require
:
!
1
},
ppts
:{
type
:
Array
,
require
:
!
1
,
default
:[]},
sid
:{
type
:
String
,
require
:
!
1
},
cid
:{
type
:
String
,
require
:
!
1
},
id
:{
type
:
String
,
require
:
!
1
},
videoType
:{
type
:
String
,
require
:
!
1
}},
data
:
function
(){
return
{
state
:{
pptIndex
:
0
,
pptBoxOnly
:
!
1
,
pptBoxShow
:
!
1
,
skipBegin
:
/skip=1/
.
test
(
document
.
cookie
),
calculatedSize
:
!
1
},
videoFlash
:{
lastTime
:
null
,
speed
:
1
,
isSeek
:
!
1
,
isFinish
:
!
1
,
queueFrames
:[],
mapFrames
:[],
videoWidth
:
550
,
videoHeight
:
360
,
username
:
window
.
G
.
UserInfo
&&
window
.
G
.
UserInfo
.
username
||
""
,
duration
:
1
e4
},
resizeVideo
:
null
,
hearBeat
:
null
,
_rProgress
:{},
isPlaying
:
!
1
}},
mounted
:
function
(){
var
e
=
this
.
getCalculateSize
();
e
.
video
.
w
&&
(
this
.
videoFlash
.
videoWidth
=
e
.
video
.
w
,
this
.
videoFlash
.
videoHeight
=
e
.
video
.
h
),
this
.
resizeVideo
||
(
this
.
resizeVideo
=
p
.
default
.
debounce
(
this
.
jdugeSize
.
bind
(
this
),
200
)),
setTimeout
(
this
.
jdugeSize
,
300
),
window
.
addEventListener
(
"resize"
,
this
.
resizeVideo
),
this
.
createHeartTime
(
o
)},
destroyed
:
function
(){
window
.
removeEventListener
(
"resize"
,
this
.
resizeVideo
),
this
.
destroyHeartTime
(),
this
.
hearBeatFunc
(
o
)},
watch
:{
id
:{
handler
:
function
(){
this
.
id
&&
(
this
.
state
.
pptBoxShow
=!
1
,
this
.
state
.
pptBoxOnly
=!
1
,
this
.
_rProgress
=
{},
setTimeout
(
this
.
jdugeSize
,
0
))}}},
methods
:{
togglePptBox
:
function
(){
this
.
state
.
pptBoxShow
=!
this
.
state
.
pptBoxShow
,
this
.
state
.
pptBoxOnly
=!
1
,
setTimeout
(
this
.
jdugeSize
,
0
)},
togglePptBoxOnly
:
function
(){
this
.
state
.
pptBoxOnly
=!
this
.
state
.
pptBoxOnly
,
setTimeout
(
this
.
jdugeSize
,
0
)},
toggleSkipBegin
:
function
(){
var
e
=!
this
.
state
.
skipBegin
,
t
=
new
Date
;
t
.
setMonth
(
t
.
getMonth
()
+
1
),
document
.
cookie
=
"skip="
+
+
e
+
";path=/;domain=.ezijing.com;expires="
+
t
.
toGMTString
(),
e
&&
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
skipBegin
(),
this
.
state
.
skipBegin
=
e
},
onVideoTimeChange
:
function
(
e
){
var
t
=
e
.
time
;
this
.
videoFlash
.
duration
=
e
.
duration
||
this
.
videoFlash
.
duration
,
this
.
videoFlash
.
speed
=
parseFloat
(
e
.
quality
.
split
(
" "
)[
1
]
||
1
),
this
.
videoFlash
.
isSeek
=
e
.
isSeek
,
this
.
videoFlash
.
lastTime
!==
t
&&
(
this
.
videoFlash
.
lastTime
=
t
,
this
.
isPlaying
=!
0
,
e
.
isSeek
||
this
.
videoFlash
.
queueFrames
.
push
(
t
),
this
.
setPptIndexByTime
(
t
),
this
.
$emit
(
"handlePlayTime"
,
t
))},
onVideoPlayFinish
:
function
(
e
){
if
(
this
.
chapterVideo
){
if
(
this
.
_rProgress
&&
this
.
_rProgress
.
id
);
else
{
this
.
_rProgress
=
p
.
default
.
assignIn
({},
this
.
chapterVideo
.
progress
);
for
(
var
t
=
[],
i
=
this
.
chapterVideo
.
video_length
||
1
,
n
=
0
;
n
<
i
;
n
++
)
t
.
push
(
0
);
this
.
videoFlash
.
mapFrames
=
this
.
_rProgress
.
map
.
length
?
this
.
_rProgress
.
map
:
t
,
this
.
_rProgress
.
map
=
this
.
videoFlash
.
mapFrames
}
this
.
_rProgress
.
pt
+
10
*
this
.
videoFlash
.
speed
>=
e
.
time
&&
(
this
.
isPlaying
=!
0
,
this
.
hearBeatFunc
(
o
))}},
changeVideoArr
:
function
(
e
){
this
.
$emit
(
"changeVideoArr"
,
e
)},
setPptIndexByTime
:
function
(
e
){
for
(
var
t
=
this
.
ppts
||
[],
i
=
0
;
i
<
t
.
length
&&!
(
e
<
t
[
i
].
ppt_point
);
i
++
);
this
.
state
.
pptIndex
!==
i
-
1
&&
(
this
.
state
.
pptIndex
=
i
-
1
)},
setVideoTime
:
function
(
e
){
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
setTimeTo
(
e
)},
jdugeSize
:
function
(){
var
e
=
this
.
$refs
.
box
,
t
=
this
.
getCalculateSize
(),
i
=
0
,
n
=
0
;
this
.
state
.
pptBoxOnly
?(
n
=
t
.
ppt
.
w
,
i
=
t
.
ppt
.
h
,
this
.
$refs
.
ppt
&&
this
.
$refs
.
ppt
.
setSize
(
n
,
i
)):
this
.
state
.
pptBoxShow
?(
this
.
$refs
.
ppt
&&
this
.
$refs
.
ppt
.
setSize
(
t
.
ppt
.
w
,
t
.
ppt
.
h
),
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
setSize
(
t
.
video
.
w
,
t
.
video
.
h
),
n
=
t
.
ppt
.
w
+
t
.
video
.
w
,
i
=
t
.
video
.
h
):(
n
=
t
.
video
.
w
,
i
=
t
.
video
.
h
,
this
.
$refs
.
video
&&
this
.
$refs
.
video
.
setSize
(
n
,
i
)),
this
.
state
.
calculatedSize
=!
0
,
e
.
style
.
paddingLeft
=
(
t
.
space
.
w
-
n
)
/
2
+
15
+
"px"
,
e
.
style
.
paddingTop
=
(
t
.
space
.
h
-
i
)
/
2
+
10
+
"px"
},
getCalculateSize
:
function
(){
var
e
=
this
.
$refs
.
container
,
t
=
e
.
offsetWidth
-
30
,
i
=
e
.
offsetHeight
-
53
-
20
,
n
=
550
/
363
,
a
=
336
/
236
,
s
=
{
space
:{
w
:
t
,
h
:
i
},
video
:{
w
:
0
,
h
:
0
},
ppt
:{
w
:
0
,
h
:
0
}};
if
(
this
.
state
.
pptBoxOnly
)
s
.
ppt
.
w
=
t
<
i
*
a
?
t
:
i
*
a
,
s
.
ppt
.
h
=
i
<
t
/
a
?
i
:
t
/
a
;
else
if
(
this
.
state
.
pptBoxShow
){
var
r
=
t
/
2
,
o
=
r
<
i
*
n
?
r
:
i
*
n
,
l
=
i
<
r
/
n
?
i
:
r
/
n
,
d
=
l
,
p
=
d
*
a
;
s
.
video
.
w
=
o
,
s
.
video
.
h
=
l
,
s
.
ppt
.
w
=
p
,
s
.
ppt
.
h
=
d
}
else
s
.
video
.
w
=
t
<
i
*
n
?
t
:
i
*
n
,
s
.
video
.
h
=
i
<
t
/
n
?
i
:
t
/
n
;
return
s
},
hearBeatFunc
:
function
(
e
){
if
(
this
.
chapterVideo
&&
this
.
isPlaying
){
if
(
this
.
_rProgress
&&
this
.
_rProgress
.
id
);
else
{
this
.
_rProgress
=
p
.
default
.
assignIn
({},
this
.
chapterVideo
.
progress
);
for
(
var
t
=
[],
i
=
this
.
chapterVideo
.
video_length
||
1
,
n
=
0
;
n
<
i
;
n
++
)
t
.
push
(
0
);
this
.
videoFlash
.
mapFrames
=
this
.
_rProgress
.
map
.
length
?
this
.
_rProgress
.
map
:
t
,
this
.
_rProgress
.
map
=
this
.
videoFlash
.
mapFrames
}
var
a
=
this
.
_rProgress
,
s
=
this
.
videoFlash
.
duration
,
r
=
Math
.
min
(
this
.
videoFlash
.
lastTime
,
s
),
o
=
this
.
videoFlash
.
speed
,
l
=
this
.
videoFlash
.
isSeek
,
d
=
this
.
videoFlash
.
queueFrames
;
0
===
a
.
cpt
&&
0
===
a
.
mpt
&&
0
===
a
.
pt
&&
/skip=1/
.
test
(
document
.
cookie
)
&&
(
a
.
pt
=
7
),
l
||
(
a
.
pt
+=
e
/
1
e3
*
o
,
a
.
cpt
=
r
,
a
.
mpt
=
r
>
a
.
mpt
?
r
:
a
.
mpt
,
a
.
mpt
=
a
.
mpt
>
s
?
s
:
a
.
mpt
,
parseInt
(
a
.
mpt
)
>
parseInt
(
s
)
+
1
e4
&&
this
.
$message
.
info
(
"视频播放出错,请刷新页面重新观看。"
),
a
.
ps
=
d
,
a
.
vid
=
this
.
id
,
this
.
$emit
(
"updateProgress"
,
this
.
_rProgress
)),
this
.
isPlaying
=!
1
}},
createHeartTime
:
function
(
e
){
var
t
=
this
,
i
=
e
||
1
e4
;
this
.
destroyHeartTime
(),
this
.
hearBeat
=
setInterval
(
function
(){
t
.
hearBeatFunc
(
i
)},
i
)},
destroyHeartTime
:
function
(){
this
.
hearBeat
&&
clearInterval
(
this
.
hearBeat
)}}}},
361
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
362
),
a
=
i
.
n
(
n
);
for
(
var
s
in
n
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
s
);
t
.
default
=
a
.
a
},
362
:
function
(
e
,
s
,
r
){
"use strict"
;(
function
(
n
){
Object
.
defineProperty
(
s
,
"__esModule"
,{
value
:
!
0
});
var
e
,
t
=
r
(
270
),
d
=
(
e
=
t
)
&&
e
.
__esModule
?
e
:{
default
:
e
};
var
a
=
"playerWrap"
,
i
=
0
;
s
.
default
=
{
props
:{
lastTime
:{
type
:
Number
,
require
:
!
1
},
videoId
:{
type
:
String
,
require
:
!
1
},
width
:{
type
:
Number
,
require
:
!
1
},
height
:{
type
:
Number
,
require
:
!
1
},
username
:{
type
:
String
,
require
:
!
1
},
videoSrt
:{
type
:
String
,
require
:
!
1
},
autoPlay
:{
type
:
Boolean
,
require
:
!
1
,
default
:
!
0
},
chapterVideo
:{
type
:
Object
,
require
:
!
1
}},
mounted
:
function
(){
this
.
definWindowFun
()},
watch
:{
videoId
:{
handler
:
function
(){
this
.
videoId
&&
(
i
=
this
.
lastTime
||
0
,
this
.
renderPlayer
(
"player"
,
this
.
videoId
,
this
.
autoPlay
,
this
.
videoSrt
,
this
.
username
,
this
.
width
,
this
.
height
))}}},
methods
:{
definWindowFun
:
function
(){
var
t
=
this
;
window
.
_playerStart
=
function
(){
/
skip
=
1
/
.
test
(
document
.
cookie
)?
t
.
getPlayer
().
callAction
(
"setCurrentTime"
,
Math
.
max
(
i
,
7
)):
i
&&
t
.
getPlayer
().
callAction
(
"setCurrentTime"
,
i
)},
window
.
_playerIng
=
function
(
e
){
n
(
"#"
+
a
).
trigger
(
"player.time"
,{
time
:
e
,
duration
:
t
.
getPlayer
().
callAction
(
"getDuration"
),
quality
:
t
.
getPlayer
().
callAction
(
"getQuality"
),
isSeek
:
!
1
})},
window
.
_playerSeek
=
function
(){
n
(
"#"
+
a
).
trigger
(
"player.seek"
,{
time
:
t
.
getPlayer
().
callAction
(
"getCurrentTime"
),
duration
:
t
.
getPlayer
().
callAction
(
"getDuration"
),
quality
:
t
.
getPlayer
().
callAction
(
"getQuality"
),
isSeek
:
!
0
})},
window
.
_playerFinish
=
function
(){
t
.
$emit
(
"handlePlayfinish"
,{
time
:
t
.
getPlayer
().
callAction
(
"getDuration"
)})},
window
.
_playerCallback
=
function
(){
var
e
=
t
.
getPlayer
();
e
&&
(
e
.
callAction
(
"register"
,
"onCanplay"
,
"_playerStart"
),
e
.
callAction
(
"register"
,
"onPlaying"
,
"_playerIng"
),
e
.
callAction
(
"register"
,
"onSeekComplete"
,
"_playerSeek"
),
e
.
callAction
(
"register"
,
"onEnded"
,
"_playerFinish"
))}},
renderPlayer
:
function
(
e
,
t
,
i
,
n
,
a
,
s
,
r
){
var
o
=
{
autoStart
:
i
=
void
0
===
i
?
1
:
i
-
0
,
vid
:
t
,
isShowSpeeder
:
1
,
videoType
:
1
,
callback
:
"_playerCallback"
};
n
&&
(
o
.
srtUrl
=
n
),
a
&&
(
o
.
username
=
a
);
var
l
=
{
id
:
e
,
name
:
e
,
align
:
"middle"
,
wmode
:
"opaque"
};
d
.
default
.
embedSWF
(
"/static/videoJs/swf/Player1705192.swf"
,
e
,
parseInt
(
s
),
parseInt
(
r
),
"11.1.0"
,
"playerProductInstall.swf"
,
o
,{
quality
:
"high"
,
bgcolor
:
"#000000"
,
allowscriptaccess
:
"always"
,
allowfullscreen
:
"true"
},
l
),
this
.
listenPlayerEvents
()},
listenPlayerEvents
:
function
(){
var
i
=
this
;
n
(
"#"
+
a
).
off
(
"player.time player.seek"
).
on
(
"player.time player.seek"
,
function
(
e
,
t
){
i
.
$emit
(
"handlePlayTime"
,
t
)})},
getPlayer
:
function
(){
return
document
.
getElementById
(
"player"
)},
getTime
:
function
(){
var
e
=
this
.
getPlayer
();
return
e
?
e
.
callAction
(
"getCurrentTime"
):
0
},
setTimeTo
:
function
(
e
){
var
t
=
this
.
getPlayer
();
t
&&
t
.
callAction
(
"setCurrentTime"
,
e
+
2
)},
skipBegin
:
function
(){
var
e
=
this
.
getPlayer
();
e
&&
e
.
callAction
(
"getCurrentTime"
)
<
7
&&
e
.
callAction
(
"setCurrentTime"
,
7
)},
setSize
:
function
(
e
,
t
){
var
i
=
this
.
getPlayer
();
i
&&
(
i
.
width
=
e
,
i
.
height
=
t
)}}}}).
call
(
this
,
r
(
313
))},
363
:
function
(
e
,
t
,
i
){},
364
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
365
),
a
=
i
.
n
(
n
);
for
(
var
s
in
n
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
s
);
t
.
default
=
a
.
a
},
365
:
function
(
e
,
i
,
u
){
"use strict"
;(
function
(
n
){
Object
.
defineProperty
(
i
,
"__esModule"
,{
value
:
!
0
});
var
t
=
e
(
u
(
41
)),
o
=
e
(
u
(
271
)),
l
=
e
(
u
(
272
));
function
e
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
a
=
"playerWrap"
,
s
=
"player"
,
d
=
null
,
p
=
null
,
r
=
0
;
i
.
default
=
{
props
:{
lastTime
:{
type
:
Number
,
require
:
!
1
},
videoId
:{
type
:
String
,
require
:
!
1
},
width
:{
type
:
Number
,
require
:
!
1
},
height
:{
type
:
Number
,
require
:
!
1
},
username
:{
type
:
String
,
require
:
!
1
},
videoSrt
:{
type
:
String
,
require
:
!
1
},
autoPlay
:{
type
:
Boolean
,
require
:
!
1
,
default
:
!
0
},
chapterVideo
:{
type
:
Object
,
require
:
!
1
}},
data
:
function
(){
return
{
videoArr
:{}}},
mounted
:
function
(){
this
.
definWindowFun
()},
watch
:{
videoId
:{
handler
:
function
(){
var
i
=
this
;
if
(
this
.
videoId
){
r
=
this
.
lastTime
||
0
;
var
e
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
t
.
default
.
chapterAction
.
getCurrentChapterDetailAliyun
(
this
.
videoId
).
then
(
function
(
e
){
i
.
videoArr
=
e
.
video
;
var
t
=
i
.
getPlayer
();
p
&&
t
.
innerHTML
?
i
.
playNextVideo
(
s
,
i
.
videoId
,
i
.
autoPlay
,
i
.
videoSrt
,
i
.
username
,
i
.
width
,
i
.
height
):
i
.
renderPlayer
(
s
,
i
.
videoId
,
i
.
autoPlay
,
i
.
videoSrt
,
i
.
username
,
i
.
width
,
i
.
height
)}).
catch
(
function
(
e
){
i
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
e
.
close
()})}}}},
methods
:{
definWindowFun
:
function
(){
var
e
=
this
;
window
.
_playerStart
=
function
(){
r
=
d
.
getDuration
()
<
r
?
d
.
getDuration
():
r
,
/skip=1/
.
test
(
document
.
cookie
)?
d
.
seek
(
parseInt
(
Math
.
max
(
r
,
7
))):
r
&&
d
.
seek
(
parseInt
(
r
))},
window
.
_playerIng
=
function
(
e
){
var
t
=
d
.
getComponent
(
"QualityComponent"
).
definition
,
i
=
d
.
getComponent
(
"RateComponent"
).
html
.
innerText
;
switch
(
t
){
case
"FD"
:
t
=
"普通"
;
break
;
case
"LD"
:
t
=
"清晰"
;
break
;
case
"SD"
:
t
=
"高清"
}
i
&&
(
t
+=
" "
+
i
),
e
=
d
.
getCurrentTime
(),
n
(
"#"
+
a
).
trigger
(
"player.time"
,{
time
:
e
,
duration
:
d
.
getDuration
(),
quality
:
t
,
isSeek
:
!
1
})},
window
.
_playerSeekStart
=
function
(
e
){},
window
.
_playerSeek
=
function
(){
var
e
=
d
.
getComponent
(
"QualityComponent"
).
definition
,
t
=
d
.
getComponent
(
"RateComponent"
).
html
.
innerText
;
switch
(
e
){
case
"FD"
:
e
=
"普通"
;
break
;
case
"LD"
:
e
=
"清晰"
;
break
;
case
"SD"
:
e
=
"高清"
}
t
&&
(
e
+=
" "
+
t
),
n
(
"#"
+
a
).
trigger
(
"player.seek"
,{
time
:
d
.
getCurrentTime
(),
duration
:
d
.
getDuration
(),
quality
:
e
,
isSeek
:
!
0
})},
window
.
_playerFinish
=
function
(){
e
.
$emit
(
"handlePlayfinish"
,{
time
:
d
.
getDuration
()})}},
renderPlayer
:
function
(
e
,
t
,
i
,
n
,
a
,
s
,
r
){
i
=
void
0
===
i
?
1
:
i
-
0
,
p
=
new
o
.
default
({
id
:
e
,
source
:
JSON
.
stringify
(
this
.
videoArr
),
width
:
"100%"
,
height
:
"100%"
,
autoplay
:
!!
i
,
isLive
:
!
1
,
controlBarVisibility
:
"always"
,
definition
:
"FD,LD,SD"
,
defaultDefinition
:
"LD"
,
components
:[{
name
:
"QualityComponent"
,
type
:
l
.
default
.
QualityComponent
},{
name
:
"RateComponent"
,
type
:
l
.
default
.
RateComponent
}]},
function
(
a
){
d
=
a
,
console
.
log
(
"The player is created"
),
a
.
on
(
"sourceloaded"
,
function
(
e
){
var
t
=
e
.
paramData
,
i
=
t
.
desc
,
n
=
t
.
definition
;
a
.
getComponent
(
"QualityComponent"
).
setCurrentQuality
(
i
,
n
)}),
d
&&
(
d
.
on
(
"ready"
,
window
.
_playerStart
),
d
.
on
(
"timeupdate"
,
window
.
_playerIng
),
d
.
on
(
"startSeek"
,
window
.
_playerSeekStart
),
d
.
on
(
"completeSeek"
,
window
.
_playerSeek
),
d
.
on
(
"ended"
,
window
.
_playerFinish
))}),
this
.
setSize
(
s
,
r
),
this
.
listenPlayerEvents
()},
listenPlayerEvents
:
function
(){
var
i
=
this
;
n
(
"#"
+
a
).
off
(
"player.time player.seek"
).
on
(
"player.time player.seek"
,
function
(
e
,
t
){
i
.
$emit
(
"handlePlayTime"
,
t
)})},
playNextVideo
:
function
(
e
,
t
,
i
,
n
,
a
,
s
,
r
){
var
o
=
this
;
this
.
changeVideoArr
(
t
,
function
(){
d
.
_urls
[
0
].
FD
=
o
.
videoArr
.
FD
,
d
.
_urls
[
1
].
LD
=
o
.
videoArr
.
LD
,
d
.
_urls
[
2
].
SD
=
o
.
videoArr
.
SD
;
var
e
=
d
.
getComponent
(
"QualityComponent"
).
definition
||
"LD"
;
p
.
loadByUrl
(
o
.
videoArr
[
e
])})},
changeVideoArr
:
function
(
e
,
t
){
this
.
$emit
(
"changeVideoArr"
,{
vid
:
e
,
callback
:
t
})},
getPlayer
:
function
(){
return
document
.
getElementById
(
s
)},
getTime
:
function
(){
return
d
?
d
.
getCurrentTime
():
0
},
setTimeTo
:
function
(
e
){
d
&&
d
.
seek
(
parseInt
(
e
+
2
))},
skipBegin
:
function
(){
d
&&
d
.
getCurrentTime
()
<
7
&&
d
.
seek
(
parseInt
(
7
))},
setSize
:
function
(
e
,
t
){
var
i
=
this
.
getPlayer
();
i
&&
(
i
.
style
.
width
=
e
+
"px"
,
i
.
style
.
height
=
t
+
"px"
)}}}}).
call
(
this
,
u
(
313
))},
366
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
367
),
a
=
i
.
n
(
n
);
for
(
var
s
in
n
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
n
[
e
]})}(
s
);
t
.
default
=
a
.
a
},
367
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
{
props
:{
ppts
:{
type
:
Array
,
require
:
!
1
},
currentIndex
:{
type
:
Number
,
require
:
!
1
,
default
:
0
}},
data
:
function
(){
return
{
state
:{
index
:
this
.
currentIndex
,
sync
:
!
0
}}},
watch
:{
currentIndex
:{
handler
:
function
(){
this
.
state
.
sync
&&
(
this
.
state
.
index
=
this
.
currentIndex
)}}},
methods
:{
gotoIndex
:
function
(
e
){
this
.
state
.
index
=
e
},
getIndex
:
function
(
e
){
return
Math
.
min
(
this
.
ppts
.
length
-
1
,
Math
.
max
(
0
,
e
))},
prev
:
function
(
e
){
this
.
state
.
index
=
this
.
getIndex
(
this
.
state
.
index
-
1
),
this
.
state
.
sync
=!
1
},
next
:
function
(
e
){
this
.
state
.
index
=
this
.
getIndex
(
this
.
state
.
index
+
1
),
this
.
state
.
sync
=!
1
},
onToggleSync
:
function
(
e
){
this
.
state
.
sync
=!
this
.
state
.
sync
,
this
.
state
.
index
=
this
.
state
.
sync
?
this
.
currentIndex
:
this
.
state
.
index
},
onSetVideoTime
:
function
(
e
){
this
.
$emit
(
"onVideoSyncTime"
,
this
.
ppts
[
this
.
state
.
index
].
ppt_point
)},
setSize
:
function
(
e
,
t
){
this
.
$refs
.
wrap
.
style
.
width
=
e
+
"px"
,
this
.
$refs
.
wrap
.
style
.
height
=
t
+
"px"
,
this
.
$refs
.
preview
.
style
.
lineHeight
=
t
-
44
+
"px"
}}}},
419
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
464
),
a
=
i
(
361
);
for
(
var
s
in
a
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
s
);
i
(
420
);
var
r
=
i
(
1
),
o
=
Object
(
r
.
a
)(
a
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
"b94f6c04"
,
null
);
o
.
options
.
__file
=
"video.vue"
,
t
.
default
=
o
.
exports
},
420
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
i
(
363
);
i
.
n
(
n
).
a
},
421
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
465
),
a
=
i
(
364
);
for
(
var
s
in
a
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
s
);
var
r
=
i
(
1
),
o
=
Object
(
r
.
a
)(
a
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
null
,
null
);
o
.
options
.
__file
=
"videoH5.vue"
,
t
.
default
=
o
.
exports
},
422
:
function
(
e
,
t
,
i
){
"use strict"
;
i
.
r
(
t
);
var
n
=
i
(
467
),
a
=
i
(
366
);
for
(
var
s
in
a
)
"default"
!==
s
&&
function
(
e
){
i
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
s
);
var
r
=
i
(
1
),
o
=
Object
(
r
.
a
)(
a
.
default
,
n
.
a
,
n
.
b
,
!
1
,
null
,
null
,
null
);
o
.
options
.
__file
=
"ppt.vue"
,
t
.
default
=
o
.
exports
},
455
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
ref
:
"container"
,
staticClass
:
"play-content-video"
},[
i
(
"div"
,{
ref
:
"box"
,
staticClass
:
"play-center"
},[
e
.
chapterVideo
?[
i
(
"div"
,{
class
:[
"play-video"
,
e
.
state
.
pptBoxOnly
?
"play-video-hide"
:
""
,
e
.
state
.
calculatedSize
?
""
:
"play-video-init-center"
]},[
"3"
!==
e
.
videoType
?[
i
(
"e-video"
,{
ref
:
"video"
,
attrs
:{
lastTime
:
parseFloat
(
e
.
chapterVideo
.
progress
&&
e
.
chapterVideo
.
progress
.
pt
||
0
),
width
:
e
.
videoFlash
.
videoWidth
,
height
:
e
.
videoFlash
.
videoHeight
,
username
:
e
.
videoFlash
.
username
,
videoId
:
e
.
chapterVideo
.
video_origionalID
,
videoSrt
:
e
.
chapterVideo
.
video_subtitle
||
""
,
chapterVideo
:
e
.
chapterVideo
},
on
:{
handlePlayTime
:
e
.
onVideoTimeChange
,
handlePlayfinish
:
e
.
onVideoPlayFinish
}})]:[
i
(
"e-video-h5"
,{
ref
:
"video"
,
attrs
:{
lastTime
:
parseFloat
(
e
.
chapterVideo
.
progress
&&
e
.
chapterVideo
.
progress
.
pt
||
0
),
width
:
e
.
videoFlash
.
videoWidth
,
height
:
e
.
videoFlash
.
videoHeight
,
username
:
e
.
videoFlash
.
username
,
videoId
:
e
.
chapterVideo
.
id
,
videoSrt
:
e
.
chapterVideo
.
video_subtitle
||
""
,
chapterVideo
:
e
.
chapterVideo
,
videoType
:
e
.
videoType
},
on
:{
handlePlayTime
:
e
.
onVideoTimeChange
,
handlePlayfinish
:
e
.
onVideoPlayFinish
,
changeVideoArr
:
e
.
changeVideoArr
}})]],
2
),
e
.
_v
(
" "
),
i
(
"div"
,{
class
:[
"play-jiangyi"
,
e
.
state
.
pptBoxShow
?
""
:
"hide"
]},[
e
.
ppts
.
length
?[
i
(
"e-ppt"
,{
ref
:
"ppt"
,
attrs
:{
ppts
:
e
.
ppts
,
currentIndex
:
e
.
state
.
pptIndex
},
on
:{
onVideoSyncTime
:
e
.
setVideoTime
,
onPptOnly
:
e
.
togglePptBoxOnly
,
onClose
:
e
.
togglePptBox
}})]:
e
.
_e
()],
2
)]:[
i
(
"p"
,[
e
.
_v
(
"课程视频数据不存在"
)])]],
2
),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"play-footer"
},[
i
(
"div"
,{
staticClass
:
"fl"
}),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"fr"
},[
e
.
chapterVideo
.
pdf
?[
i
(
"em"
,{
staticClass
:
"play-state play-state-ppt"
},[
i
(
"a"
,{
attrs
:{
href
:
e
.
chapterVideo
.
pdf
,
target
:
"_blank"
}},[
e
.
_v
(
"下载PPT"
)])])]:
e
.
_e
(),
e
.
_v
(
" "
),
e
.
ppts
.
length
?[
i
(
"em"
,{
class
:[
"play-state"
,
"play-state-ppt"
+
(
e
.
state
.
pptBoxShow
?
"-active"
:
""
)],
on
:{
click
:
e
.
togglePptBox
}},[
e
.
_v
(
"同步显示PPT"
)])]:
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"em"
,{
class
:[
"play-state"
,
"play-state-check"
+
(
e
.
state
.
skipBegin
?
"-active"
:
""
)],
on
:{
click
:
e
.
toggleSkipBegin
}},[
e
.
_v
(
"始终跳过片头"
)])],
2
)])])},
a
=
[];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
a
})},
464
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
.
$createElement
;
this
.
_self
.
_c
;
return
this
.
_m
(
0
)},
a
=
[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"playerWrap"
}},[
t
(
"div"
,{
attrs
:{
id
:
"player"
}},[
t
(
"p"
,[
this
.
_v
(
"您还没有安装flash播放器,请 "
),
t
(
"a"
,{
attrs
:{
href
:
"http://www.adobe.com/go/getflash"
,
target
:
"_blank"
}},[
this
.
_v
(
"点击这里安装"
)])])])])}];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
a
})},
465
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
.
$createElement
;
this
.
_self
.
_c
;
return
this
.
_m
(
0
)},
a
=
[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"playerWrap"
}},[
t
(
"div"
,{
attrs
:{
id
:
"player"
}})])}];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
a
})},
467
:
function
(
e
,
t
,
i
){
"use strict"
;
var
n
=
function
(){
var
e
=
this
,
t
=
this
,
i
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
i
;
return
n
(
"div"
,{
ref
:
"wrap"
,
staticClass
:
"play-ppt"
},[
t
.
ppts
.
length
?[
n
(
"div"
,{
ref
:
"preview"
,
staticClass
:
"play-preview"
},[
t
.
ppts
[
t
.
state
.
index
]
&&
t
.
ppts
[
t
.
state
.
index
].
ppt_url
?[
n
(
"img"
,{
staticClass
:
"play-ppt-img"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
src
:
t
.
ppts
[
t
.
state
.
index
].
ppt_url
}})]:
t
.
_e
()],
2
),
t
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"play-controls cl"
},[
n
(
"div"
,{
staticStyle
:{
float
:
"left"
}},[
0
<=
t
.
state
.
index
?[
n
(
"a"
,{
staticStyle
:{
margin
:
"0 20px 0 0"
,
color
:
"#fff"
},
attrs
:{
href
:
"#"
},
on
:{
click
:
t
.
prev
}},[
n
(
"i"
,{
staticClass
:
"el-icon-arrow-left"
})])]:
t
.
_e
(),
t
.
_v
(
" "
),
t
.
state
.
index
+
1
<
t
.
ppts
.
length
?[
n
(
"a"
,{
attrs
:{
href
:
"#"
},
on
:{
click
:
t
.
next
}},[
n
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
,
staticStyle
:{
color
:
"#fff"
}})])]:
t
.
_e
()],
2
),
t
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"play-page"
},[
n
(
"span"
,{
staticClass
:
"play-now"
},[
t
.
_v
(
t
.
_s
(
t
.
state
.
index
+
1
))]),
t
.
_v
(
"
\
n /
\
n "
),
n
(
"span"
,{
staticClass
:
"play-total"
},[
t
.
_v
(
t
.
_s
(
t
.
ppts
.
length
))]),
t
.
_v
(
"页
\
n "
)]),
t
.
_v
(
" "
),
n
(
"div"
,{
staticClass
:
"play-amazing"
},[
n
(
"i"
,{
class
:[
"el-icon-self-xuexiao"
,
t
.
state
.
sync
?
"active"
:
""
],
on
:{
click
:
t
.
onToggleSync
}}),
t
.
_v
(
" "
),
n
(
"i"
,{
staticClass
:
"el-icon-self-quanping"
,
on
:{
click
:
function
(){
e
.
$emit
(
"onPptOnly"
)}}}),
t
.
_v
(
" "
),
n
(
"i"
,{
staticClass
:
"el-icon-self-shipin"
,
on
:{
click
:
t
.
onSetVideoTime
}}),
t
.
_v
(
" "
),
n
(
"i"
,{
staticClass
:
"el-icon-self-guanbi"
,
on
:{
click
:
function
(){
e
.
$emit
(
"onClose"
)}}})])])]:
t
.
_e
()],
2
)},
a
=
[];
i
.
d
(
t
,
"a"
,
function
(){
return
n
}),
i
.
d
(
t
,
"b"
,
function
(){
return
a
})}}]);
\ No newline at end of file
client-dist/resources/11.7275abdd54ff.css
deleted
100644 → 0
浏览文件 @
f320f688
#player
p
[
data-v-dced0884
]
{
color
:
#fff
;
text-align
:
center
;
padding
:
50px
0
}
#player
p
a
[
data-v-dced0884
]
{
color
:
#b01c40
;
text-decoration
:
underline
}
\ No newline at end of file
client-dist/resources/app.5
c558967
.js
→
client-dist/resources/app.5
fb36ac1
.js
浏览文件 @
ac0f551c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
client-dist/resources/manifest.
f39c4625
.js
→
client-dist/resources/manifest.
85abc648
.js
浏览文件 @
ac0f551c
!
function
(
d
){
function
e
(
e
){
for
(
var
t
,
r
,
n
=
e
[
0
],
a
=
e
[
1
],
o
=
e
[
2
],
c
=
0
,
f
=
[];
c
<
n
.
length
;
c
++
)
r
=
n
[
c
],
b
[
r
]
&&
f
.
push
(
b
[
r
][
0
]),
b
[
r
]
=
0
;
for
(
t
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
t
)
&&
(
d
[
t
]
=
a
[
t
]);
for
(
p
&&
p
(
e
);
f
.
length
;)
f
.
shift
()();
return
i
.
push
.
apply
(
i
,
o
||
[]),
u
()}
function
u
(){
for
(
var
e
,
t
=
0
;
t
<
i
.
length
;
t
++
){
for
(
var
r
=
i
[
t
],
n
=!
0
,
a
=
1
;
a
<
r
.
length
;
a
++
){
var
o
=
r
[
a
];
0
!==
b
[
o
]
&&
(
n
=!
1
)}
n
&&
(
i
.
splice
(
t
--
,
1
),
e
=
s
(
s
.
s
=
r
[
0
]))}
return
e
}
var
r
=
{},
l
=
{
3
:
0
},
b
=
{
3
:
0
},
i
=
[];
function
s
(
e
){
if
(
r
[
e
])
return
r
[
e
].
exports
;
var
t
=
r
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
d
[
e
].
call
(
t
.
exports
,
t
,
t
.
exports
,
s
),
t
.
l
=!
0
,
t
.
exports
}
s
.
e
=
function
(
i
){
var
e
=
[];
l
[
i
]?
e
.
push
(
l
[
i
]):
0
!==
l
[
i
]
&&
{
0
:
1
,
5
:
1
,
6
:
1
,
7
:
1
,
8
:
1
,
9
:
1
,
10
:
1
,
11
:
1
,
12
:
1
,
13
:
1
,
14
:
1
,
15
:
1
,
16
:
1
,
17
:
1
,
18
:
1
,
19
:
1
,
20
:
1
,
21
:
1
,
22
:
1
,
23
:
1
,
24
:
1
,
25
:
1
}[
i
]
&&
e
.
push
(
l
[
i
]
=
new
Promise
(
function
(
e
,
n
){
for
(
var
t
=
"resources/"
+
({}[
i
]
||
i
)
+
"."
+
{
0
:
"7e9c19881242"
,
1
:
"31d6cfe0d16a"
,
5
:
"b6a10460f085"
,
6
:
"7f893c86c40d"
,
7
:
"b7a3b3beb3de"
,
8
:
"edadd3d1dece"
,
9
:
"2b76410db4d0"
,
10
:
"30b36ab56f09"
,
11
:
"7275abdd54ff"
,
12
:
"e14af2852dbd"
,
13
:
"03a7345988fb"
,
14
:
"7b16b71e9379"
,
15
:
"fc688477e0f2"
,
16
:
"9c95c5430f41"
,
17
:
"081b63b62922"
,
18
:
"69bf85281bf8"
,
19
:
"fca5eccb0e56"
,
20
:
"76e82d4724d6"
,
21
:
"abf993cecc16"
,
22
:
"da1346fedd49"
,
23
:
"5ba1b1bc7480"
,
24
:
"43ee51cf782c"
,
25
:
"12c536f6abaf"
,
26
:
"31d6cfe0d16a"
,
27
:
"31d6cfe0d16a"
,
28
:
"31d6cfe0d16a"
,
29
:
"31d6cfe0d16a"
,
30
:
"31d6cfe0d16a"
,
31
:
"31d6cfe0d16a"
,
32
:
"31d6cfe0d16a"
,
33
:
"31d6cfe0d16a"
}[
i
]
+
".css"
,
a
=
s
.
p
+
t
,
r
=
document
.
getElementsByTagName
(
"link"
),
o
=
0
;
o
<
r
.
length
;
o
++
){
var
c
=
(
d
=
r
[
o
]).
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
c
===
t
||
c
===
a
))
return
e
()}
var
f
=
document
.
getElementsByTagName
(
"style"
);
for
(
o
=
0
;
o
<
f
.
length
;
o
++
){
var
d
;
if
((
c
=
(
d
=
f
[
o
]).
getAttribute
(
"data-href"
))
===
t
||
c
===
a
)
return
e
()}
var
u
=
document
.
createElement
(
"link"
);
u
.
rel
=
"stylesheet"
,
u
.
type
=
"text/css"
,
u
.
onload
=
e
,
u
.
onerror
=
function
(
e
){
var
t
=
e
&&
e
.
target
&&
e
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
i
+
" failed.
\
n("
+
t
+
")"
);
r
.
request
=
t
,
delete
l
[
i
],
u
.
parentNode
.
removeChild
(
u
),
n
(
r
)},
u
.
href
=
a
,
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
u
)}).
then
(
function
(){
l
[
i
]
=
0
}));
var
t
,
r
=
b
[
i
];
if
(
0
!==
r
)
if
(
r
)
e
.
push
(
r
[
2
]);
else
{
var
n
=
new
Promise
(
function
(
e
,
t
){
r
=
b
[
i
]
=
[
e
,
t
]});
e
.
push
(
r
[
2
]
=
n
);
var
a
,
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
charset
=
"utf-8"
,
c
.
timeout
=
120
,
s
.
nc
&&
c
.
setAttribute
(
"nonce"
,
s
.
nc
),
c
.
src
=
s
.
p
+
"resources/"
+
({}[
t
=
i
]
||
t
)
+
"."
+
{
0
:
"fa8f2b4e"
,
1
:
"d064c442"
,
5
:
"c7817f69"
,
6
:
"b1ef9e64"
,
7
:
"22e3a852"
,
8
:
"70d69ac2"
,
9
:
"75f8a6c2"
,
10
:
"bd3cdbd6"
,
11
:
"39188c2b"
,
12
:
"9d2722ff"
,
13
:
"81f1f175"
,
14
:
"abfc162b"
,
15
:
"215fc286"
,
16
:
"2196badb"
,
17
:
"ed816a77"
,
18
:
"f27e87cc"
,
19
:
"eb8b2375"
,
20
:
"44834369"
,
21
:
"015fe65a"
,
22
:
"48061ee9"
,
23
:
"b90bdb3f"
,
24
:
"c496539e"
,
25
:
"77f16629"
,
26
:
"7263b586"
,
27
:
"96f77249"
,
28
:
"c9ab77ad"
,
29
:
"e2b8b230"
,
30
:
"c7136a86"
,
31
:
"a2b590da"
,
32
:
"846a5348"
,
33
:
"03e953f0"
}[
t
]
+
".js"
,
a
=
function
(
e
){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
t
=
b
[
i
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
n
=
e
&&
e
.
target
&&
e
.
target
.
src
,
a
=
new
Error
(
"Loading chunk "
+
i
+
" failed.
\
n("
+
r
+
": "
+
n
+
")"
);
a
.
type
=
r
,
a
.
request
=
n
,
t
[
1
](
a
)}
b
[
i
]
=
void
0
}};
var
f
=
setTimeout
(
function
(){
a
({
type
:
"timeout"
,
target
:
c
})},
12
e4
);
c
.
onerror
=
c
.
onload
=
a
,
o
.
appendChild
(
c
)}
return
Promise
.
all
(
e
)},
s
.
m
=
d
,
s
.
c
=
r
,
s
.
d
=
function
(
e
,
t
,
r
){
s
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
s
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
s
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
s
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
==
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
r
=
Object
.
create
(
null
);
if
(
s
.
r
(
r
),
Object
.
defineProperty
(
r
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
n
in
t
)
s
.
d
(
r
,
n
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
n
));
return
r
},
s
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
s
.
d
(
t
,
"a"
,
t
),
t
},
s
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
s
.
p
=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/"
,
s
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
t
=
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[],
n
=
t
.
push
.
bind
(
t
);
t
.
push
=
e
,
t
=
t
.
slice
();
for
(
var
a
=
0
;
a
<
t
.
length
;
a
++
)
e
(
t
[
a
]);
var
p
=
n
;
u
()}([]);
!
function
(
d
){
function
e
(
e
){
for
(
var
t
,
r
,
n
=
e
[
0
],
a
=
e
[
1
],
o
=
e
[
2
],
c
=
0
,
f
=
[];
c
<
n
.
length
;
c
++
)
r
=
n
[
c
],
b
[
r
]
&&
f
.
push
(
b
[
r
][
0
]),
b
[
r
]
=
0
;
for
(
t
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
t
)
&&
(
d
[
t
]
=
a
[
t
]);
for
(
p
&&
p
(
e
);
f
.
length
;)
f
.
shift
()();
return
i
.
push
.
apply
(
i
,
o
||
[]),
u
()}
function
u
(){
for
(
var
e
,
t
=
0
;
t
<
i
.
length
;
t
++
){
for
(
var
r
=
i
[
t
],
n
=!
0
,
a
=
1
;
a
<
r
.
length
;
a
++
){
var
o
=
r
[
a
];
0
!==
b
[
o
]
&&
(
n
=!
1
)}
n
&&
(
i
.
splice
(
t
--
,
1
),
e
=
s
(
s
.
s
=
r
[
0
]))}
return
e
}
var
r
=
{},
l
=
{
3
:
0
},
b
=
{
3
:
0
},
i
=
[];
function
s
(
e
){
if
(
r
[
e
])
return
r
[
e
].
exports
;
var
t
=
r
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
d
[
e
].
call
(
t
.
exports
,
t
,
t
.
exports
,
s
),
t
.
l
=!
0
,
t
.
exports
}
s
.
e
=
function
(
i
){
var
e
=
[];
l
[
i
]?
e
.
push
(
l
[
i
]):
0
!==
l
[
i
]
&&
{
0
:
1
,
5
:
1
,
6
:
1
,
7
:
1
,
8
:
1
,
9
:
1
,
10
:
1
,
11
:
1
,
12
:
1
,
13
:
1
,
14
:
1
,
15
:
1
,
16
:
1
,
17
:
1
,
18
:
1
,
19
:
1
,
20
:
1
,
21
:
1
,
22
:
1
,
23
:
1
,
24
:
1
,
25
:
1
}[
i
]
&&
e
.
push
(
l
[
i
]
=
new
Promise
(
function
(
e
,
n
){
for
(
var
t
=
"resources/"
+
({}[
i
]
||
i
)
+
"."
+
{
0
:
"7e9c19881242"
,
1
:
"31d6cfe0d16a"
,
5
:
"b6a10460f085"
,
6
:
"7f893c86c40d"
,
7
:
"b7a3b3beb3de"
,
8
:
"edadd3d1dece"
,
9
:
"2b76410db4d0"
,
10
:
"30b36ab56f09"
,
11
:
"5302c669b95c"
,
12
:
"e14af2852dbd"
,
13
:
"03a7345988fb"
,
14
:
"7b16b71e9379"
,
15
:
"fc688477e0f2"
,
16
:
"9c95c5430f41"
,
17
:
"081b63b62922"
,
18
:
"69bf85281bf8"
,
19
:
"fca5eccb0e56"
,
20
:
"76e82d4724d6"
,
21
:
"abf993cecc16"
,
22
:
"da1346fedd49"
,
23
:
"5ba1b1bc7480"
,
24
:
"43ee51cf782c"
,
25
:
"12c536f6abaf"
,
26
:
"31d6cfe0d16a"
,
27
:
"31d6cfe0d16a"
,
28
:
"31d6cfe0d16a"
,
29
:
"31d6cfe0d16a"
,
30
:
"31d6cfe0d16a"
,
31
:
"31d6cfe0d16a"
,
32
:
"31d6cfe0d16a"
,
33
:
"31d6cfe0d16a"
}[
i
]
+
".css"
,
a
=
s
.
p
+
t
,
r
=
document
.
getElementsByTagName
(
"link"
),
o
=
0
;
o
<
r
.
length
;
o
++
){
var
c
=
(
d
=
r
[
o
]).
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
c
===
t
||
c
===
a
))
return
e
()}
var
f
=
document
.
getElementsByTagName
(
"style"
);
for
(
o
=
0
;
o
<
f
.
length
;
o
++
){
var
d
;
if
((
c
=
(
d
=
f
[
o
]).
getAttribute
(
"data-href"
))
===
t
||
c
===
a
)
return
e
()}
var
u
=
document
.
createElement
(
"link"
);
u
.
rel
=
"stylesheet"
,
u
.
type
=
"text/css"
,
u
.
onload
=
e
,
u
.
onerror
=
function
(
e
){
var
t
=
e
&&
e
.
target
&&
e
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
i
+
" failed.
\
n("
+
t
+
")"
);
r
.
request
=
t
,
delete
l
[
i
],
u
.
parentNode
.
removeChild
(
u
),
n
(
r
)},
u
.
href
=
a
,
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
u
)}).
then
(
function
(){
l
[
i
]
=
0
}));
var
t
,
r
=
b
[
i
];
if
(
0
!==
r
)
if
(
r
)
e
.
push
(
r
[
2
]);
else
{
var
n
=
new
Promise
(
function
(
e
,
t
){
r
=
b
[
i
]
=
[
e
,
t
]});
e
.
push
(
r
[
2
]
=
n
);
var
a
,
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
charset
=
"utf-8"
,
c
.
timeout
=
120
,
s
.
nc
&&
c
.
setAttribute
(
"nonce"
,
s
.
nc
),
c
.
src
=
s
.
p
+
"resources/"
+
({}[
t
=
i
]
||
t
)
+
"."
+
{
0
:
"fa8f2b4e"
,
1
:
"d064c442"
,
5
:
"c7817f69"
,
6
:
"b1ef9e64"
,
7
:
"22e3a852"
,
8
:
"70d69ac2"
,
9
:
"75f8a6c2"
,
10
:
"bd3cdbd6"
,
11
:
"6efe3774"
,
12
:
"9d2722ff"
,
13
:
"81f1f175"
,
14
:
"abfc162b"
,
15
:
"215fc286"
,
16
:
"2196badb"
,
17
:
"ed816a77"
,
18
:
"f27e87cc"
,
19
:
"eb8b2375"
,
20
:
"44834369"
,
21
:
"015fe65a"
,
22
:
"48061ee9"
,
23
:
"b90bdb3f"
,
24
:
"c496539e"
,
25
:
"77f16629"
,
26
:
"7263b586"
,
27
:
"96f77249"
,
28
:
"c9ab77ad"
,
29
:
"e2b8b230"
,
30
:
"c7136a86"
,
31
:
"a2b590da"
,
32
:
"846a5348"
,
33
:
"03e953f0"
}[
t
]
+
".js"
,
a
=
function
(
e
){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
t
=
b
[
i
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
n
=
e
&&
e
.
target
&&
e
.
target
.
src
,
a
=
new
Error
(
"Loading chunk "
+
i
+
" failed.
\
n("
+
r
+
": "
+
n
+
")"
);
a
.
type
=
r
,
a
.
request
=
n
,
t
[
1
](
a
)}
b
[
i
]
=
void
0
}};
var
f
=
setTimeout
(
function
(){
a
({
type
:
"timeout"
,
target
:
c
})},
12
e4
);
c
.
onerror
=
c
.
onload
=
a
,
o
.
appendChild
(
c
)}
return
Promise
.
all
(
e
)},
s
.
m
=
d
,
s
.
c
=
r
,
s
.
d
=
function
(
e
,
t
,
r
){
s
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
s
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
s
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
s
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
==
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
r
=
Object
.
create
(
null
);
if
(
s
.
r
(
r
),
Object
.
defineProperty
(
r
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
n
in
t
)
s
.
d
(
r
,
n
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
n
));
return
r
},
s
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
s
.
d
(
t
,
"a"
,
t
),
t
},
s
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
s
.
p
=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/"
,
s
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
t
=
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[],
n
=
t
.
push
.
bind
(
t
);
t
.
push
=
e
,
t
=
t
.
slice
();
for
(
var
a
=
0
;
a
<
t
.
length
;
a
++
)
e
(
t
[
a
]);
var
p
=
n
;
u
()}([]);
\ No newline at end of file
\ No newline at end of file
client/components/player/chapterVideo/chapterVideo.vue
浏览文件 @
ac0f551c
...
@@ -118,7 +118,8 @@ export default {
...
@@ -118,7 +118,8 @@ export default {
mapFrames
:
[],
// 记录视频播放过的 所有帧 hash 表,数组 下标表示 视频对应帧 - 1,数组值 表示 播放过的帧,重复播 + 1
mapFrames
:
[],
// 记录视频播放过的 所有帧 hash 表,数组 下标表示 视频对应帧 - 1,数组值 表示 播放过的帧,重复播 + 1
videoWidth
:
VIDEO_DEFAULT_WIDTH
,
videoWidth
:
VIDEO_DEFAULT_WIDTH
,
videoHeight
:
VIDEO_DEFAULT_HEIGHT
,
videoHeight
:
VIDEO_DEFAULT_HEIGHT
,
username
:
(
window
.
G
.
UserInfo
&&
window
.
G
.
UserInfo
.
username
)
||
''
username
:
(
window
.
G
.
UserInfo
&&
window
.
G
.
UserInfo
.
username
)
||
''
,
duration
:
10000
},
},
/* 增加节流函数 对应 执行 */
/* 增加节流函数 对应 执行 */
resizeVideo
:
null
,
resizeVideo
:
null
,
...
@@ -193,6 +194,8 @@ export default {
...
@@ -193,6 +194,8 @@ export default {
// 播放时间变更
// 播放时间变更
onVideoTimeChange
(
data
)
{
onVideoTimeChange
(
data
)
{
let
time
=
data
.
time
let
time
=
data
.
time
/* 获取视频 总时长 */
this
.
videoFlash
.
duration
=
data
.
duration
||
this
.
videoFlash
.
duration
/* 获取 对应 播放 速度 和 是否 拖动 进度条 */
/* 获取 对应 播放 速度 和 是否 拖动 进度条 */
this
.
videoFlash
.
speed
=
parseFloat
(
data
.
quality
.
split
(
' '
)[
1
]
||
1
)
this
.
videoFlash
.
speed
=
parseFloat
(
data
.
quality
.
split
(
' '
)[
1
]
||
1
)
this
.
videoFlash
.
isSeek
=
data
.
isSeek
this
.
videoFlash
.
isSeek
=
data
.
isSeek
...
@@ -342,7 +345,8 @@ export default {
...
@@ -342,7 +345,8 @@ export default {
this
.
_rProgress
.
map
=
this
.
videoFlash
.
mapFrames
this
.
_rProgress
.
map
=
this
.
videoFlash
.
mapFrames
}
}
let
_rProgress
=
this
.
_rProgress
let
_rProgress
=
this
.
_rProgress
let
tempTime
=
this
.
videoFlash
.
lastTime
let
_duration
=
this
.
videoFlash
.
duration
let
tempTime
=
Math
.
min
(
this
.
videoFlash
.
lastTime
,
_duration
)
let
_speed
=
this
.
videoFlash
.
speed
let
_speed
=
this
.
videoFlash
.
speed
let
_isSeek
=
this
.
videoFlash
.
isSeek
let
_isSeek
=
this
.
videoFlash
.
isSeek
let
_queue
=
this
.
videoFlash
.
queueFrames
let
_queue
=
this
.
videoFlash
.
queueFrames
...
@@ -359,6 +363,11 @@ export default {
...
@@ -359,6 +363,11 @@ export default {
/* cpt 和 mpt 应该没问题 */
/* cpt 和 mpt 应该没问题 */
_rProgress
.
cpt
=
tempTime
_rProgress
.
cpt
=
tempTime
_rProgress
.
mpt
=
tempTime
>
_rProgress
.
mpt
?
tempTime
:
_rProgress
.
mpt
_rProgress
.
mpt
=
tempTime
>
_rProgress
.
mpt
?
tempTime
:
_rProgress
.
mpt
/* mpt 最大不能超过 总时长 */
_rProgress
.
mpt
=
_rProgress
.
mpt
>
_duration
?
_duration
:
_rProgress
.
mpt
if
(
parseInt
(
_rProgress
.
mpt
)
>
(
parseInt
(
_duration
)
+
10000
))
{
this
.
$message
.
info
(
'视频播放出错,请刷新页面重新观看。'
)
}
_rProgress
.
ps
=
_queue
_rProgress
.
ps
=
_queue
_rProgress
.
vid
=
this
.
id
_rProgress
.
vid
=
this
.
id
/* 调用接口执行刷新 */
/* 调用接口执行刷新 */
...
...
client/components/player/chapterVideo/video.vue
浏览文件 @
ac0f551c
...
@@ -62,11 +62,11 @@ export default {
...
@@ -62,11 +62,11 @@ export default {
}
}
// 播放过程中不断触发,传递当前播放到的时间
// 播放过程中不断触发,传递当前播放到的时间
window
.
_playerIng
=
function
(
time
)
{
window
.
_playerIng
=
function
(
time
)
{
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.time'
,
{
time
,
quality
:
that
.
getPlayer
().
callAction
(
'getQuality'
),
isSeek
:
false
})
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.time'
,
{
time
,
duration
:
that
.
getPlayer
().
callAction
(
'getDuration'
),
quality
:
that
.
getPlayer
().
callAction
(
'getQuality'
),
isSeek
:
false
})
}
}
// 拖动播放进度条
// 拖动播放进度条
window
.
_playerSeek
=
function
()
{
window
.
_playerSeek
=
function
()
{
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.seek'
,
{
time
:
that
.
getPlayer
().
callAction
(
'getCurrentTime'
),
quality
:
that
.
getPlayer
().
callAction
(
'getQuality'
),
isSeek
:
true
})
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.seek'
,
{
time
:
that
.
getPlayer
().
callAction
(
'getCurrentTime'
),
duration
:
that
.
getPlayer
().
callAction
(
'getDuration'
),
quality
:
that
.
getPlayer
().
callAction
(
'getQuality'
),
isSeek
:
true
})
}
}
// 视频播放结束
// 视频播放结束
window
.
_playerFinish
=
function
()
{
window
.
_playerFinish
=
function
()
{
...
...
client/components/player/chapterVideo/videoH5.vue
浏览文件 @
ac0f551c
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
}
}
if
(
rate
)
{
_quality
+=
(
' '
+
rate
)
}
if
(
rate
)
{
_quality
+=
(
' '
+
rate
)
}
time
=
videoPlayer
.
getCurrentTime
()
time
=
videoPlayer
.
getCurrentTime
()
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.time'
,
{
time
,
quality
:
_quality
,
isSeek
:
false
})
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.time'
,
{
time
,
duration
:
videoPlayer
.
getDuration
(),
quality
:
_quality
,
isSeek
:
false
})
}
}
// 开始拖拽
// 开始拖拽
window
.
_playerSeekStart
=
function
(
time
)
{
window
.
_playerSeekStart
=
function
(
time
)
{
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
case
'SD'
:
_quality
=
'高清'
;
break
case
'SD'
:
_quality
=
'高清'
;
break
}
}
if
(
rate
)
{
_quality
+=
(
' '
+
rate
)
}
if
(
rate
)
{
_quality
+=
(
' '
+
rate
)
}
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.seek'
,
{
time
:
videoPlayer
.
getCurrentTime
(),
quality
:
_quality
,
isSeek
:
true
})
$
(
'#'
+
PLAYER_WRAP_ID
).
trigger
(
'player.seek'
,
{
time
:
videoPlayer
.
getCurrentTime
(),
duration
:
videoPlayer
.
getDuration
(),
quality
:
_quality
,
isSeek
:
true
})
}
}
// 视频播放结束
// 视频播放结束
window
.
_playerFinish
=
function
()
{
window
.
_playerFinish
=
function
()
{
...
...
client/project/main.js
浏览文件 @
ac0f551c
...
@@ -21,7 +21,7 @@ Vue.use(VueRouter)
...
@@ -21,7 +21,7 @@ Vue.use(VueRouter)
const
router
=
createRouter
()
const
router
=
createRouter
()
/* 设置全局变量 */
/* 设置全局变量 */
window
.
G
=
Vue
.
prototype
.
$GlobalVariable
=
{
window
.
G
=
Vue
.
prototype
.
$GlobalVariable
=
{
VERSION
:
'PC-1.1.
2
'
VERSION
:
'PC-1.1.
3
'
}
}
Vue
.
prototype
.
$md5
=
md5
Vue
.
prototype
.
$md5
=
md5
/* 导航守卫 */
/* 导航守卫 */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论