Commit 439fd026 authored by liujiangnan's avatar liujiangnan

feat: 播放器控制条

parent 84c54d2f
......@@ -75,37 +75,40 @@
"__id__": 5
},
{
"__id__": 13
"__id__": 7
},
{
"__id__": 16
"__id__": 12
},
{
"__id__": 19
"__id__": 15
},
{
"__id__": 22
"__id__": 18
},
{
"__id__": 73
"__id__": 21
},
{
"__id__": 77
"__id__": 72
},
{
"__id__": 79
"__id__": 76
},
{
"__id__": 78
}
],
"_active": true,
"_components": [
{
"__id__": 85
"__id__": 84
},
{
"__id__": 86
"__id__": 85
},
{
"__id__": 87
"__id__": 86
}
],
"_prefab": null,
......@@ -256,23 +259,102 @@
},
{
"__type__": "cc.Node",
"_name": "video_node",
"_name": "VideoNode",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1377,
"height": 775
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5000,
-5001.455,
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": "aemYRhzG5KUpRaNYjqjs+r"
},
{
"__id__": 9
"__type__": "cc.VideoPlayer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_resourceType": 0,
"_remoteURL": "",
"_clip": null,
"_volume": 1,
"_mute": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom": false,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": "fce7ZaGl9IwYI1a7QJjapU"
},
{
"__type__": "cc.Node",
"_name": "video_node",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 12
"__id__": 11
}
],
"_prefab": null,
......@@ -328,16 +410,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 5
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
"__id__": 9
},
{
"__id__": 8
"__id__": 10
}
],
"_prefab": null,
......@@ -393,7 +475,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
"__id__": 8
},
"_enabled": true,
"_materials": [
......@@ -425,7 +507,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
......@@ -447,165 +529,12 @@
"_originalHeight": 720,
"_id": "f3AOu8GUhM267nsrpUSJyU"
},
{
"__type__": "cc.Node",
"_name": "VideoNode",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
},
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1377,
"height": 775
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5000,
-5000,
0,
0,
0,
0,
1,
1,
1,
0.7
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aemYRhzG5KUpRaNYjqjs+r"
},
{
"__type__": "cc.VideoPlayer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_resourceType": 0,
"_remoteURL": "",
"_clip": null,
"_volume": 1,
"_mute": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom": false,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": "fce7ZaGl9IwYI1a7QJjapU"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "d0QH9i8cBFT7dTSr564GES"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
"__id__": 7
},
"_enabled": true,
"_materials": [
......@@ -631,10 +560,10 @@
"_active": true,
"_components": [
{
"__id__": 14
"__id__": 13
},
{
"__id__": 15
"__id__": 14
}
],
"_prefab": null,
......@@ -690,7 +619,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
"__id__": 12
},
"_enabled": false,
"_materials": [
......@@ -722,7 +651,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
"__id__": 12
},
"_enabled": true,
"alignMode": 1,
......@@ -755,10 +684,10 @@
"_active": true,
"_components": [
{
"__id__": 17
"__id__": 16
},
{
"__id__": 18
"__id__": 17
}
],
"_prefab": null,
......@@ -814,7 +743,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 15
},
"_enabled": true,
"_materials": [
......@@ -846,7 +775,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
......@@ -879,10 +808,10 @@
"_active": true,
"_components": [
{
"__id__": 20
"__id__": 19
},
{
"__id__": 21
"__id__": 20
}
],
"_prefab": null,
......@@ -938,7 +867,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 18
},
"_enabled": true,
"_materials": [
......@@ -970,7 +899,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
......@@ -1001,19 +930,19 @@
},
"_children": [
{
"__id__": 23
"__id__": 22
},
{
"__id__": 62
"__id__": 61
},
{
"__id__": 67
"__id__": 66
}
],
"_active": true,
"_components": [
{
"__id__": 72
"__id__": 71
}
],
"_prefab": null,
......@@ -1069,38 +998,38 @@
"_name": "ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 21
},
"_children": [
{
"__id__": 24
"__id__": 23
},
{
"__id__": 29
"__id__": 28
},
{
"__id__": 36
"__id__": 35
},
{
"__id__": 43
"__id__": 42
},
{
"__id__": 50
"__id__": 49
},
{
"__id__": 54
"__id__": 53
},
{
"__id__": 57
"__id__": 56
}
],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 59
},
{
"__id__": 61
"__id__": 60
}
],
"_prefab": null,
......@@ -1156,20 +1085,20 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [
{
"__id__": 25
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 27
"__id__": 26
},
{
"__id__": 28
"__id__": 27
}
],
"_prefab": null,
......@@ -1225,13 +1154,13 @@
"_name": "bar_tag",
"_objFlags": 0,
"_parent": {
"__id__": 24
"__id__": 23
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 25
}
],
"_prefab": null,
......@@ -1287,7 +1216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 24
},
"_enabled": true,
"_materials": [
......@@ -1319,7 +1248,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 23
},
"_enabled": true,
"_materials": [
......@@ -1351,7 +1280,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 23
},
"_enabled": true,
"alignMode": 1,
......@@ -1378,20 +1307,20 @@
"_name": "Play",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [
{
"__id__": 30
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 32
},
{
"__id__": 35
"__id__": 34
}
],
"_prefab": null,
......@@ -1447,16 +1376,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 29
"__id__": 28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
"__id__": 30
},
{
"__id__": 32
"__id__": 31
}
],
"_prefab": null,
......@@ -1512,7 +1441,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 29
},
"_enabled": true,
"_materials": [
......@@ -1544,7 +1473,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 29
},
"_enabled": true,
"alignMode": 0,
......@@ -1571,7 +1500,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
"__id__": 28
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1580,7 +1509,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 34
"__id__": 33
}
],
"_N$interactable": true,
......@@ -1646,7 +1575,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 30
"__id__": 29
},
"_id": "a8bWaLdnFKA5ITxJunB2R2"
},
......@@ -1665,7 +1594,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
"__id__": 28
},
"_enabled": true,
"alignMode": 1,
......@@ -1692,20 +1621,20 @@
"_name": "Pause",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [
{
"__id__": 37
"__id__": 36
}
],
"_active": false,
"_components": [
{
"__id__": 40
"__id__": 39
},
{
"__id__": 42
"__id__": 41
}
],
"_prefab": null,
......@@ -1761,16 +1690,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 36
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 37
},
{
"__id__": 39
"__id__": 38
}
],
"_prefab": null,
......@@ -1826,7 +1755,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 36
},
"_enabled": true,
"_materials": [
......@@ -1858,7 +1787,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 36
},
"_enabled": true,
"alignMode": 0,
......@@ -1885,7 +1814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 35
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1894,7 +1823,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 41
"__id__": 40
}
],
"_N$interactable": true,
......@@ -1950,7 +1879,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 37
"__id__": 36
},
"_id": "94dhG7VhpIZZJp5e+IJuYc"
},
......@@ -1969,7 +1898,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 35
},
"_enabled": true,
"alignMode": 1,
......@@ -1996,20 +1925,20 @@
"_name": "Restart",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [
{
"__id__": 44
"__id__": 43
}
],
"_active": false,
"_components": [
{
"__id__": 47
"__id__": 46
},
{
"__id__": 49
"__id__": 48
}
],
"_prefab": null,
......@@ -2065,16 +1994,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 43
"__id__": 42
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
"__id__": 44
},
{
"__id__": 46
"__id__": 45
}
],
"_prefab": null,
......@@ -2130,7 +2059,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 43
},
"_enabled": true,
"_materials": [
......@@ -2162,7 +2091,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 43
},
"_enabled": true,
"alignMode": 0,
......@@ -2189,7 +2118,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 42
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2198,7 +2127,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 48
"__id__": 47
}
],
"_N$interactable": true,
......@@ -2254,7 +2183,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 44
"__id__": 43
},
"_id": "23rFQGz+tCTpq6+bq4cJzR"
},
......@@ -2273,7 +2202,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 42
},
"_enabled": true,
"alignMode": 1,
......@@ -2300,19 +2229,19 @@
"_name": "CurrentLabel",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 51
"__id__": 50
},
{
"__id__": 52
"__id__": 51
},
{
"__id__": 53
"__id__": 52
}
],
"_prefab": null,
......@@ -2368,7 +2297,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 49
},
"_enabled": true,
"_materials": [
......@@ -2403,7 +2332,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 49
},
"_enabled": false,
"_color": {
......@@ -2421,7 +2350,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 49
},
"_enabled": true,
"alignMode": 1,
......@@ -2448,16 +2377,16 @@
"_name": "TimeLabel",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
"__id__": 54
},
{
"__id__": 56
"__id__": 55
}
],
"_prefab": null,
......@@ -2513,7 +2442,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 53
},
"_enabled": true,
"_materials": [
......@@ -2548,7 +2477,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 53
},
"_enabled": true,
"alignMode": 1,
......@@ -2575,16 +2504,16 @@
"_name": "text_tips_left",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 57
},
{
"__id__": 59
"__id__": 58
}
],
"_prefab": null,
......@@ -2640,7 +2569,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 56
},
"_enabled": true,
"_materials": [
......@@ -2672,7 +2601,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 56
},
"_enabled": true,
"alignMode": 1,
......@@ -2699,7 +2628,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 22
},
"_enabled": true,
"_materials": [
......@@ -2731,7 +2660,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 22
},
"_enabled": true,
"alignMode": 1,
......@@ -2758,19 +2687,19 @@
"_name": "fullscreen",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
"__id__": 62
},
{
"__id__": 64
"__id__": 63
},
{
"__id__": 65
"__id__": 64
}
],
"_prefab": null,
......@@ -2826,7 +2755,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
"__id__": 61
},
"_enabled": true,
"_materials": [
......@@ -2858,7 +2787,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
"__id__": 61
},
"_enabled": true,
"alignMode": 1,
......@@ -2885,7 +2814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
"__id__": 61
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2894,7 +2823,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 66
"__id__": 65
}
],
"_N$interactable": true,
......@@ -2967,19 +2896,19 @@
"_name": "exitfull",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 21
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 68
"__id__": 67
},
{
"__id__": 69
"__id__": 68
},
{
"__id__": 70
"__id__": 69
}
],
"_prefab": null,
......@@ -3035,7 +2964,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 66
},
"_enabled": true,
"_materials": [
......@@ -3067,7 +2996,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 66
},
"_enabled": true,
"alignMode": 1,
......@@ -3094,7 +3023,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 66
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3103,7 +3032,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 71
"__id__": 70
}
],
"_N$interactable": true,
......@@ -3176,7 +3105,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 21
},
"_enabled": true,
"alignMode": 1,
......@@ -3209,13 +3138,13 @@
"_active": false,
"_components": [
{
"__id__": 74
"__id__": 73
},
{
"__id__": 75
"__id__": 74
},
{
"__id__": 76
"__id__": 75
}
],
"_prefab": null,
......@@ -3271,7 +3200,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
"__id__": 72
},
"_enabled": true,
"_materials": [
......@@ -3303,7 +3232,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
"__id__": 72
},
"_enabled": true,
"alignMode": 1,
......@@ -3330,7 +3259,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
"__id__": 72
},
"_enabled": true,
"_id": "beaGv1g0JBZ59RUOJpzt0W"
......@@ -3346,7 +3275,7 @@
"_active": false,
"_components": [
{
"__id__": 78
"__id__": 77
}
],
"_prefab": null,
......@@ -3402,7 +3331,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 76
},
"_enabled": true,
"alignMode": 1,
......@@ -3433,16 +3362,16 @@
},
"_children": [
{
"__id__": 80
"__id__": 79
}
],
"_active": true,
"_components": [
{
"__id__": 83
"__id__": 82
},
{
"__id__": 84
"__id__": 83
}
],
"_prefab": null,
......@@ -3498,16 +3427,16 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 79
"__id__": 78
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 80
},
{
"__id__": 82
"__id__": 81
}
],
"_prefab": null,
......@@ -3563,7 +3492,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 79
},
"_enabled": true,
"_materials": [
......@@ -3598,7 +3527,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 79
},
"_enabled": true,
"alignMode": 1,
......@@ -3625,7 +3554,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 78
},
"_enabled": true,
"_materials": [
......@@ -3657,7 +3586,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 78
},
"_enabled": true,
"alignMode": 1,
......@@ -3732,33 +3661,33 @@
},
"_enabled": true,
"videoPlayer": {
"__id__": 10
"__id__": 6
},
"ProgressBar": {
"__id__": 23
"__id__": 22
},
"playButton": {
"__id__": 33
"__id__": 32
},
"pauseButton": {
"__id__": 40
"__id__": 39
},
"restartButton": {
"__id__": 47
"__id__": 46
},
"backButton": null,
"forwardButton": null,
"durationLabel": {
"__id__": 55
"__id__": 54
},
"currentTimeLabel": {
"__id__": 51
"__id__": 50
},
"barTag": {
"__id__": 25
"__id__": 24
},
"bar": {
"__id__": 24
"__id__": 23
},
"_id": "ec0d87qy5Eoavi5EqUiZj3"
}
......
......@@ -176,8 +176,20 @@ cc.Class({
});
this.videoPlayer.node.on('clicked', () => {
console.log('clicked');
if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true;
cc.find(`Canvas/Controls`).active = true;
if (this.time1) {
clearTimeout(this.time1);
}
this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls`).active = false;
}, 6000);
}
});
this.videoPlayer.node.on('touchstart', () => {
console.log('touchstarted');
if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true;
cc.find(`Canvas/Controls`).active = true;
......@@ -189,7 +201,7 @@ cc.Class({
cc.find(`Canvas/Controls`).active = false;
}, 6000);
}
})
});
this.videoPlayer.node.on('playing', () => {
console.log('playing');
this.durationLabel.string = this.formatTime(this.videoPlayer.getDuration());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment