Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
3eef7a58
Commit
3eef7a58
authored
Jun 05, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
03df497e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
33 deletions
+43
-33
recommendVideo.vue
vedio/pages/recommend/recommendVideo.vue
+43
-33
No files found.
vedio/pages/recommend/recommendVideo.vue
View file @
3eef7a58
...
@@ -129,12 +129,16 @@
...
@@ -129,12 +129,16 @@
this
.
isFirstLoad
=
false
this
.
isFirstLoad
=
false
this
.
queryList
()
this
.
queryList
()
}
else
{
}
else
{
this
.
videoContext
?.
play
()
tt
.
createVideoContext
(
''
+
this
.
originList
[
originIndex
].
vedioIndex
,
this
).
play
();
// this.videoContext?.play()
}
}
},
},
stop
()
{
stop
()
{
// audo.pause()
// audo.pause()
this
.
videoContext
?.
pause
()
// this.videoContext?.pause()
tt
.
createVideoContext
(
''
+
this
.
originList
[
originIndex
].
vedioIndex
,
this
).
pause
();
},
},
queryList
()
{
queryList
()
{
// 推荐
// 推荐
...
@@ -221,13 +225,19 @@
...
@@ -221,13 +225,19 @@
}
}
console
.
log
(
'++++++++++++上一条播放数据 Index:'
,
this
.
oid
)
console
.
log
(
'++++++++++++上一条播放数据 Index:'
,
this
.
oid
)
// audo.pause()
// audo.pause()
this
.
videoContext
=
uni
.
createVideoContext
(
""
+
this
.
originList
[
this
.
oid
].
vedioId
,
this
)
// this.videoContext = uni.createVideoContext("" + this.originList[this.oid].vedioId, this)
this
.
videoContext
.
pause
()
// this.videoContext.pause()
this
.
videoContext
.
stop
()
// this.videoContext.stop()
tt
.
createVideoContext
(
''
+
this
.
originList
[
this
.
oid
].
vedioIndex
,
this
).
pause
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
console
.
log
(
'qqqqqq:'
,
this
.
originList
[
originIndex
].
vedioId
)
console
.
log
(
'qqqqqq:'
,
this
.
originList
[
originIndex
].
vedioId
)
this
.
videoContext
=
uni
.
createVideoContext
(
""
+
this
.
originList
[
originIndex
].
vedioId
,
this
)
// this.videoContext = uni.createVideoContext("" + this.originList[originIndex].vedioId, this)
this
.
videoContext
.
play
()
// this.videoContext.play()
tt
.
createVideoContext
(
''
+
this
.
originList
[
originIndex
].
vedioIndex
,
this
).
play
();
},
500
)
},
500
)
var
pCount
=
this
.
originList
.
length
-
this
.
playCount
var
pCount
=
this
.
originList
.
length
-
this
.
playCount
if
(
originIndex
==
pCount
)
{
if
(
originIndex
==
pCount
)
{
...
...
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