Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn03_playVideo
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
sn03_playVideo
Commits
ada264be
Commit
ada264be
authored
Nov 12, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改全屏视频控制条样式
parent
b2668152
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
2351 additions
and
277 deletions
+2351
-277
sn03_playVideo.fire
assets/sn03_playVideo/Scene/sn03_playVideo.fire
+2006
-231
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+82
-46
videoControl_sn03_playVideo.ts
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
+62
-0
videoControl_sn03_playVideo.ts.meta
...sn03_playVideo/Script/videoControl_sn03_playVideo.ts.meta
+9
-0
controls.meta
assets/sn03_playVideo/Texture/controls.meta
+12
-0
icon_player_back.png
assets/sn03_playVideo/Texture/controls/icon_player_back.png
+0
-0
icon_player_back.png.meta
...sn03_playVideo/Texture/controls/icon_player_back.png.meta
+36
-0
icon_player_exit_fullscreen.png
...layVideo/Texture/controls/icon_player_exit_fullscreen.png
+0
-0
icon_player_exit_fullscreen.png.meta
...deo/Texture/controls/icon_player_exit_fullscreen.png.meta
+36
-0
icon_player_fullscreen.png
...n03_playVideo/Texture/controls/icon_player_fullscreen.png
+0
-0
icon_player_fullscreen.png.meta
...layVideo/Texture/controls/icon_player_fullscreen.png.meta
+36
-0
icon_player_pause.png
assets/sn03_playVideo/Texture/controls/icon_player_pause.png
+0
-0
icon_player_pause.png.meta
...n03_playVideo/Texture/controls/icon_player_pause.png.meta
+36
-0
icon_player_play.png
assets/sn03_playVideo/Texture/controls/icon_player_play.png
+0
-0
icon_player_play.png.meta
...sn03_playVideo/Texture/controls/icon_player_play.png.meta
+36
-0
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.fire
View file @
ada264be
This diff is collapsed.
Click to expand it.
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
ada264be
This diff is collapsed.
Click to expand it.
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
0 → 100644
View file @
ada264be
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
export
default
class
NewClass
extends
cc
.
Component
{
@
property
(
cc
.
Node
)
btn_play
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
btn_pause
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
btn_fullscreen
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
btn_exit_fullscreen
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
label_title
:
cc
.
Node
=
null
;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start
()
{
this
.
node
.
off
(
"
inFullscreen
"
)
this
.
node
.
on
(
"
inFullscreen
"
,
(
opt
)
=>
{
const
{
isPlaying
,
title
}
=
opt
;
this
.
label_title
.
getComponent
(
cc
.
Label
).
string
=
title
?
title
:
""
this
.
btn_play
.
active
=
!
isPlaying
;
this
.
btn_pause
.
active
=
isPlaying
;
})
}
onPlayClick
()
{
this
.
node
.
emit
(
"
play
"
)
this
.
btn_play
.
active
=
false
;
this
.
btn_pause
.
active
=
true
;
}
onPauseClick
()
{
this
.
node
.
emit
(
"
pause
"
)
this
.
btn_pause
.
active
=
false
;
this
.
btn_play
.
active
=
true
;
}
onFuscreenClick
()
{
this
.
node
.
emit
(
"
play
"
)
}
onExitFullscreenClick
()
{
this
.
node
.
emit
(
"
exit_fullscreen
"
)
}
// update (dt) {}
}
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts.meta
0 → 100644
View file @
ada264be
{
"ver": "1.0.8",
"uuid": "b725d708-485d-4459-a7ed-d8face0b0bd1",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
assets/sn03_playVideo/Texture/controls.meta
0 → 100644
View file @
ada264be
{
"ver": "1.1.2",
"uuid": "5739dde5-5c3b-4e67-b222-a1599fcc50dc",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/sn03_playVideo/Texture/controls/icon_player_back.png
0 → 100644
View file @
ada264be
217 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_back.png.meta
0 → 100644
View file @
ada264be
{
"ver": "2.3.5",
"uuid": "caa17dc6-1365-483f-b5b1-5883a81a009e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_back": {
"ver": "1.0.4",
"uuid": "e5fe1c4e-5b32-4284-887c-dec10747ae62",
"rawTextureUuid": "caa17dc6-1365-483f-b5b1-5883a81a009e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 16,
"trimY": 4,
"width": 32,
"height": 56,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/sn03_playVideo/Texture/controls/icon_player_exit_fullscreen.png
0 → 100644
View file @
ada264be
229 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_exit_fullscreen.png.meta
0 → 100644
View file @
ada264be
{
"ver": "2.3.5",
"uuid": "7658704f-e996-42ba-ad26-36d436d79621",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_exit_fullscreen": {
"ver": "1.0.4",
"uuid": "ece9ff2a-0eed-41cc-acc9-a6253b0dec64",
"rawTextureUuid": "7658704f-e996-42ba-ad26-36d436d79621",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 4,
"trimY": 3,
"width": 56,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/sn03_playVideo/Texture/controls/icon_player_fullscreen.png
0 → 100644
View file @
ada264be
236 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_fullscreen.png.meta
0 → 100644
View file @
ada264be
{
"ver": "2.3.5",
"uuid": "45045521-10c9-4247-8558-019916081ae0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_fullscreen": {
"ver": "1.0.4",
"uuid": "356d3e94-9857-4a44-9637-4f06f778c7a4",
"rawTextureUuid": "45045521-10c9-4247-8558-019916081ae0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 3,
"trimY": 3,
"width": 57,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/sn03_playVideo/Texture/controls/icon_player_pause.png
0 → 100644
View file @
ada264be
196 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_pause.png.meta
0 → 100644
View file @
ada264be
{
"ver": "2.3.5",
"uuid": "ab6902c7-0e1a-455a-8d18-c7c8e2494191",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_pause": {
"ver": "1.0.4",
"uuid": "1a63f689-d1cf-49cc-965d-9672f0f2c067",
"rawTextureUuid": "ab6902c7-0e1a-455a-8d18-c7c8e2494191",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 13,
"trimY": 3,
"width": 38,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/sn03_playVideo/Texture/controls/icon_player_play.png
0 → 100644
View file @
ada264be
259 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_play.png.meta
0 → 100644
View file @
ada264be
{
"ver": "2.3.5",
"uuid": "b4414377-4e07-4f5f-a511-73fe2519ce82",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_play": {
"ver": "1.0.4",
"uuid": "9e7fde01-7bf3-4d59-9d97-dd7c97cade8a",
"rawTextureUuid": "b4414377-4e07-4f5f-a511-73fe2519ce82",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 3,
"trimY": 3,
"width": 57,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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