Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ns_video_map
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
ns_video_map
Commits
81af3630
Commit
81af3630
authored
May 12, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
dcb84103
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ns_video_map.ts
assets/ns_video_map/scene/ns_video_map.ts
+6
-2
No files found.
assets/ns_video_map/scene/ns_video_map.ts
View file @
81af3630
...
@@ -14,7 +14,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -14,7 +14,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
addPreloadAudio
()
{
addPreloadAudio
()
{
// TODO 根据自己的配置预加载音频资源
// TODO 根据自己的配置预加载音频资源
// this._audioResList.push({ url: this.data.video_url || '' });
this
.
getVideoUrl
(
url
=>
{
this
.
_audioResList
.
push
({
url
:
this
.
data
.
video_url
||
''
});
});
}
}
addPreloadAnima
()
{
addPreloadAnima
()
{
...
@@ -91,7 +93,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -91,7 +93,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
refreshBtnState
()
{
refreshBtnState
()
{
// await asyncDelay(0.01);
// await asyncDelay(0.01);
if
(
!
this
.
video
)
{
return
;
}
if
(
this
.
video
.
isPlaying
())
{
if
(
this
.
video
.
isPlaying
())
{
this
.
pauseBtn
.
active
=
true
;
this
.
pauseBtn
.
active
=
true
;
this
.
playBtn
.
active
=
false
;
this
.
playBtn
.
active
=
false
;
...
...
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