Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cartoon_video
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
cartoon_video
Commits
34eb7bd5
Commit
34eb7bd5
authored
Sep 22, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
616930ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
cartoon_video.fire
assets/cartoon_video/Scene/cartoon_video.fire
+3
-3
cartoon_video.js
assets/cartoon_video/Scene/cartoon_video.js
+4
-4
No files found.
assets/cartoon_video/Scene/cartoon_video.fire
View file @
34eb7bd5
...
@@ -508,7 +508,7 @@
...
@@ -508,7 +508,7 @@
"__id__": 18
"__id__": 18
}
}
],
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
"_components": [
{
{
"__id__": 21
"__id__": 21
...
@@ -518,7 +518,7 @@
...
@@ -518,7 +518,7 @@
}
}
],
],
"_prefab": null,
"_prefab": null,
"_opacity":
255
,
"_opacity":
0
,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r": 255,
"r": 255,
...
@@ -893,7 +893,7 @@
...
@@ -893,7 +893,7 @@
"_mute": false,
"_mute": false,
"_isFullscreen": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom":
fals
e,
"_stayOnBottom":
tru
e,
"videoPlayerEvent": [],
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_N$keepAspectRatio": true,
"_id": "fce7ZaGl9IwYI1a7QJjapU"
"_id": "fce7ZaGl9IwYI1a7QJjapU"
...
...
assets/cartoon_video/Scene/cartoon_video.js
View file @
34eb7bd5
...
@@ -160,6 +160,9 @@ cc.Class({
...
@@ -160,6 +160,9 @@ cc.Class({
this
.
videoPlayer
.
node
.
on
(
'
ready-to-play
'
,
()
=>
{
this
.
videoPlayer
.
node
.
on
(
'
ready-to-play
'
,
()
=>
{
console
.
log
(
'
ready-to-play
'
);
console
.
log
(
'
ready-to-play
'
);
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
}
this
.
playButton
.
active
=
true
;
this
.
playButton
.
active
=
true
;
});
});
this
.
videoPlayer
.
node
.
on
(
'
meta-loaded
'
,
()
=>
{
this
.
videoPlayer
.
node
.
on
(
'
meta-loaded
'
,
()
=>
{
...
@@ -311,9 +314,6 @@ cc.Class({
...
@@ -311,9 +314,6 @@ cc.Class({
this
.
videoPlayer
.
remoteURL
=
this
.
data
.
video_url
;
this
.
videoPlayer
.
remoteURL
=
this
.
data
.
video_url
;
});
});
await
this
.
initView
();
await
this
.
initView
();
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
}
});
});
if
(
window
.
CustomEvent
){
if
(
window
.
CustomEvent
){
...
@@ -392,7 +392,7 @@ cc.Class({
...
@@ -392,7 +392,7 @@ cc.Class({
cc
.
find
(
`Canvas/bg`
).
active
=
false
;
cc
.
find
(
`Canvas/bg`
).
active
=
false
;
cc
.
find
(
`Canvas/bg_empty`
).
active
=
false
;
cc
.
find
(
`Canvas/bg_empty`
).
active
=
false
;
cc
.
find
(
`Canvas/video_node`
).
active
=
true
;
cc
.
find
(
`Canvas/video_node`
).
opacity
=
255
;
// this.videoPlayer.node.active = true;
// this.videoPlayer.node.active = true;
this
.
videoPlayer
.
play
();
this
.
videoPlayer
.
play
();
this
.
triggerInteractive
()
this
.
triggerInteractive
()
...
...
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