Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xy_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
xy_video
Commits
6e06d4f1
Commit
6e06d4f1
authored
Aug 20, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
41b4a23f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
16 deletions
+83
-16
xy_video.fire
assets/xy_video/Scene/xy_video.fire
+78
-16
xy_video.js
assets/xy_video/Scene/xy_video.js
+5
-0
No files found.
assets/xy_video/Scene/xy_video.fire
View file @
6e06d4f1
...
@@ -107,14 +107,14 @@
...
@@ -107,14 +107,14 @@
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
"__id__": 144
},
{
{
"__id__": 145
"__id__": 145
},
},
{
{
"__id__": 146
"__id__": 146
},
{
"__id__": 147
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6519,15 +6519,77 @@
...
@@ -6519,15 +6519,77 @@
"_children": [
"_children": [
{
{
"__id__": 138
"__id__": 138
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "188jFx8h5FI5fvRlBc5Rvm"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 137
},
"_children": [
{
"__id__": 139
},
},
{
{
"__id__": 14
0
"__id__": 14
1
},
},
{
{
"__id__": 14
2
"__id__": 14
3
}
}
],
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [],
"_components": [],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
...
@@ -6575,20 +6637,20 @@
...
@@ -6575,20 +6637,20 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
188jFx8h5FI5fvRlBc5Rvm
"
"_id": "
a0sv861GVFJo/+fI5k9Z35
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "upload",
"_name": "upload",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 13
7
"__id__": 13
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
39
"__id__": 1
40
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6644,7 +6706,7 @@
...
@@ -6644,7 +6706,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 13
8
"__id__": 13
9
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -6663,13 +6725,13 @@
...
@@ -6663,13 +6725,13 @@
"_name": "picload",
"_name": "picload",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 13
7
"__id__": 13
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 14
1
"__id__": 14
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6725,7 +6787,7 @@
...
@@ -6725,7 +6787,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 14
0
"__id__": 14
1
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -6744,13 +6806,13 @@
...
@@ -6744,13 +6806,13 @@
"_name": "success",
"_name": "success",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 13
7
"__id__": 13
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 14
3
"__id__": 14
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6806,7 +6868,7 @@
...
@@ -6806,7 +6868,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 14
2
"__id__": 14
3
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
...
assets/xy_video/Scene/xy_video.js
View file @
6e06d4f1
...
@@ -618,6 +618,11 @@ cc.Class({
...
@@ -618,6 +618,11 @@ cc.Class({
}
}
});
});
},
},
playLocalAudio
(
audioName
)
{
cc
.
audioEngine
.
stopAll
();
const
audio
=
cc
.
find
(
`Canvas/res/audio/
${
audioName
}
`
).
getComponent
(
cc
.
AudioSource
);
cc
.
audioEngine
.
playEffect
(
audio
.
clip
,
false
);
},
// called every frame
// called every frame
...
...
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