Commit cf8bda08 cf8bda0884312e9b9bf6ab9c38ab9ab8a9580ec0 by 金学艇

1.完成视频详情页的窗口播放视频,并能够将相关参数带到sceneVideoPlayer场景中

1 parent 3ab60006
......@@ -75,34 +75,40 @@
"__id__": 5
},
{
"__id__": 7
"__id__": 13
},
{
"__id__": 10
"__id__": 16
},
{
"__id__": 17
"__id__": 23
},
{
"__id__": 20
"__id__": 26
},
{
"__id__": 23
"__id__": 29
},
{
"__id__": 26
"__id__": 32
},
{
"__id__": 31
"__id__": 37
},
{
"__id__": 51
},
{
"__id__": 54
}
],
"_active": true,
"_components": [
{
"__id__": 45
"__id__": 60
},
{
"__id__": 46
"__id__": 61
}
],
"_prefab": null,
......@@ -252,16 +258,88 @@
},
{
"__type__": "cc.Node",
"_name": "Bg",
"_name": "VideoBg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 6
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 12
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 564,
"height": 317
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-294,
145.5,
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": "21e/UlzrdGfrcPEc1SLTQZ"
},
{
"__type__": "cc.Node",
"_name": "Bg",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
"__id__": 7
}
],
"_prefab": null,
......@@ -287,8 +365,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
0,
0,
294,
-145.5,
0,
0,
0,
......@@ -317,7 +395,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
"__id__": 6
},
"_enabled": true,
"_materials": [
......@@ -349,16 +427,16 @@
"_name": "Pic",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
"__id__": 9
},
{
"__id__": 9
"__id__": 10
}
],
"_prefab": null,
......@@ -384,8 +462,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-294,
145.5,
0,
0,
0,
0,
0,
......@@ -407,14 +485,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9dhQK4XHJMYJ7juofKyqEb"
"_id": "87y0bFEt5EAZfkOaEZDX/d"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 8
},
"_enabled": true,
"_materials": [
......@@ -426,7 +504,7 @@
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -437,14 +515,61 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bbFxYqPmxEh5U8eUP1/UFZ"
"_id": "9cjcBeT3RDkokDw4maAOqR"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "dfWxIzXQROAZgoR1KjgfPr"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0,
"_N$inverted": true,
"_id": "7dM7wS9eBHo5IcSsLP8ef+"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
......@@ -464,25 +589,25 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "91hwbBfCJNh7cghG5jaSsL"
"_id": "1deOskZZxMRJNsLEyybPS8"
},
{
"__type__": "cc.Node",
"_name": "Desc",
"_name": "Pic",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
"__id__": 14
},
{
"__id__": 14
"__id__": 15
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -494,8 +619,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 564,
"height": 317
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -506,8 +631,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
0,
0,
-294,
145.5,
0,
0,
0,
......@@ -529,25 +654,82 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ecQr5qoNxGq70VEDDtIj/R"
"_id": "9dhQK4XHJMYJ7juofKyqEb"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bbFxYqPmxEh5U8eUP1/UFZ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 64,
"_right": 0,
"_top": 56,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "91hwbBfCJNh7cghG5jaSsL"
},
{
"__type__": "cc.Node",
"_name": "Title",
"_name": "Desc",
"_objFlags": 0,
"_parent": {
"__id__": 10
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
"_children": [
{
"__id__": 12
"__id__": 17
},
{
"__id__": 13
"__id__": 20
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -559,8 +741,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 108,
"height": 63
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -571,8 +753,8 @@
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
90,
280.5,
0,
0,
0,
0,
0,
......@@ -594,14 +776,79 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "56h99aq2ZGcaG8g4nRxV4M"
"_id": "ecQr5qoNxGq70VEDDtIj/R"
},
{
"__type__": "cc.Label",
"__type__": "cc.Node",
"_name": "Title",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 108,
"height": 63
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
90,
280.5,
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": "56h99aq2ZGcaG8g4nRxV4M"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 17
},
"_enabled": true,
"_materials": [
......@@ -631,7 +878,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 17
},
"_enabled": true,
"alignMode": 2,
......@@ -660,16 +907,16 @@
"_name": "LabelDesc",
"_objFlags": 0,
"_parent": {
"__id__": 10
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 21
},
{
"__id__": 16
"__id__": 22
}
],
"_prefab": null,
......@@ -725,7 +972,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 20
},
"_enabled": true,
"_materials": [
......@@ -755,7 +1002,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 20
},
"_enabled": true,
"alignMode": 2,
......@@ -790,10 +1037,10 @@
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 24
},
{
"__id__": 19
"__id__": 25
}
],
"_prefab": null,
......@@ -849,7 +1096,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 23
},
"_enabled": true,
"_materials": [
......@@ -881,7 +1128,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 23
},
"_enabled": true,
"alignMode": 1,
......@@ -914,10 +1161,10 @@
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 27
},
{
"__id__": 22
"__id__": 28
}
],
"_prefab": null,
......@@ -973,7 +1220,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 26
},
"_enabled": true,
"_materials": [
......@@ -1005,7 +1252,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 26
},
"_enabled": true,
"alignMode": 1,
......@@ -1038,10 +1285,10 @@
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 30
},
{
"__id__": 25
"__id__": 31
}
],
"_prefab": null,
......@@ -1097,7 +1344,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 29
},
"_enabled": true,
"_materials": [
......@@ -1127,7 +1374,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 29
},
"_enabled": true,
"alignMode": 1,
......@@ -1158,13 +1405,13 @@
},
"_children": [
{
"__id__": 27
"__id__": 33
}
],
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 36
}
],
"_prefab": null,
......@@ -1232,17 +1479,17 @@
"_name": "TypeListWrapper",
"_objFlags": 0,
"_parent": {
"__id__": 26
"__id__": 32
},
"_children": [
{
"__id__": 28
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 35
}
],
"_prefab": null,
......@@ -1310,7 +1557,7 @@
"_name": "TypeList",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 33
},
"_children": [],
"_active": true,
......@@ -1380,7 +1627,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 33
},
"_enabled": true,
"_materials": [
......@@ -1400,7 +1647,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
"__id__": 32
},
"_enabled": true,
"alignMode": 2,
......@@ -1433,22 +1680,22 @@
},
"_children": [
{
"__id__": 32
"__id__": 38
},
{
"__id__": 35
"__id__": 41
},
{
"__id__": 38
"__id__": 44
},
{
"__id__": 41
"__id__": 47
}
],
"_active": false,
"_components": [
{
"__id__": 44
"__id__": 50
}
],
"_prefab": null,
......@@ -1504,16 +1751,16 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 31
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 39
},
{
"__id__": 34
"__id__": 40
}
],
"_prefab": null,
......@@ -1569,7 +1816,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 38
},
"_enabled": true,
"_materials": [
......@@ -1601,7 +1848,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 38
},
"_enabled": true,
"alignMode": 1,
......@@ -1628,16 +1875,16 @@
"_name": "Title",
"_objFlags": 0,
"_parent": {
"__id__": 31
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
"__id__": 42
},
{
"__id__": 37
"__id__": 43
}
],
"_prefab": null,
......@@ -1693,7 +1940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
"__id__": 41
},
"_enabled": true,
"_materials": [
......@@ -1723,7 +1970,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
"__id__": 41
},
"_enabled": true,
"alignMode": 1,
......@@ -1750,16 +1997,16 @@
"_name": "Desc",
"_objFlags": 0,
"_parent": {
"__id__": 31
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 39
"__id__": 45
},
{
"__id__": 40
"__id__": 46
}
],
"_prefab": null,
......@@ -1815,7 +2062,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 44
},
"_enabled": true,
"_materials": [
......@@ -1845,7 +2092,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 44
},
"_enabled": true,
"alignMode": 1,
......@@ -1872,16 +2119,16 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 31
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 48
},
{
"__id__": 43
"__id__": 49
}
],
"_prefab": null,
......@@ -1937,7 +2184,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 47
},
"_enabled": true,
"_materials": [
......@@ -1969,7 +2216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 47
},
"_enabled": true,
"alignMode": 1,
......@@ -1996,7 +2243,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 37
},
"_enabled": true,
"_materials": [
......@@ -2024,6 +2271,347 @@
"_id": "54Hd89eq5CuK0tLbPaG/Dt"
},
{
"__type__": "cc.Node",
"_name": "PlayCtrl",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
},
{
"__id__": 59
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 564,
"height": 317
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-294,
145.5,
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": "d7PNOe8x1EcLgsEtGh+GY5"
},
{
"__type__": "4e8f2OtrSRDb46OJ86ATBte",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"videoPlayer1": null,
"currentTime": null,
"totalTime": null,
"loadingIcon": {
"__id__": 53
},
"now": 0,
"duration": 0,
"oScene": null,
"url": "",
"addedFn4Update": null,
"_id": "05MyArPyxGK7taZYc4cmw4"
},
{
"__type__": "cc.Node",
"_name": "LoadingPic",
"_objFlags": 0,
"_parent": {
"__id__": 54
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
},
{
"__id__": 58
}
],
"_prefab": null,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 800,
"height": 11
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float32Array",
"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": "1fCpRj4ltGPp0WBxqlgvga"
},
{
"__type__": "cc.Node",
"_name": "Loading",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 53
}
],
"_active": true,
"_components": [
{
"__id__": 55
},
{
"__id__": 56
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float32Array",
"array": [
-50,
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": "3eMr3hksxLOpx16sPlyI5U"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 1,
"_N$inverted": false,
"_id": "16R11mlV1AkIXYmp3/Tlfz"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
},
"_enabled": true,
"alignMode": 0,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "cewOb6F/9FY5HEjsUP22DF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8591bd12-ad3c-4863-aadd-d5539e525022"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b2tmdrE5RFX5KTqXbHSt4R"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"_defaultClip": null,
"_clips": [],
"playOnLoad": false,
"_id": "15bhpfJhpHfrYeWh0BCNFp"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"alignMode": 1,
"_target": {
"__id__": 2
},
"_alignFlags": 9,
"_left": 64,
"_right": 0,
"_top": 56,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "15vecjt3VMaZhPSyH21dlK"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
......@@ -2041,7 +2629,7 @@
"_id": "8emyQJPypMIJg78+lr5Xuf"
},
{
"__type__": "012d41BYM9FNKDSx7vUixmI",
"__type__": "0da27FdLPdHxaVGhEtrqeLA",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -2063,12 +2651,6 @@
"_defaultBackScene": null,
"_oFocusScaleFactorInfo": null,
"_bShowExitBox": false,
"PFB_CATEGORY": {
"__uuid__": "9e0214ed-5de0-4667-a660-d4fa85a5de1d"
},
"PFB_RECOMMEN_CATEGORY": {
"__uuid__": "3555d4d3-0ee6-47bb-9039-3bb44aab89a2"
},
"_id": "e7L+WJBsFHUK29Fs5R70+b"
"_id": "f51Vs9cQpPGLiJcXbjjIIy"
}
]
\ No newline at end of file
......
......@@ -192,7 +192,7 @@
"array": [
0,
0,
249.4095916748047,
250.28134155273438,
0,
0,
0,
......@@ -3301,7 +3301,7 @@
"__id__": 75
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 78
......@@ -3703,6 +3703,7 @@
"_aTouchContext": [],
"_defaultBackScene": null,
"_oFocusScaleFactorInfo": null,
"_bShowExitBox": false,
"LastButton": {
"__id__": 17
},
......
......@@ -37,6 +37,14 @@ cc.Class({
//----上下文及参数相关处理开始
let aSceneContext = this._cApplication.getSceneContext();
let aSceneParameter = this._cApplication.getSceneParameter();
if (aSceneParameter.length) {
this._oSceneContext.name = aSceneParameter[aSceneParameter.length - 1].name;
this._oSceneContext.url = aSceneParameter[aSceneParameter.length - 1].url;
} else if (aSceneParameter) {
this._oSceneContext.name = aSceneParameter.name;
this._oSceneContext.url = aSceneParameter.url;
}
cc.find("SongNames/CurrentName", this.node).getComponent(cc.Label).string = this._oSceneContext.name || "";
//参数
this._oDefaultBackASceneParameter = {};
cc.log(aSceneParameter);
......@@ -231,7 +239,7 @@ cc.Class({
// }
cc.log("向下滑动:" + fiFocusTarget.node.name);
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_DOWN, 1.0, oScrollParameter);
}
}
// if (this._fiCurrentFocus.node.name == "Play" && this._bShowProgress) { //暂时隐藏选集框,否则点击单曲循环会出现问题
// this.showSelectGatherArea();
// return;
......@@ -521,7 +529,7 @@ cc.Class({
this._ComOperation.initPlayer(0, 0, Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, true, true); //测试
let options = {};
options.playurl = "http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4";
options.playurl = this._oSceneContext.url;
this._ComOperation.setURL(options); //测试播放地址
} catch (error) {
if (cc.sys.isNative) {
......
var Common = require('Common');
var Network = require('Network');
var TVFocus = require('TVFocus');
var CCTVFocus = require('CCTVFocus');
var FocusInfo = require('FocusInfo');
var TVCanvas = require('TVCanvas');
var TVScrollParameter = require('TVScrollParameter');
var ListView = require('ListView');
var BusinessParameter = require('BusinessParameter');
var ListCell = require('ListCell');
var Application = require('Application');
cc.Class({
extends: TVCanvas,
properties: {
},
onLoad: function () {
this._super();
this._oInit = {};
this._bCollected = false;
this._oSceneContext.focusPath = "ButtonFullScreen";
cc.find("FullDesc", this.node).zIndex = 100;
var nodeButtonFullScreen = cc.find("ButtonFullScreen", this.node);
var nodeButtonCollect = cc.find("ButtonCollect", this.node);
nodeButtonFullScreen.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, 0, nodeButtonFullScreen.width, nodeButtonFullScreen.height));
nodeButtonCollect.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, 0, nodeButtonCollect.width, nodeButtonCollect.height));
//播放器相关
let nodePlayCtrl = cc.find("PlayCtrl", this.node);
this._ComOperation = nodePlayCtrl.getComponent("OperateVideoPlay");
this._ComOperation.init(this, null);
let fiPlayCtrl = nodePlayCtrl.addComponent(FocusInfo);
fiPlayCtrl.init('{"click": [{"action": "PlaySongInFullScreen"}]}', true);
this._aFocusTargets[0]["PlayCtrl"] = nodePlayCtrl;
if (this._cApplication.getBackStatus()) {
//恢复上下文 包括
//光标位置 focusPath
let oSceneContext = this._cApplication.popSceneContext();
if (oSceneContext) {
this._oSceneContext = oSceneContext;
cc.log(this._oSceneContext);
}
this._cApplication.setBackStatus(false);
}
this.checkPfbReadyAndInitPage();
this.checkDataReadyAndInitFocus();
},
//获取节目详情
checkPfbReadyAndInitPage: function () {
var self = this;
Network.ajax("GET", Common.TOPDRAW_API_SERVER + "videoDetail/game_test_detail_list_by_ids.json", null, null,
function (strResponse) {
try {
var oJSONResult = JSON.parse(strResponse);
// var oJSONResult = this.test_detail_json.json;
this._oInit = oJSONResult.resultSet[0];
if (oJSONResult.businessCode == 'success') {
cc.find("Desc/Title", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].name;//标题
cc.find("Desc/Title", this.node).getComponent(cc.Label)._forceUpdateRenderData();
//==========放到大屏显示问题
cc.find("FullDesc/Title", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].name;
cc.find("FullDesc/Desc", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].description;
//==========end
//这里给描述做拦截,防止字数多超出栏目
var description = oJSONResult.resultSet[0].description;
if (description.length > 80) {
description = description.substring(0, 80) + "...";
}
cc.find("Desc/LabelDesc", this.node).getComponent(cc.Label).string = description;
this._strEpisodeImg = oJSONResult.resultSet[0].images.list[0].fileUrl;
cc.log("图片地址:" + (Common.TOPDRAW_IMAGE_SERVER + oJSONResult.resultSet[0].images.list[0].fileUrl));
// Network.loadImageInNativeRuntime(
// Common.TOPDRAW_IMAGE_SERVER + oJSONResult.resultSet[0].images.list[0].fileUrl, null,
// function (texture, iRequestId) {
// self.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
// }, function () { }, this
// );
// this.getTypeList();
this.getPlayURLAndPlay();
} else {
cc.log("Business Error:Get checkPfbReadyAndInitPage..." + oJSONResult.description);
}
} catch (error) {
cc.log("Business Exception:Get checkPfbReadyAndInitPage..." + error);
}
},
function (error) {
cc.log("Business Exception:Get checkPfbReadyAndInitPage..." + error);
}, this, "uuid");
},
getPlayURLAndPlay: function () {
try {
this._ComOperation.initPlayer(64, 56, 564, 317, true, true); //这里采用左右边距对应android坐标 fix jerry
// this._ComOperation.initPlayer(0, 0, Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, true, true); //测试
let options = {};
options.playurl = this._oInit.url;
this._ComOperation.setURL(options); //测试播放地址
} catch (error) {
if (cc.sys.isNative) {
jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "logInSceneI", "(Ljava/lang/String;)V", "getPlayURLAndPlay Error in SongLibraryPlayer==>" + error);
}
}
},
checkDataReadyAndInitFocus: function () {
if (!this._bIsFocusInit) {
this.scheduleOnce(() => { //指定0让回调函数在下一帧立即执行
this.initFocus();
}, 0);
this._bIsFocusInit = true;
}
},
//初始化焦点框
initFocus: function () {
this._aFocusTargets[1] = [];
var nodeButtonFullScreen = cc.find("ButtonFullScreen", this.node);
var nodeButtonCollect = cc.find("ButtonCollect", this.node);
let fiButtonFullScreen = nodeButtonFullScreen.addComponent(FocusInfo); //
fiButtonFullScreen.init('', true, null, null, 1.0);
this._aFocusTargets[0]['node_button_full_screen'] = nodeButtonFullScreen;
let fiButtonCollect = nodeButtonCollect.addComponent(FocusInfo); //
fiButtonCollect.init('', true, null, null, 1.0);
this._aFocusTargets[0]['node_button_collect'] = nodeButtonCollect;
let fiDesc = cc.find('Desc/LabelDesc', this.node).addComponent(FocusInfo); //
fiDesc.init('', true, null, null, 1.0);
this._aFocusTargets[0]['desc'] = cc.find('Desc/LabelDesc', this.node);
// let fiBanner = cc.find('ButtonVip', this.node).addComponent(FocusInfo); //
// fiBanner.init('', true, null, null, 1.06);
// this._aFocusTargets[0]['button_vip'] = cc.find('ButtonVip', this.node);
var nodeInitFocus = cc.find('ButtonFullScreen', this.node); //强制写死,不然会闪屏,找不到ButtonOpen
// cc.log("初始化 " + nodeInitFocus.name);
var nodeFocus = new cc.Node('nodeFocus');
this.node.addChild(nodeFocus, 10);
this._cFocus = this.node.getChildByName('nodeFocus').addComponent(CCTVFocus);
this._cFocus.init('focusContainer', this,
nodeInitFocus.getComponent(FocusInfo),
Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, 10, 6, 1.1, true);
if (0 == nodeInitFocus.name.indexOf('Button')) {
this._cFocus.hide();
cc.loader.loadRes("VideoDetail/icon_full_screen", cc.Texture2D, function (err, texture) {
nodeInitFocus.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, nodeInitFocus.height, nodeInitFocus.width, nodeInitFocus.height));
});
}
},
keyDownDirection: function (Direct) {
var fiFocusTarget = null;
var fiCurrentFocus = this._fiCurrentFocus;
var oScrollParameter = null;
let aCheckResult;
fiFocusTarget = this._cFocus.findTarget(fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Direct);
if (!fiFocusTarget) { return; }
0 == fiFocusTarget.node.name.indexOf('Button') ? this._cFocus.hide() : this._cFocus.show();
aCheckResult = this.checkFocusTarget(fiFocusTarget, oScrollParameter);
fiFocusTarget = aCheckResult[0];
oScrollParameter = aCheckResult[1];
this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Direct, null, oScrollParameter);
},
checkFocusTarget: function (fiFocusTarget, oScrollParameter) {
if (fiFocusTarget && 0 == fiFocusTarget.node.name.indexOf("TypeListCell")) {
if (fiFocusTarget.node.x + this._nodeTypeList.x >= this._nodeTypeListWrapper.width) {
oScrollParameter = this._nodeTypeList.getComponent(TVScrollParameter);
oScrollParameter.setHasRelation(true);
oScrollParameter.setStep((fiFocusTarget.node.x + fiFocusTarget.node.width / 2 + this._nodeTypeList.x) - this._nodeTypeListWrapper.width + 50);//打补丁:20,解决放大时Rect遮挡问题
oScrollParameter.setTargetPosition(this._nodeTypeList.x - oScrollParameter.getStep());
this._oSceneContext.nodeTypeListX = this._nodeTypeList.x - oScrollParameter.getStep();
}
if (fiFocusTarget.node.x + this._nodeTypeList.x < 0) {
oScrollParameter = this._nodeTypeList.getComponent(TVScrollParameter);
oScrollParameter.setHasRelation(true);
oScrollParameter.setStep(-fiFocusTarget.node.x + fiFocusTarget.node.width / 2 - this._nodeTypeList.x + 20);//打补丁:20,解决放大时Rect遮挡问题
oScrollParameter.setTargetPosition(this._nodeTypeList.x + oScrollParameter.getStep());
this._oSceneContext.nodeTypeListX = this._nodeTypeList.x + oScrollParameter.getStep();
}
}
return [fiFocusTarget, oScrollParameter];
},
onKeyDown: function (event) {
this._super(event);
var self = this;
var fiFocusTarget = null;
var fiCurrentFocus = this._fiCurrentFocus;
cc.find("FullDesc", this.node).active = false;
switch (event.keyCode) {
case cc.macro.KEY.up:
case Common.ANDROID_KEY.up:
this.keyDownDirection(Common.MOVE_DIRECTION_UP);
break;
case cc.macro.KEY.right:
case Common.ANDROID_KEY.right:
this.keyDownDirection(Common.MOVE_DIRECTION_RIGHT);
break;
case cc.macro.KEY.down:
case Common.ANDROID_KEY.down:
this.keyDownDirection(Common.MOVE_DIRECTION_DOWN);
break;
case cc.macro.KEY.left:
case Common.ANDROID_KEY.left:
this.keyDownDirection(Common.MOVE_DIRECTION_LEFT);
break;
case cc.macro.KEY.enter:
case cc.macro.KEY.space:
case Common.ANDROID_KEY.enter:
if (0 == this._fiCurrentFocus.node.name.indexOf('Collect')) {
this._bCollected = !this._bCollected;
if (this._bCollected) {
this.commonSimpleTip("恭喜您!收藏成功!", 3);
}
let icon = this._bCollected ? "GameDetail/be_collected" : "GameDetail/not_collected";
cc.loader.loadRes(icon, cc.Texture2D, function (err, texture) {
self._fiCurrentFocus.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 56, self._fiCurrentFocus.node.width, 56));
});
} else if (0 == this._fiCurrentFocus.node.name.indexOf('LabelDesc')) {
cc.find("FullDesc", this.node).active = true;
} else if (0 == this._fiCurrentFocus.node.name.indexOf('ButtonOpen') || 0 == this._fiCurrentFocus.node.name.indexOf('Pic')) {
// this.commonSimpleTip("是否拿到数据: " + this._bInitExistApk);
if (!this._bInitExistApk) { //还未拿到判断数据
return;
}
if (this._bIsExistApk == "true") {
if (this._oSceneContext._downloadUrl && this._oSceneContext._downloadUrl != "undefined") { //如果有下载地址就启动奥比游戏
jsb.reflection.callStaticMethod("com/topdraw/melody/TopdrawSDKWrapper", "startOBiGame", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", Common.TOPDRAW_API_SERVER + this._oSceneContext._downloadUrl, this._oSceneContext._packageName, this._oSceneContext._className, "");
} else {
//这里应该转圈圈等待加载游戏
// cc.find("LoadingLabel", this.node).opacity = 255;
// cc.find("Loading/LoadingIcon", this.node).opacity = 255;
// cc.find("Loading/LoadingIcon", this.node).getComponent(cc.Animation).play();
jsb.reflection.callStaticMethod("com/topdraw/melody/TopdrawSDKWrapper", "startGame", "(Ljava/lang/String;Ljava/lang/String;)V", this._oSceneContext._packageName, "");
}
} else {
this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK);
}
return;
} else {
this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK);
}
break;
case cc.macro.KEY.backspace:
case Common.ANDROID_KEY.back:
this.backAScene();
break;
}
},
doCurrentFocusTVLinkAction: function (strAction) {
let strTVLink = this._fiCurrentFocus.getTVLink();
cc.log("tvlink===============" + strTVLink);
try {
let oTVLink = JSON.parse(strTVLink);
let aOperationList = oTVLink.click;
for (let i = 0; i < aOperationList.length; i++) {
switch (aOperationList[i].action) {
case "changeLayout":
default:
this.doTVLinkAction(aOperationList[i]);
break;
}
}
} catch (error) {
cc.log("runTVLinkAction Exception..." + error);
}
},
onBeforeFocusChange: function (event) {
let fiFrom = event.detail.from;
let fiTo = event.detail.to;
if (0 == fiFrom.node.getName().indexOf('ButtonFullScreen')) {
cc.loader.loadRes("VideoDetail/icon_full_screen", cc.Texture2D, function (err, texture) {
fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
});
}
if (0 == fiFrom.node.getName().indexOf('ButtonCollect')) {
cc.loader.loadRes("VideoDetail/icon_collect", cc.Texture2D, function (err, texture) {
fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height));
});
}
},
onAfterFocusChange: function (event) {
var self = this;
let fiTo = event.detail.to;
let fiFrom = event.detail.from;
if (0 == fiTo.node.getName().indexOf('ButtonFullScreen')) {
cc.loader.loadRes("VideoDetail/icon_full_screen", cc.Texture2D, function (err, texture) {
fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
});
}
if (0 == fiTo.node.getName().indexOf('ButtonCollect')) {
cc.loader.loadRes("VideoDetail/icon_collect", cc.Texture2D, function (err, texture) {
fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height));
});
}
if (0 == fiTo.node.getName().indexOf('TypeListCell')) {
let iIndex = fiTo.node.name.replace("TypeListCell", '');
if (this._oInit.aListImage[iIndex]) {
Network.loadImageInNativeRuntime(Common.TOPDRAW_IMAGE_SERVER + this._oInit.aListImage[iIndex].fileUrl, null,
function (texture) {
cc.find("FullView", self.node).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
}, function () { }, this
);
}
}
},
doCurrentFocusTVLinkAction: function (strAction) {
try {
let strTVLink = this._fiCurrentFocus.getTVLink();
var joTVLink = null;
try {
joTVLink = JSON.parse(strTVLink);
let jaOperationList = joTVLink.click;
//上下文
let compApplication = cc.find('application').getComponent(Application);
let aSceneContext = compApplication.getSceneContext();
let aSceneParameter = compApplication.getSceneParameter();
for (let i = 0; i < jaOperationList.length; i++) {
let strMediaId;
switch (jaOperationList[i].action) {
case "PlaySongInFullScreen":
aSceneParameter.push({
"name": this._oInit.name,
"url": this._oInit.url,
"backSceneName": cc.director.getScene().name,
});
// this._oSceneContext.focusPath = Common.getNodePath(this._fiCurrentFocus.node);
// aSceneContext.push(this._oSceneContext);
// this._ComOperation && this._ComOperation.end();
// Common.g_strCurrentSceneName = 'sceneKTVPlayer';
cc.director.loadScene('sceneVideoPlayer');
break;
default:
this.doTVLinkAction(jaOperationList[i]);
break;
}
}
} catch (err) {
cc.log("runTVLinkAction Exception: " + err);
}
} catch (error) {
if (cc.sys.isNative) {
jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "logInSceneI", "(Ljava/lang/String;)V", "doCurrentFocusTVLinkAction Error in SongLibraryPlayer==>" + error);
}
}
},
});
......@@ -672,9 +672,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 180,
"g": 184,
"b": 191,
"a": 255
},
"_contentSize": {
......
......@@ -3,12 +3,11 @@
"count": 1,
"resultSet": [
{
"name": "魔法沙拉",
"versions": "1.0.1",
"size": "99.73M",
"updateTime": "2019-12-25",
"tag":"遥控器,游戏手柄,摄像头",
"name": "专注力 (21个亲子游戏)",
"episode_number": 15,
"current_episode_number": 15,
"description": "简介:作为人气作品《魔法沙拉》的全新续作,《魔法沙拉2》拥有3个全3个全新的玩法模式:爽快到炸裂的竞速模式,诙谐幽默的娱乐模式3个全以及紧张刺激的挑战模式,都将让您感受到完全不一样......",
"url": "http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4",
"images": {
"list": [
{
......
......@@ -379,25 +379,25 @@
{
"name": "Subject1",
"imageURL": "upload/image/main/block7_1.png",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoDetail\"}}]}",
"code": "promotionItem_e432ac2d-c1f3-4d44-a42b-7000971affa1"
},
{
"name": "Subject2",
"imageURL": "upload/image/main/block7_2.png",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\",\"name\":\"TED\",\"url\":\"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4\"}}]}",
"code": "promotionItem_f90b7ff3-1f36-4019-9e77-cef871902343"
},
{
"name": "Subject3",
"imageURL": "upload/image/main/block7_3.png",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\",\"name\":\"TED\",\"url\":\"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4\"}}]}",
"code": "promotionItem_e29b33e4-8954-4ef9-a6fc-0d844c909c67"
},
{
"name": "Subject4",
"imageURL": "upload/image/main/block7_4.png",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}",
"tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\",\"name\":\"TED\",\"url\":\"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4\"}}]}",
"code": "promotionItem_57aea4b3-7716-4FGRACWGVRTee32"
}
]
......