Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online
Commits
676769a8
提交
676769a8
authored
5月 19, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:修复视频播放问题
上级
5f5f129e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
11 行删除
+9
-11
app.json
learnOnline/app.json
+0
-1
contentAudio.wxml
learnOnline/pages/videoPlayer/contentAudio/contentAudio.wxml
+1
-3
contentVideo.wxml
learnOnline/pages/videoPlayer/contentVideo/contentVideo.wxml
+2
-3
show.js
learnOnline/pages/videoPlayer/show.js
+0
-0
show.wxml
learnOnline/pages/videoPlayer/show.wxml
+6
-4
没有找到文件。
learnOnline/app.json
浏览文件 @
676769a8
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
"color"
:
"#313131"
,
"color"
:
"#313131"
,
"backgroundColor"
:
"#ffffff"
,
"backgroundColor"
:
"#ffffff"
,
"selectedColor"
:
"#b49441"
,
"selectedColor"
:
"#b49441"
,
"aniamtion"
:
"true"
,
"list"
:
[
"list"
:
[
{
{
"pagePath"
:
"pages/learnSystem/home/home"
,
"pagePath"
:
"pages/learnSystem/home/home"
,
...
...
learnOnline/pages/videoPlayer/contentAudio/contentAudio.wxml
浏览文件 @
676769a8
<template name='contentAudio'>
<template name='contentAudio'>
<view class='content-audio'
<view class='content-audio' wx:if="{{status.isAudio}}">
style='{{status.isSet && status.isAudio ? "display: none;" : "" }} {{status.isImages && status.isAudio ? "display: none;" : "" }} {{status.isVideo ? "display: none;" : "" }}'
>
<image src='./contentAudio/icons/loading_small.gif' class='loading-image {{status.imagesLoaded && "none"}}' mode='aspectFit'/>
<image src='./contentAudio/icons/loading_small.gif' class='loading-image {{status.imagesLoaded && "none"}}' mode='aspectFit'/>
<image wx:if='{{image.imgUrls[image.current]}}' src='{{image.imgUrls[image.current]}}' class='slide-image' mode='aspectFill' bindload='imagesLoaded'/>
<image wx:if='{{image.imgUrls[image.current]}}' src='{{image.imgUrls[image.current]}}' class='slide-image' mode='aspectFill' bindload='imagesLoaded'/>
<view wx:if='{{!image.imgUrls[image.current]}}' class='slide-image'>本课程暂无PPT</view>
<view wx:if='{{!image.imgUrls[image.current]}}' class='slide-image'>本课程暂无PPT</view>
...
...
learnOnline/pages/videoPlayer/contentVideo/contentVideo.wxml
浏览文件 @
676769a8
<template name='contentVideo'>
<template name='contentVideo'>
<!-- 这里加 这么多判断原因,video组件在真机上测试,一定在最上层,其他任何元素都挡不住,只能先隐藏,需要时再显示 -->
<!-- 这里加 这么多判断原因,video组件在真机上测试,一定在最上层,其他任何元素都挡不住,只能先隐藏,需要时再显示 -->
<view class='content-video'
<view class='content-video' wx:if="{{status.isVideo}}">
style='{{status.isSet && status.isVideo ? "display: none;" : "" }} {{status.isImages && status.isVideo ? "display: none;" : "" }} {{status.isAudio ? "display: none;" : "" }} {{chapterList.isShow && status.isVideo ? "display: none;" : "" }} {{ status.isLoading ? "display: none": "" }}'
>
<video id='my-video' class='my-video' src='{{video.src}}' show-center-play-btn='{{false}}' controls='{{false}}' bindtimeupdate='timeUpdate' bindfullscreenchange='beginAndOutFullScreen' bindpause='beginPauseVA' bindplay='beginPlayVA' binderror='playError' bindended='playEnded' autoplay='{{true}}'></video>
<video id='my-video' class='my-video' src='{{video.src}}' show-center-play-btn='{{false}}' controls='{{false}}' bindtimeupdate='timeUpdate' bindfullscreenchange='beginAndOutFullScreen' bindpause='beginPauseVA' bindplay='beginPlayVA' binderror='playError' bindended='playEnded' autoplay='{{true}}'></video>
</view>
</view>
</template>
</template>
\ No newline at end of file
learnOnline/pages/videoPlayer/show.js
浏览文件 @
676769a8
差异被折叠。
点击展开。
learnOnline/pages/videoPlayer/show.wxml
浏览文件 @
676769a8
...
@@ -13,14 +13,16 @@
...
@@ -13,14 +13,16 @@
<template is='pageLoading'></template>
<template is='pageLoading'></template>
</block>
</block>
<block wx:if='{{status.isSupport}}'>
<block wx:if='{{status.isSupport}}'>
<template is='contentAudio' data='{{status, audio, image, ctrlBar}}'></template>
<template is='contentVideo' data='{{status, video, chapterList, ctrlBar}}'></template>
<block wx:if='{{status.isSet}}'>
<block wx:if='{{status.isSet}}'>
<template is='setContent' data='{{ctrlBar}}'></template>
<template is='setContent' data='{{ctrlBar}}'></template>
</block><block wx:elif='{{status.isImages}}'>
</block>
<block wx:elif='{{status.isImages}}'>
<template is='contentImages' data='{{status, image}}'></template>
<template is='contentImages' data='{{status, image}}'></template>
</block>
</block>
<template is='contentAudio' data='{{status, audio, image, ctrlBar}}'></template>
</block>
<template is='contentVideo' data='{{status, video, chapterList, ctrlBar}}'></template>
<block wx:else>
</block><block wx:else>
<template is='noSupport'></template>
<template is='noSupport'></template>
</block>
</block>
<template is='controlBar' data='{{status, video, ctrlBar, chapterList, initVAFlag}}'></template>
<template is='controlBar' data='{{status, video, ctrlBar, chapterList, initVAFlag}}'></template>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论