Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王旭
mt-education-mobile
Commits
ebb1f9ed
Commit
ebb1f9ed
authored
Aug 19, 2020
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改角标大小 测试视频播放问题
parent
80d17f46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
3 deletions
+33
-3
diyDot.vue
src/components/diyDot/diyDot.vue
+2
-2
index.vue
src/views/CourseDetail/index.vue
+31
-1
No files found.
src/components/diyDot/diyDot.vue
View file @
ebb1f9ed
...
...
@@ -2,8 +2,8 @@
<div
style=
"position: relative;display: inline-block;width: 1px;height: 18px"
>
<div
class=
"diyDot tool-bar"
v-if=
"num !== 0"
:style=
"
{'backgroundColor':num > 0
&&
num
<
=
3
?
'#
3BCA66
'
:
(
num
>
3
&&
num
<
=
10
?
'#
F5AD01
'
:
num
>
10 ? '#E94B3F' : ''),
'width':type === 1 ? '8px' : '6
.4
px',
'height':type === 1 ? '8px' : '6
.4
px',}"/>
'width':type === 1 ? '8px' : '6px',
'height':type === 1 ? '8px' : '6px',}"/>
</div>
</
template
>
...
...
src/views/CourseDetail/index.vue
View file @
ebb1f9ed
...
...
@@ -48,8 +48,9 @@
@
play=
"playEvent"
@
ready=
"playerReadied"
@
fullscreenchange=
"onPlayerFullScreenchange($event)"
@
canplay=
"onPlayerCanplay($event)"
:options=
"playerOptions"
:playsinline=
"
tru
e"
:playsinline=
"
playsinlin
e"
/>
<mt-audio
ref=
"mtAudio"
...
...
@@ -548,6 +549,16 @@ export default {
computed
:
{
outLinkClint
()
{
return
process
.
env
.
VUE_APP_BASE_API6
+
'/module/home.html#/CourseTrainOutPotal?courseBusinessId='
+
this
.
$route
.
query
.
id
},
playsinline
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
();
// x5内核
if
(
ua
.
match
(
/tencenttraveler/
)
!=
null
||
ua
.
match
(
/qqbrowse/
)
!=
null
)
{
return
false
}
else
{
// ios端
return
true
}
}
},
...
...
@@ -1212,6 +1223,25 @@ export default {
},
onPlayerFullScreenchange(player) {
},
onPlayerCanplay(player) {
// console.log('player Canplay!', player)
// 解决自动全屏
var ua = navigator.userAgent.toLocaleLowerCase()
var video = document.getElementsByTagName('video')[0]
// x5内核
if (ua.match(/tencenttraveler/) != null || ua.match(/qqbrowse/) != null) {
video.setAttribute('x-webkit-airplay', 'true')
video.setAttribute('x5-playsinline', 'true')
video.setAttribute('webkit-playsinline', 'true')
video.setAttribute('playsinline', 'true')
// $('body').find('video').attr('x-webkit-airplay', true).attr('x5-playsinline', true).attr('webkit-playsinline', true).attr('playsinline', true)
} else {
// ios端
video.setAttribute('webkit-playsinline', 'true')
video.setAttribute('playsinline', 'true')
// $('body').find('video').attr('webkit-playsinline', 'true').attr('playsinline', 'true')
}
},
onAudioTimeupdate(time) {
this.currentPlayTime = time
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment