Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online
Commits
f295842d
提交
f295842d
authored
1月 14, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
6301dabd
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
6 行删除
+16
-6
ChapterApi.js
learnOnline/apiService/ChapterApi.js
+9
-2
show.js
learnOnline/pages/videoPlayer/show.js
+3
-3
project.config.json
learnOnline/project.config.json
+4
-1
没有找到文件。
learnOnline/apiService/ChapterApi.js
浏览文件 @
f295842d
...
@@ -124,8 +124,15 @@ const getCurrentChapterDetail = (sid, vid, videoType,callback) => {
...
@@ -124,8 +124,15 @@ const getCurrentChapterDetail = (sid, vid, videoType,callback) => {
}
}
/* 结束时,调用接口 */
/* 结束时,调用接口 */
const
endVideo
=
(
sid
)
=>
{
const
endVideo
=
(
obj
)
=>
{
let
json
=
wx
.
getStorageSync
(
'video_001'
)
||
{
semester_id
:
''
,
vid
:
''
,
log_key
:
''
}
let
json
=
wx
.
getStorageSync
(
'video_001'
)
||
{
semester_id
:
''
,
vid
:
''
,
log_key
:
''
}
json
.
uid
=
wx
.
getStorageSync
(
'uid'
)
json
.
sid
=
wx
.
getStorageSync
(
'sid'
)
json
.
d
=
obj
.
did
json
.
i
=
obj
.
did
json
.
c
=
obj
.
cid
json
.
s
=
json
.
semester_id
json
.
v
=
json
.
vid
if
(
json
.
vid
!==
''
)
{
if
(
json
.
vid
!==
''
)
{
util
.
requestApi
({
util
.
requestApi
({
url
:
util
.
config
.
URL_PATH1
+
'/v2/education/end-aliyun-video-streaming'
,
url
:
util
.
config
.
URL_PATH1
+
'/v2/education/end-aliyun-video-streaming'
,
...
...
learnOnline/pages/videoPlayer/show.js
浏览文件 @
f295842d
...
@@ -174,7 +174,6 @@ Page({
...
@@ -174,7 +174,6 @@ Page({
})
})
// CC视频走这个接口
// CC视频走这个接口
ChapterApi
.
getCurrentChapterDetail
(
sid
,
vid
,
videoType
,
(
json
)
=>
{
ChapterApi
.
getCurrentChapterDetail
(
sid
,
vid
,
videoType
,
(
json
)
=>
{
ChapterApi
.
endVideo
()
// 播放的视频数据
// 播放的视频数据
this
.
setData
({
video
:
json
.
video
})
this
.
setData
({
video
:
json
.
video
})
this
.
setData
({
audio
:
json
.
audio
})
this
.
setData
({
audio
:
json
.
audio
})
...
@@ -185,6 +184,7 @@ Page({
...
@@ -185,6 +184,7 @@ Page({
res
.
cid
=
cid
res
.
cid
=
cid
res
.
sid
=
sid
res
.
sid
=
sid
this
.
initPage
(
res
,
vid
)
this
.
initPage
(
res
,
vid
)
ChapterApi
.
endVideo
(
res
)
})
})
})
})
},
},
...
@@ -209,11 +209,11 @@ Page({
...
@@ -209,11 +209,11 @@ Page({
this
.
isBackend
=
true
this
.
isBackend
=
true
this
.
pauseVA
()
this
.
pauseVA
()
clearInterval
(
this
.
heartbeat
)
clearInterval
(
this
.
heartbeat
)
ChapterApi
.
endVideo
()
ChapterApi
.
endVideo
(
this
.
realTimeProgress
)
},
},
onUnload
:
function
()
{
onUnload
:
function
()
{
this
.
pauseVA
()
this
.
pauseVA
()
ChapterApi
.
endVideo
()
ChapterApi
.
endVideo
(
this
.
realTimeProgress
)
},
},
onShow
:
function
()
{
onShow
:
function
()
{
/* 兼容 android 这里发现 android 打开预览大图,然后关闭 自动播放视频,而且关不掉, 兼容android强制关闭视频 */
/* 兼容 android 这里发现 android 打开预览大图,然后关闭 自动播放视频,而且关不掉, 兼容android强制关闭视频 */
...
...
learnOnline/project.config.json
浏览文件 @
f295842d
...
@@ -18,16 +18,19 @@
...
@@ -18,16 +18,19 @@
"checkSiteMap"
:
true
,
"checkSiteMap"
:
true
,
"uploadWithSourceMap"
:
true
,
"uploadWithSourceMap"
:
true
,
"compileHotReLoad"
:
false
,
"compileHotReLoad"
:
false
,
"useMultiFrameRuntime"
:
fals
e
,
"useMultiFrameRuntime"
:
tru
e
,
"useApiHook"
:
true
,
"useApiHook"
:
true
,
"useApiHostProcess"
:
false
,
"babelSetting"
:
{
"babelSetting"
:
{
"ignore"
:
[],
"ignore"
:
[],
"disablePlugins"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
"outputPath"
:
""
},
},
"bundle"
:
false
,
"useIsolateContext"
:
true
,
"useIsolateContext"
:
true
,
"useCompilerModule"
:
true
,
"useCompilerModule"
:
true
,
"userConfirmedUseCompilerModuleSwitch"
:
false
,
"userConfirmedUseCompilerModuleSwitch"
:
false
,
"userConfirmedBundleSwitch"
:
false
,
"packNpmManually"
:
false
,
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[],
"packNpmRelationList"
:
[],
"minifyWXSS"
:
true
"minifyWXSS"
:
true
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论