1.完成视频详情页的窗口播放视频,并能够将相关参数带到sceneVideoPlayer场景中
Showing
7 changed files
with
1092 additions
and
126 deletions
... | @@ -75,34 +75,40 @@ | ... | @@ -75,34 +75,40 @@ |
75 | "__id__": 5 | 75 | "__id__": 5 |
76 | }, | 76 | }, |
77 | { | 77 | { |
78 | "__id__": 7 | 78 | "__id__": 13 |
79 | }, | 79 | }, |
80 | { | 80 | { |
81 | "__id__": 10 | 81 | "__id__": 16 |
82 | }, | 82 | }, |
83 | { | 83 | { |
84 | "__id__": 17 | 84 | "__id__": 23 |
85 | }, | 85 | }, |
86 | { | 86 | { |
87 | "__id__": 20 | 87 | "__id__": 26 |
88 | }, | 88 | }, |
89 | { | 89 | { |
90 | "__id__": 23 | 90 | "__id__": 29 |
91 | }, | 91 | }, |
92 | { | 92 | { |
93 | "__id__": 26 | 93 | "__id__": 32 |
94 | }, | 94 | }, |
95 | { | 95 | { |
96 | "__id__": 31 | 96 | "__id__": 37 |
97 | }, | ||
98 | { | ||
99 | "__id__": 51 | ||
100 | }, | ||
101 | { | ||
102 | "__id__": 54 | ||
97 | } | 103 | } |
98 | ], | 104 | ], |
99 | "_active": true, | 105 | "_active": true, |
100 | "_components": [ | 106 | "_components": [ |
101 | { | 107 | { |
102 | "__id__": 45 | 108 | "__id__": 60 |
103 | }, | 109 | }, |
104 | { | 110 | { |
105 | "__id__": 46 | 111 | "__id__": 61 |
106 | } | 112 | } |
107 | ], | 113 | ], |
108 | "_prefab": null, | 114 | "_prefab": null, |
... | @@ -252,16 +258,88 @@ | ... | @@ -252,16 +258,88 @@ |
252 | }, | 258 | }, |
253 | { | 259 | { |
254 | "__type__": "cc.Node", | 260 | "__type__": "cc.Node", |
255 | "_name": "Bg", | 261 | "_name": "VideoBg", |
256 | "_objFlags": 0, | 262 | "_objFlags": 0, |
257 | "_parent": { | 263 | "_parent": { |
258 | "__id__": 2 | 264 | "__id__": 2 |
259 | }, | 265 | }, |
266 | "_children": [ | ||
267 | { | ||
268 | "__id__": 6 | ||
269 | }, | ||
270 | { | ||
271 | "__id__": 8 | ||
272 | } | ||
273 | ], | ||
274 | "_active": true, | ||
275 | "_components": [ | ||
276 | { | ||
277 | "__id__": 11 | ||
278 | }, | ||
279 | { | ||
280 | "__id__": 12 | ||
281 | } | ||
282 | ], | ||
283 | "_prefab": null, | ||
284 | "_opacity": 255, | ||
285 | "_color": { | ||
286 | "__type__": "cc.Color", | ||
287 | "r": 255, | ||
288 | "g": 255, | ||
289 | "b": 255, | ||
290 | "a": 255 | ||
291 | }, | ||
292 | "_contentSize": { | ||
293 | "__type__": "cc.Size", | ||
294 | "width": 564, | ||
295 | "height": 317 | ||
296 | }, | ||
297 | "_anchorPoint": { | ||
298 | "__type__": "cc.Vec2", | ||
299 | "x": 0.5, | ||
300 | "y": 0.5 | ||
301 | }, | ||
302 | "_trs": { | ||
303 | "__type__": "TypedArray", | ||
304 | "ctor": "Float32Array", | ||
305 | "array": [ | ||
306 | -294, | ||
307 | 145.5, | ||
308 | 0, | ||
309 | 0, | ||
310 | 0, | ||
311 | 0, | ||
312 | 1, | ||
313 | 1, | ||
314 | 1, | ||
315 | 1 | ||
316 | ] | ||
317 | }, | ||
318 | "_eulerAngles": { | ||
319 | "__type__": "cc.Vec3", | ||
320 | "x": 0, | ||
321 | "y": 0, | ||
322 | "z": 0 | ||
323 | }, | ||
324 | "_skewX": 0, | ||
325 | "_skewY": 0, | ||
326 | "_is3DNode": false, | ||
327 | "_groupIndex": 0, | ||
328 | "groupIndex": 0, | ||
329 | "_id": "21e/UlzrdGfrcPEc1SLTQZ" | ||
330 | }, | ||
331 | { | ||
332 | "__type__": "cc.Node", | ||
333 | "_name": "Bg", | ||
334 | "_objFlags": 0, | ||
335 | "_parent": { | ||
336 | "__id__": 5 | ||
337 | }, | ||
260 | "_children": [], | 338 | "_children": [], |
261 | "_active": true, | 339 | "_active": true, |
262 | "_components": [ | 340 | "_components": [ |
263 | { | 341 | { |
264 | "__id__": 6 | 342 | "__id__": 7 |
265 | } | 343 | } |
266 | ], | 344 | ], |
267 | "_prefab": null, | 345 | "_prefab": null, |
... | @@ -287,8 +365,8 @@ | ... | @@ -287,8 +365,8 @@ |
287 | "__type__": "TypedArray", | 365 | "__type__": "TypedArray", |
288 | "ctor": "Float32Array", | 366 | "ctor": "Float32Array", |
289 | "array": [ | 367 | "array": [ |
290 | 0, | 368 | 294, |
291 | 0, | 369 | -145.5, |
292 | 0, | 370 | 0, |
293 | 0, | 371 | 0, |
294 | 0, | 372 | 0, |
... | @@ -317,7 +395,7 @@ | ... | @@ -317,7 +395,7 @@ |
317 | "_name": "", | 395 | "_name": "", |
318 | "_objFlags": 0, | 396 | "_objFlags": 0, |
319 | "node": { | 397 | "node": { |
320 | "__id__": 5 | 398 | "__id__": 6 |
321 | }, | 399 | }, |
322 | "_enabled": true, | 400 | "_enabled": true, |
323 | "_materials": [ | 401 | "_materials": [ |
... | @@ -349,16 +427,16 @@ | ... | @@ -349,16 +427,16 @@ |
349 | "_name": "Pic", | 427 | "_name": "Pic", |
350 | "_objFlags": 0, | 428 | "_objFlags": 0, |
351 | "_parent": { | 429 | "_parent": { |
352 | "__id__": 2 | 430 | "__id__": 5 |
353 | }, | 431 | }, |
354 | "_children": [], | 432 | "_children": [], |
355 | "_active": true, | 433 | "_active": true, |
356 | "_components": [ | 434 | "_components": [ |
357 | { | 435 | { |
358 | "__id__": 8 | 436 | "__id__": 9 |
359 | }, | 437 | }, |
360 | { | 438 | { |
361 | "__id__": 9 | 439 | "__id__": 10 |
362 | } | 440 | } |
363 | ], | 441 | ], |
364 | "_prefab": null, | 442 | "_prefab": null, |
... | @@ -384,8 +462,8 @@ | ... | @@ -384,8 +462,8 @@ |
384 | "__type__": "TypedArray", | 462 | "__type__": "TypedArray", |
385 | "ctor": "Float32Array", | 463 | "ctor": "Float32Array", |
386 | "array": [ | 464 | "array": [ |
387 | -294, | 465 | 0, |
388 | 145.5, | 466 | 0, |
389 | 0, | 467 | 0, |
390 | 0, | 468 | 0, |
391 | 0, | 469 | 0, |
... | @@ -407,14 +485,14 @@ | ... | @@ -407,14 +485,14 @@ |
407 | "_is3DNode": false, | 485 | "_is3DNode": false, |
408 | "_groupIndex": 0, | 486 | "_groupIndex": 0, |
409 | "groupIndex": 0, | 487 | "groupIndex": 0, |
410 | "_id": "9dhQK4XHJMYJ7juofKyqEb" | 488 | "_id": "87y0bFEt5EAZfkOaEZDX/d" |
411 | }, | 489 | }, |
412 | { | 490 | { |
413 | "__type__": "cc.Sprite", | 491 | "__type__": "cc.Sprite", |
414 | "_name": "", | 492 | "_name": "", |
415 | "_objFlags": 0, | 493 | "_objFlags": 0, |
416 | "node": { | 494 | "node": { |
417 | "__id__": 7 | 495 | "__id__": 8 |
418 | }, | 496 | }, |
419 | "_enabled": true, | 497 | "_enabled": true, |
420 | "_materials": [ | 498 | "_materials": [ |
... | @@ -426,7 +504,7 @@ | ... | @@ -426,7 +504,7 @@ |
426 | "_dstBlendFactor": 771, | 504 | "_dstBlendFactor": 771, |
427 | "_spriteFrame": null, | 505 | "_spriteFrame": null, |
428 | "_type": 0, | 506 | "_type": 0, |
429 | "_sizeMode": 0, | 507 | "_sizeMode": 1, |
430 | "_fillType": 0, | 508 | "_fillType": 0, |
431 | "_fillCenter": { | 509 | "_fillCenter": { |
432 | "__type__": "cc.Vec2", | 510 | "__type__": "cc.Vec2", |
... | @@ -437,14 +515,61 @@ | ... | @@ -437,14 +515,61 @@ |
437 | "_fillRange": 0, | 515 | "_fillRange": 0, |
438 | "_isTrimmedMode": true, | 516 | "_isTrimmedMode": true, |
439 | "_atlas": null, | 517 | "_atlas": null, |
440 | "_id": "bbFxYqPmxEh5U8eUP1/UFZ" | 518 | "_id": "9cjcBeT3RDkokDw4maAOqR" |
519 | }, | ||
520 | { | ||
521 | "__type__": "cc.Widget", | ||
522 | "_name": "", | ||
523 | "_objFlags": 0, | ||
524 | "node": { | ||
525 | "__id__": 8 | ||
526 | }, | ||
527 | "_enabled": true, | ||
528 | "alignMode": 1, | ||
529 | "_target": null, | ||
530 | "_alignFlags": 9, | ||
531 | "_left": 0, | ||
532 | "_right": 0, | ||
533 | "_top": 0, | ||
534 | "_bottom": 0, | ||
535 | "_verticalCenter": 0, | ||
536 | "_horizontalCenter": 0, | ||
537 | "_isAbsLeft": true, | ||
538 | "_isAbsRight": true, | ||
539 | "_isAbsTop": true, | ||
540 | "_isAbsBottom": true, | ||
541 | "_isAbsHorizontalCenter": true, | ||
542 | "_isAbsVerticalCenter": true, | ||
543 | "_originalWidth": 0, | ||
544 | "_originalHeight": 0, | ||
545 | "_id": "dfWxIzXQROAZgoR1KjgfPr" | ||
546 | }, | ||
547 | { | ||
548 | "__type__": "cc.Mask", | ||
549 | "_name": "", | ||
550 | "_objFlags": 0, | ||
551 | "node": { | ||
552 | "__id__": 5 | ||
553 | }, | ||
554 | "_enabled": true, | ||
555 | "_materials": [ | ||
556 | { | ||
557 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" | ||
558 | } | ||
559 | ], | ||
560 | "_spriteFrame": null, | ||
561 | "_type": 0, | ||
562 | "_segments": 64, | ||
563 | "_N$alphaThreshold": 0, | ||
564 | "_N$inverted": true, | ||
565 | "_id": "7dM7wS9eBHo5IcSsLP8ef+" | ||
441 | }, | 566 | }, |
442 | { | 567 | { |
443 | "__type__": "cc.Widget", | 568 | "__type__": "cc.Widget", |
444 | "_name": "", | 569 | "_name": "", |
445 | "_objFlags": 0, | 570 | "_objFlags": 0, |
446 | "node": { | 571 | "node": { |
447 | "__id__": 7 | 572 | "__id__": 5 |
448 | }, | 573 | }, |
449 | "_enabled": true, | 574 | "_enabled": true, |
450 | "alignMode": 1, | 575 | "alignMode": 1, |
... | @@ -464,25 +589,25 @@ | ... | @@ -464,25 +589,25 @@ |
464 | "_isAbsVerticalCenter": true, | 589 | "_isAbsVerticalCenter": true, |
465 | "_originalWidth": 0, | 590 | "_originalWidth": 0, |
466 | "_originalHeight": 0, | 591 | "_originalHeight": 0, |
467 | "_id": "91hwbBfCJNh7cghG5jaSsL" | 592 | "_id": "1deOskZZxMRJNsLEyybPS8" |
468 | }, | 593 | }, |
469 | { | 594 | { |
470 | "__type__": "cc.Node", | 595 | "__type__": "cc.Node", |
471 | "_name": "Desc", | 596 | "_name": "Pic", |
472 | "_objFlags": 0, | 597 | "_objFlags": 0, |
473 | "_parent": { | 598 | "_parent": { |
474 | "__id__": 2 | 599 | "__id__": 2 |
475 | }, | 600 | }, |
476 | "_children": [ | 601 | "_children": [], |
602 | "_active": true, | ||
603 | "_components": [ | ||
477 | { | 604 | { |
478 | "__id__": 11 | 605 | "__id__": 14 |
479 | }, | 606 | }, |
480 | { | 607 | { |
481 | "__id__": 14 | 608 | "__id__": 15 |
482 | } | 609 | } |
483 | ], | 610 | ], |
484 | "_active": true, | ||
485 | "_components": [], | ||
486 | "_prefab": null, | 611 | "_prefab": null, |
487 | "_opacity": 255, | 612 | "_opacity": 255, |
488 | "_color": { | 613 | "_color": { |
... | @@ -494,8 +619,8 @@ | ... | @@ -494,8 +619,8 @@ |
494 | }, | 619 | }, |
495 | "_contentSize": { | 620 | "_contentSize": { |
496 | "__type__": "cc.Size", | 621 | "__type__": "cc.Size", |
497 | "width": 0, | 622 | "width": 564, |
498 | "height": 0 | 623 | "height": 317 |
499 | }, | 624 | }, |
500 | "_anchorPoint": { | 625 | "_anchorPoint": { |
501 | "__type__": "cc.Vec2", | 626 | "__type__": "cc.Vec2", |
... | @@ -506,8 +631,8 @@ | ... | @@ -506,8 +631,8 @@ |
506 | "__type__": "TypedArray", | 631 | "__type__": "TypedArray", |
507 | "ctor": "Float32Array", | 632 | "ctor": "Float32Array", |
508 | "array": [ | 633 | "array": [ |
509 | 0, | 634 | -294, |
510 | 0, | 635 | 145.5, |
511 | 0, | 636 | 0, |
512 | 0, | 637 | 0, |
513 | 0, | 638 | 0, |
... | @@ -529,25 +654,82 @@ | ... | @@ -529,25 +654,82 @@ |
529 | "_is3DNode": false, | 654 | "_is3DNode": false, |
530 | "_groupIndex": 0, | 655 | "_groupIndex": 0, |
531 | "groupIndex": 0, | 656 | "groupIndex": 0, |
532 | "_id": "ecQr5qoNxGq70VEDDtIj/R" | 657 | "_id": "9dhQK4XHJMYJ7juofKyqEb" |
658 | }, | ||
659 | { | ||
660 | "__type__": "cc.Sprite", | ||
661 | "_name": "", | ||
662 | "_objFlags": 0, | ||
663 | "node": { | ||
664 | "__id__": 13 | ||
665 | }, | ||
666 | "_enabled": true, | ||
667 | "_materials": [ | ||
668 | { | ||
669 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" | ||
670 | } | ||
671 | ], | ||
672 | "_srcBlendFactor": 770, | ||
673 | "_dstBlendFactor": 771, | ||
674 | "_spriteFrame": null, | ||
675 | "_type": 0, | ||
676 | "_sizeMode": 0, | ||
677 | "_fillType": 0, | ||
678 | "_fillCenter": { | ||
679 | "__type__": "cc.Vec2", | ||
680 | "x": 0, | ||
681 | "y": 0 | ||
682 | }, | ||
683 | "_fillStart": 0, | ||
684 | "_fillRange": 0, | ||
685 | "_isTrimmedMode": true, | ||
686 | "_atlas": null, | ||
687 | "_id": "bbFxYqPmxEh5U8eUP1/UFZ" | ||
688 | }, | ||
689 | { | ||
690 | "__type__": "cc.Widget", | ||
691 | "_name": "", | ||
692 | "_objFlags": 0, | ||
693 | "node": { | ||
694 | "__id__": 13 | ||
695 | }, | ||
696 | "_enabled": true, | ||
697 | "alignMode": 1, | ||
698 | "_target": null, | ||
699 | "_alignFlags": 9, | ||
700 | "_left": 64, | ||
701 | "_right": 0, | ||
702 | "_top": 56, | ||
703 | "_bottom": 0, | ||
704 | "_verticalCenter": 0, | ||
705 | "_horizontalCenter": 0, | ||
706 | "_isAbsLeft": true, | ||
707 | "_isAbsRight": true, | ||
708 | "_isAbsTop": true, | ||
709 | "_isAbsBottom": true, | ||
710 | "_isAbsHorizontalCenter": true, | ||
711 | "_isAbsVerticalCenter": true, | ||
712 | "_originalWidth": 0, | ||
713 | "_originalHeight": 0, | ||
714 | "_id": "91hwbBfCJNh7cghG5jaSsL" | ||
533 | }, | 715 | }, |
534 | { | 716 | { |
535 | "__type__": "cc.Node", | 717 | "__type__": "cc.Node", |
536 | "_name": "Title", | 718 | "_name": "Desc", |
537 | "_objFlags": 0, | 719 | "_objFlags": 0, |
538 | "_parent": { | 720 | "_parent": { |
539 | "__id__": 10 | 721 | "__id__": 2 |
540 | }, | 722 | }, |
541 | "_children": [], | 723 | "_children": [ |
542 | "_active": true, | ||
543 | "_components": [ | ||
544 | { | 724 | { |
545 | "__id__": 12 | 725 | "__id__": 17 |
546 | }, | 726 | }, |
547 | { | 727 | { |
548 | "__id__": 13 | 728 | "__id__": 20 |
549 | } | 729 | } |
550 | ], | 730 | ], |
731 | "_active": true, | ||
732 | "_components": [], | ||
551 | "_prefab": null, | 733 | "_prefab": null, |
552 | "_opacity": 255, | 734 | "_opacity": 255, |
553 | "_color": { | 735 | "_color": { |
... | @@ -559,8 +741,8 @@ | ... | @@ -559,8 +741,8 @@ |
559 | }, | 741 | }, |
560 | "_contentSize": { | 742 | "_contentSize": { |
561 | "__type__": "cc.Size", | 743 | "__type__": "cc.Size", |
562 | "width": 108, | 744 | "width": 0, |
563 | "height": 63 | 745 | "height": 0 |
564 | }, | 746 | }, |
565 | "_anchorPoint": { | 747 | "_anchorPoint": { |
566 | "__type__": "cc.Vec2", | 748 | "__type__": "cc.Vec2", |
... | @@ -571,8 +753,8 @@ | ... | @@ -571,8 +753,8 @@ |
571 | "__type__": "TypedArray", | 753 | "__type__": "TypedArray", |
572 | "ctor": "Float32Array", | 754 | "ctor": "Float32Array", |
573 | "array": [ | 755 | "array": [ |
574 | 90, | 756 | 0, |
575 | 280.5, | 757 | 0, |
576 | 0, | 758 | 0, |
577 | 0, | 759 | 0, |
578 | 0, | 760 | 0, |
... | @@ -594,14 +776,79 @@ | ... | @@ -594,14 +776,79 @@ |
594 | "_is3DNode": false, | 776 | "_is3DNode": false, |
595 | "_groupIndex": 0, | 777 | "_groupIndex": 0, |
596 | "groupIndex": 0, | 778 | "groupIndex": 0, |
597 | "_id": "56h99aq2ZGcaG8g4nRxV4M" | 779 | "_id": "ecQr5qoNxGq70VEDDtIj/R" |
598 | }, | 780 | }, |
599 | { | 781 | { |
600 | "__type__": "cc.Label", | 782 | "__type__": "cc.Node", |
783 | "_name": "Title", | ||
784 | "_objFlags": 0, | ||
785 | "_parent": { | ||
786 | "__id__": 16 | ||
787 | }, | ||
788 | "_children": [], | ||
789 | "_active": true, | ||
790 | "_components": [ | ||
791 | { | ||
792 | "__id__": 18 | ||
793 | }, | ||
794 | { | ||
795 | "__id__": 19 | ||
796 | } | ||
797 | ], | ||
798 | "_prefab": null, | ||
799 | "_opacity": 255, | ||
800 | "_color": { | ||
801 | "__type__": "cc.Color", | ||
802 | "r": 255, | ||
803 | "g": 255, | ||
804 | "b": 255, | ||
805 | "a": 255 | ||
806 | }, | ||
807 | "_contentSize": { | ||
808 | "__type__": "cc.Size", | ||
809 | "width": 108, | ||
810 | "height": 63 | ||
811 | }, | ||
812 | "_anchorPoint": { | ||
813 | "__type__": "cc.Vec2", | ||
814 | "x": 0.5, | ||
815 | "y": 0.5 | ||
816 | }, | ||
817 | "_trs": { | ||
818 | "__type__": "TypedArray", | ||
819 | "ctor": "Float32Array", | ||
820 | "array": [ | ||
821 | 90, | ||
822 | 280.5, | ||
823 | 0, | ||
824 | 0, | ||
825 | 0, | ||
826 | 0, | ||
827 | 1, | ||
828 | 1, | ||
829 | 1, | ||
830 | 1 | ||
831 | ] | ||
832 | }, | ||
833 | "_eulerAngles": { | ||
834 | "__type__": "cc.Vec3", | ||
835 | "x": 0, | ||
836 | "y": 0, | ||
837 | "z": 0 | ||
838 | }, | ||
839 | "_skewX": 0, | ||
840 | "_skewY": 0, | ||
841 | "_is3DNode": false, | ||
842 | "_groupIndex": 0, | ||
843 | "groupIndex": 0, | ||
844 | "_id": "56h99aq2ZGcaG8g4nRxV4M" | ||
845 | }, | ||
846 | { | ||
847 | "__type__": "cc.Label", | ||
601 | "_name": "", | 848 | "_name": "", |
602 | "_objFlags": 0, | 849 | "_objFlags": 0, |
603 | "node": { | 850 | "node": { |
604 | "__id__": 11 | 851 | "__id__": 17 |
605 | }, | 852 | }, |
606 | "_enabled": true, | 853 | "_enabled": true, |
607 | "_materials": [ | 854 | "_materials": [ |
... | @@ -631,7 +878,7 @@ | ... | @@ -631,7 +878,7 @@ |
631 | "_name": "", | 878 | "_name": "", |
632 | "_objFlags": 0, | 879 | "_objFlags": 0, |
633 | "node": { | 880 | "node": { |
634 | "__id__": 11 | 881 | "__id__": 17 |
635 | }, | 882 | }, |
636 | "_enabled": true, | 883 | "_enabled": true, |
637 | "alignMode": 2, | 884 | "alignMode": 2, |
... | @@ -660,16 +907,16 @@ | ... | @@ -660,16 +907,16 @@ |
660 | "_name": "LabelDesc", | 907 | "_name": "LabelDesc", |
661 | "_objFlags": 0, | 908 | "_objFlags": 0, |
662 | "_parent": { | 909 | "_parent": { |
663 | "__id__": 10 | 910 | "__id__": 16 |
664 | }, | 911 | }, |
665 | "_children": [], | 912 | "_children": [], |
666 | "_active": true, | 913 | "_active": true, |
667 | "_components": [ | 914 | "_components": [ |
668 | { | 915 | { |
669 | "__id__": 15 | 916 | "__id__": 21 |
670 | }, | 917 | }, |
671 | { | 918 | { |
672 | "__id__": 16 | 919 | "__id__": 22 |
673 | } | 920 | } |
674 | ], | 921 | ], |
675 | "_prefab": null, | 922 | "_prefab": null, |
... | @@ -725,7 +972,7 @@ | ... | @@ -725,7 +972,7 @@ |
725 | "_name": "", | 972 | "_name": "", |
726 | "_objFlags": 0, | 973 | "_objFlags": 0, |
727 | "node": { | 974 | "node": { |
728 | "__id__": 14 | 975 | "__id__": 20 |
729 | }, | 976 | }, |
730 | "_enabled": true, | 977 | "_enabled": true, |
731 | "_materials": [ | 978 | "_materials": [ |
... | @@ -755,7 +1002,7 @@ | ... | @@ -755,7 +1002,7 @@ |
755 | "_name": "", | 1002 | "_name": "", |
756 | "_objFlags": 0, | 1003 | "_objFlags": 0, |
757 | "node": { | 1004 | "node": { |
758 | "__id__": 14 | 1005 | "__id__": 20 |
759 | }, | 1006 | }, |
760 | "_enabled": true, | 1007 | "_enabled": true, |
761 | "alignMode": 2, | 1008 | "alignMode": 2, |
... | @@ -790,10 +1037,10 @@ | ... | @@ -790,10 +1037,10 @@ |
790 | "_active": true, | 1037 | "_active": true, |
791 | "_components": [ | 1038 | "_components": [ |
792 | { | 1039 | { |
793 | "__id__": 18 | 1040 | "__id__": 24 |
794 | }, | 1041 | }, |
795 | { | 1042 | { |
796 | "__id__": 19 | 1043 | "__id__": 25 |
797 | } | 1044 | } |
798 | ], | 1045 | ], |
799 | "_prefab": null, | 1046 | "_prefab": null, |
... | @@ -849,7 +1096,7 @@ | ... | @@ -849,7 +1096,7 @@ |
849 | "_name": "", | 1096 | "_name": "", |
850 | "_objFlags": 0, | 1097 | "_objFlags": 0, |
851 | "node": { | 1098 | "node": { |
852 | "__id__": 17 | 1099 | "__id__": 23 |
853 | }, | 1100 | }, |
854 | "_enabled": true, | 1101 | "_enabled": true, |
855 | "_materials": [ | 1102 | "_materials": [ |
... | @@ -881,7 +1128,7 @@ | ... | @@ -881,7 +1128,7 @@ |
881 | "_name": "", | 1128 | "_name": "", |
882 | "_objFlags": 0, | 1129 | "_objFlags": 0, |
883 | "node": { | 1130 | "node": { |
884 | "__id__": 17 | 1131 | "__id__": 23 |
885 | }, | 1132 | }, |
886 | "_enabled": true, | 1133 | "_enabled": true, |
887 | "alignMode": 1, | 1134 | "alignMode": 1, |
... | @@ -914,10 +1161,10 @@ | ... | @@ -914,10 +1161,10 @@ |
914 | "_active": true, | 1161 | "_active": true, |
915 | "_components": [ | 1162 | "_components": [ |
916 | { | 1163 | { |
917 | "__id__": 21 | 1164 | "__id__": 27 |
918 | }, | 1165 | }, |
919 | { | 1166 | { |
920 | "__id__": 22 | 1167 | "__id__": 28 |
921 | } | 1168 | } |
922 | ], | 1169 | ], |
923 | "_prefab": null, | 1170 | "_prefab": null, |
... | @@ -973,7 +1220,7 @@ | ... | @@ -973,7 +1220,7 @@ |
973 | "_name": "", | 1220 | "_name": "", |
974 | "_objFlags": 0, | 1221 | "_objFlags": 0, |
975 | "node": { | 1222 | "node": { |
976 | "__id__": 20 | 1223 | "__id__": 26 |
977 | }, | 1224 | }, |
978 | "_enabled": true, | 1225 | "_enabled": true, |
979 | "_materials": [ | 1226 | "_materials": [ |
... | @@ -1005,7 +1252,7 @@ | ... | @@ -1005,7 +1252,7 @@ |
1005 | "_name": "", | 1252 | "_name": "", |
1006 | "_objFlags": 0, | 1253 | "_objFlags": 0, |
1007 | "node": { | 1254 | "node": { |
1008 | "__id__": 20 | 1255 | "__id__": 26 |
1009 | }, | 1256 | }, |
1010 | "_enabled": true, | 1257 | "_enabled": true, |
1011 | "alignMode": 1, | 1258 | "alignMode": 1, |
... | @@ -1038,10 +1285,10 @@ | ... | @@ -1038,10 +1285,10 @@ |
1038 | "_active": true, | 1285 | "_active": true, |
1039 | "_components": [ | 1286 | "_components": [ |
1040 | { | 1287 | { |
1041 | "__id__": 24 | 1288 | "__id__": 30 |
1042 | }, | 1289 | }, |
1043 | { | 1290 | { |
1044 | "__id__": 25 | 1291 | "__id__": 31 |
1045 | } | 1292 | } |
1046 | ], | 1293 | ], |
1047 | "_prefab": null, | 1294 | "_prefab": null, |
... | @@ -1097,7 +1344,7 @@ | ... | @@ -1097,7 +1344,7 @@ |
1097 | "_name": "", | 1344 | "_name": "", |
1098 | "_objFlags": 0, | 1345 | "_objFlags": 0, |
1099 | "node": { | 1346 | "node": { |
1100 | "__id__": 23 | 1347 | "__id__": 29 |
1101 | }, | 1348 | }, |
1102 | "_enabled": true, | 1349 | "_enabled": true, |
1103 | "_materials": [ | 1350 | "_materials": [ |
... | @@ -1127,7 +1374,7 @@ | ... | @@ -1127,7 +1374,7 @@ |
1127 | "_name": "", | 1374 | "_name": "", |
1128 | "_objFlags": 0, | 1375 | "_objFlags": 0, |
1129 | "node": { | 1376 | "node": { |
1130 | "__id__": 23 | 1377 | "__id__": 29 |
1131 | }, | 1378 | }, |
1132 | "_enabled": true, | 1379 | "_enabled": true, |
1133 | "alignMode": 1, | 1380 | "alignMode": 1, |
... | @@ -1158,13 +1405,13 @@ | ... | @@ -1158,13 +1405,13 @@ |
1158 | }, | 1405 | }, |
1159 | "_children": [ | 1406 | "_children": [ |
1160 | { | 1407 | { |
1161 | "__id__": 27 | 1408 | "__id__": 33 |
1162 | } | 1409 | } |
1163 | ], | 1410 | ], |
1164 | "_active": true, | 1411 | "_active": true, |
1165 | "_components": [ | 1412 | "_components": [ |
1166 | { | 1413 | { |
1167 | "__id__": 30 | 1414 | "__id__": 36 |
1168 | } | 1415 | } |
1169 | ], | 1416 | ], |
1170 | "_prefab": null, | 1417 | "_prefab": null, |
... | @@ -1232,17 +1479,17 @@ | ... | @@ -1232,17 +1479,17 @@ |
1232 | "_name": "TypeListWrapper", | 1479 | "_name": "TypeListWrapper", |
1233 | "_objFlags": 0, | 1480 | "_objFlags": 0, |
1234 | "_parent": { | 1481 | "_parent": { |
1235 | "__id__": 26 | 1482 | "__id__": 32 |
1236 | }, | 1483 | }, |
1237 | "_children": [ | 1484 | "_children": [ |
1238 | { | 1485 | { |
1239 | "__id__": 28 | 1486 | "__id__": 34 |
1240 | } | 1487 | } |
1241 | ], | 1488 | ], |
1242 | "_active": true, | 1489 | "_active": true, |
1243 | "_components": [ | 1490 | "_components": [ |
1244 | { | 1491 | { |
1245 | "__id__": 29 | 1492 | "__id__": 35 |
1246 | } | 1493 | } |
1247 | ], | 1494 | ], |
1248 | "_prefab": null, | 1495 | "_prefab": null, |
... | @@ -1310,7 +1557,7 @@ | ... | @@ -1310,7 +1557,7 @@ |
1310 | "_name": "TypeList", | 1557 | "_name": "TypeList", |
1311 | "_objFlags": 0, | 1558 | "_objFlags": 0, |
1312 | "_parent": { | 1559 | "_parent": { |
1313 | "__id__": 27 | 1560 | "__id__": 33 |
1314 | }, | 1561 | }, |
1315 | "_children": [], | 1562 | "_children": [], |
1316 | "_active": true, | 1563 | "_active": true, |
... | @@ -1380,7 +1627,7 @@ | ... | @@ -1380,7 +1627,7 @@ |
1380 | "_name": "", | 1627 | "_name": "", |
1381 | "_objFlags": 0, | 1628 | "_objFlags": 0, |
1382 | "node": { | 1629 | "node": { |
1383 | "__id__": 27 | 1630 | "__id__": 33 |
1384 | }, | 1631 | }, |
1385 | "_enabled": true, | 1632 | "_enabled": true, |
1386 | "_materials": [ | 1633 | "_materials": [ |
... | @@ -1400,7 +1647,7 @@ | ... | @@ -1400,7 +1647,7 @@ |
1400 | "_name": "", | 1647 | "_name": "", |
1401 | "_objFlags": 0, | 1648 | "_objFlags": 0, |
1402 | "node": { | 1649 | "node": { |
1403 | "__id__": 26 | 1650 | "__id__": 32 |
1404 | }, | 1651 | }, |
1405 | "_enabled": true, | 1652 | "_enabled": true, |
1406 | "alignMode": 2, | 1653 | "alignMode": 2, |
... | @@ -1433,22 +1680,22 @@ | ... | @@ -1433,22 +1680,22 @@ |
1433 | }, | 1680 | }, |
1434 | "_children": [ | 1681 | "_children": [ |
1435 | { | 1682 | { |
1436 | "__id__": 32 | 1683 | "__id__": 38 |
1437 | }, | 1684 | }, |
1438 | { | 1685 | { |
1439 | "__id__": 35 | 1686 | "__id__": 41 |
1440 | }, | 1687 | }, |
1441 | { | 1688 | { |
1442 | "__id__": 38 | 1689 | "__id__": 44 |
1443 | }, | 1690 | }, |
1444 | { | 1691 | { |
1445 | "__id__": 41 | 1692 | "__id__": 47 |
1446 | } | 1693 | } |
1447 | ], | 1694 | ], |
1448 | "_active": false, | 1695 | "_active": false, |
1449 | "_components": [ | 1696 | "_components": [ |
1450 | { | 1697 | { |
1451 | "__id__": 44 | 1698 | "__id__": 50 |
1452 | } | 1699 | } |
1453 | ], | 1700 | ], |
1454 | "_prefab": null, | 1701 | "_prefab": null, |
... | @@ -1504,16 +1751,16 @@ | ... | @@ -1504,16 +1751,16 @@ |
1504 | "_name": "New Sprite(Splash)", | 1751 | "_name": "New Sprite(Splash)", |
1505 | "_objFlags": 0, | 1752 | "_objFlags": 0, |
1506 | "_parent": { | 1753 | "_parent": { |
1507 | "__id__": 31 | 1754 | "__id__": 37 |
1508 | }, | 1755 | }, |
1509 | "_children": [], | 1756 | "_children": [], |
1510 | "_active": true, | 1757 | "_active": true, |
1511 | "_components": [ | 1758 | "_components": [ |
1512 | { | 1759 | { |
1513 | "__id__": 33 | 1760 | "__id__": 39 |
1514 | }, | 1761 | }, |
1515 | { | 1762 | { |
1516 | "__id__": 34 | 1763 | "__id__": 40 |
1517 | } | 1764 | } |
1518 | ], | 1765 | ], |
1519 | "_prefab": null, | 1766 | "_prefab": null, |
... | @@ -1569,7 +1816,7 @@ | ... | @@ -1569,7 +1816,7 @@ |
1569 | "_name": "", | 1816 | "_name": "", |
1570 | "_objFlags": 0, | 1817 | "_objFlags": 0, |
1571 | "node": { | 1818 | "node": { |
1572 | "__id__": 32 | 1819 | "__id__": 38 |
1573 | }, | 1820 | }, |
1574 | "_enabled": true, | 1821 | "_enabled": true, |
1575 | "_materials": [ | 1822 | "_materials": [ |
... | @@ -1601,7 +1848,7 @@ | ... | @@ -1601,7 +1848,7 @@ |
1601 | "_name": "", | 1848 | "_name": "", |
1602 | "_objFlags": 0, | 1849 | "_objFlags": 0, |
1603 | "node": { | 1850 | "node": { |
1604 | "__id__": 32 | 1851 | "__id__": 38 |
1605 | }, | 1852 | }, |
1606 | "_enabled": true, | 1853 | "_enabled": true, |
1607 | "alignMode": 1, | 1854 | "alignMode": 1, |
... | @@ -1628,16 +1875,16 @@ | ... | @@ -1628,16 +1875,16 @@ |
1628 | "_name": "Title", | 1875 | "_name": "Title", |
1629 | "_objFlags": 0, | 1876 | "_objFlags": 0, |
1630 | "_parent": { | 1877 | "_parent": { |
1631 | "__id__": 31 | 1878 | "__id__": 37 |
1632 | }, | 1879 | }, |
1633 | "_children": [], | 1880 | "_children": [], |
1634 | "_active": true, | 1881 | "_active": true, |
1635 | "_components": [ | 1882 | "_components": [ |
1636 | { | 1883 | { |
1637 | "__id__": 36 | 1884 | "__id__": 42 |
1638 | }, | 1885 | }, |
1639 | { | 1886 | { |
1640 | "__id__": 37 | 1887 | "__id__": 43 |
1641 | } | 1888 | } |
1642 | ], | 1889 | ], |
1643 | "_prefab": null, | 1890 | "_prefab": null, |
... | @@ -1693,7 +1940,7 @@ | ... | @@ -1693,7 +1940,7 @@ |
1693 | "_name": "", | 1940 | "_name": "", |
1694 | "_objFlags": 0, | 1941 | "_objFlags": 0, |
1695 | "node": { | 1942 | "node": { |
1696 | "__id__": 35 | 1943 | "__id__": 41 |
1697 | }, | 1944 | }, |
1698 | "_enabled": true, | 1945 | "_enabled": true, |
1699 | "_materials": [ | 1946 | "_materials": [ |
... | @@ -1723,7 +1970,7 @@ | ... | @@ -1723,7 +1970,7 @@ |
1723 | "_name": "", | 1970 | "_name": "", |
1724 | "_objFlags": 0, | 1971 | "_objFlags": 0, |
1725 | "node": { | 1972 | "node": { |
1726 | "__id__": 35 | 1973 | "__id__": 41 |
1727 | }, | 1974 | }, |
1728 | "_enabled": true, | 1975 | "_enabled": true, |
1729 | "alignMode": 1, | 1976 | "alignMode": 1, |
... | @@ -1750,16 +1997,16 @@ | ... | @@ -1750,16 +1997,16 @@ |
1750 | "_name": "Desc", | 1997 | "_name": "Desc", |
1751 | "_objFlags": 0, | 1998 | "_objFlags": 0, |
1752 | "_parent": { | 1999 | "_parent": { |
1753 | "__id__": 31 | 2000 | "__id__": 37 |
1754 | }, | 2001 | }, |
1755 | "_children": [], | 2002 | "_children": [], |
1756 | "_active": true, | 2003 | "_active": true, |
1757 | "_components": [ | 2004 | "_components": [ |
1758 | { | 2005 | { |
1759 | "__id__": 39 | 2006 | "__id__": 45 |
1760 | }, | 2007 | }, |
1761 | { | 2008 | { |
1762 | "__id__": 40 | 2009 | "__id__": 46 |
1763 | } | 2010 | } |
1764 | ], | 2011 | ], |
1765 | "_prefab": null, | 2012 | "_prefab": null, |
... | @@ -1815,7 +2062,7 @@ | ... | @@ -1815,7 +2062,7 @@ |
1815 | "_name": "", | 2062 | "_name": "", |
1816 | "_objFlags": 0, | 2063 | "_objFlags": 0, |
1817 | "node": { | 2064 | "node": { |
1818 | "__id__": 38 | 2065 | "__id__": 44 |
1819 | }, | 2066 | }, |
1820 | "_enabled": true, | 2067 | "_enabled": true, |
1821 | "_materials": [ | 2068 | "_materials": [ |
... | @@ -1845,7 +2092,7 @@ | ... | @@ -1845,7 +2092,7 @@ |
1845 | "_name": "", | 2092 | "_name": "", |
1846 | "_objFlags": 0, | 2093 | "_objFlags": 0, |
1847 | "node": { | 2094 | "node": { |
1848 | "__id__": 38 | 2095 | "__id__": 44 |
1849 | }, | 2096 | }, |
1850 | "_enabled": true, | 2097 | "_enabled": true, |
1851 | "alignMode": 1, | 2098 | "alignMode": 1, |
... | @@ -1872,16 +2119,16 @@ | ... | @@ -1872,16 +2119,16 @@ |
1872 | "_name": "New Sprite(Splash)", | 2119 | "_name": "New Sprite(Splash)", |
1873 | "_objFlags": 0, | 2120 | "_objFlags": 0, |
1874 | "_parent": { | 2121 | "_parent": { |
1875 | "__id__": 31 | 2122 | "__id__": 37 |
1876 | }, | 2123 | }, |
1877 | "_children": [], | 2124 | "_children": [], |
1878 | "_active": true, | 2125 | "_active": true, |
1879 | "_components": [ | 2126 | "_components": [ |
1880 | { | 2127 | { |
1881 | "__id__": 42 | 2128 | "__id__": 48 |
1882 | }, | 2129 | }, |
1883 | { | 2130 | { |
1884 | "__id__": 43 | 2131 | "__id__": 49 |
1885 | } | 2132 | } |
1886 | ], | 2133 | ], |
1887 | "_prefab": null, | 2134 | "_prefab": null, |
... | @@ -1937,7 +2184,7 @@ | ... | @@ -1937,7 +2184,7 @@ |
1937 | "_name": "", | 2184 | "_name": "", |
1938 | "_objFlags": 0, | 2185 | "_objFlags": 0, |
1939 | "node": { | 2186 | "node": { |
1940 | "__id__": 41 | 2187 | "__id__": 47 |
1941 | }, | 2188 | }, |
1942 | "_enabled": true, | 2189 | "_enabled": true, |
1943 | "_materials": [ | 2190 | "_materials": [ |
... | @@ -1969,7 +2216,7 @@ | ... | @@ -1969,7 +2216,7 @@ |
1969 | "_name": "", | 2216 | "_name": "", |
1970 | "_objFlags": 0, | 2217 | "_objFlags": 0, |
1971 | "node": { | 2218 | "node": { |
1972 | "__id__": 41 | 2219 | "__id__": 47 |
1973 | }, | 2220 | }, |
1974 | "_enabled": true, | 2221 | "_enabled": true, |
1975 | "alignMode": 1, | 2222 | "alignMode": 1, |
... | @@ -1996,7 +2243,7 @@ | ... | @@ -1996,7 +2243,7 @@ |
1996 | "_name": "", | 2243 | "_name": "", |
1997 | "_objFlags": 0, | 2244 | "_objFlags": 0, |
1998 | "node": { | 2245 | "node": { |
1999 | "__id__": 31 | 2246 | "__id__": 37 |
2000 | }, | 2247 | }, |
2001 | "_enabled": true, | 2248 | "_enabled": true, |
2002 | "_materials": [ | 2249 | "_materials": [ |
... | @@ -2024,6 +2271,347 @@ | ... | @@ -2024,6 +2271,347 @@ |
2024 | "_id": "54Hd89eq5CuK0tLbPaG/Dt" | 2271 | "_id": "54Hd89eq5CuK0tLbPaG/Dt" |
2025 | }, | 2272 | }, |
2026 | { | 2273 | { |
2274 | "__type__": "cc.Node", | ||
2275 | "_name": "PlayCtrl", | ||
2276 | "_objFlags": 0, | ||
2277 | "_parent": { | ||
2278 | "__id__": 2 | ||
2279 | }, | ||
2280 | "_children": [], | ||
2281 | "_active": true, | ||
2282 | "_components": [ | ||
2283 | { | ||
2284 | "__id__": 52 | ||
2285 | }, | ||
2286 | { | ||
2287 | "__id__": 59 | ||
2288 | } | ||
2289 | ], | ||
2290 | "_prefab": null, | ||
2291 | "_opacity": 255, | ||
2292 | "_color": { | ||
2293 | "__type__": "cc.Color", | ||
2294 | "r": 255, | ||
2295 | "g": 255, | ||
2296 | "b": 255, | ||
2297 | "a": 255 | ||
2298 | }, | ||
2299 | "_contentSize": { | ||
2300 | "__type__": "cc.Size", | ||
2301 | "width": 564, | ||
2302 | "height": 317 | ||
2303 | }, | ||
2304 | "_anchorPoint": { | ||
2305 | "__type__": "cc.Vec2", | ||
2306 | "x": 0.5, | ||
2307 | "y": 0.5 | ||
2308 | }, | ||
2309 | "_trs": { | ||
2310 | "__type__": "TypedArray", | ||
2311 | "ctor": "Float32Array", | ||
2312 | "array": [ | ||
2313 | -294, | ||
2314 | 145.5, | ||
2315 | 0, | ||
2316 | 0, | ||
2317 | 0, | ||
2318 | 0, | ||
2319 | 1, | ||
2320 | 1, | ||
2321 | 1, | ||
2322 | 1 | ||
2323 | ] | ||
2324 | }, | ||
2325 | "_eulerAngles": { | ||
2326 | "__type__": "cc.Vec3", | ||
2327 | "x": 0, | ||
2328 | "y": 0, | ||
2329 | "z": 0 | ||
2330 | }, | ||
2331 | "_skewX": 0, | ||
2332 | "_skewY": 0, | ||
2333 | "_is3DNode": false, | ||
2334 | "_groupIndex": 0, | ||
2335 | "groupIndex": 0, | ||
2336 | "_id": "d7PNOe8x1EcLgsEtGh+GY5" | ||
2337 | }, | ||
2338 | { | ||
2339 | "__type__": "4e8f2OtrSRDb46OJ86ATBte", | ||
2340 | "_name": "", | ||
2341 | "_objFlags": 0, | ||
2342 | "node": { | ||
2343 | "__id__": 51 | ||
2344 | }, | ||
2345 | "_enabled": true, | ||
2346 | "videoPlayer1": null, | ||
2347 | "currentTime": null, | ||
2348 | "totalTime": null, | ||
2349 | "loadingIcon": { | ||
2350 | "__id__": 53 | ||
2351 | }, | ||
2352 | "now": 0, | ||
2353 | "duration": 0, | ||
2354 | "oScene": null, | ||
2355 | "url": "", | ||
2356 | "addedFn4Update": null, | ||
2357 | "_id": "05MyArPyxGK7taZYc4cmw4" | ||
2358 | }, | ||
2359 | { | ||
2360 | "__type__": "cc.Node", | ||
2361 | "_name": "LoadingPic", | ||
2362 | "_objFlags": 0, | ||
2363 | "_parent": { | ||
2364 | "__id__": 54 | ||
2365 | }, | ||
2366 | "_children": [], | ||
2367 | "_active": true, | ||
2368 | "_components": [ | ||
2369 | { | ||
2370 | "__id__": 57 | ||
2371 | }, | ||
2372 | { | ||
2373 | "__id__": 58 | ||
2374 | } | ||
2375 | ], | ||
2376 | "_prefab": null, | ||
2377 | "_opacity": 0, | ||
2378 | "_color": { | ||
2379 | "__type__": "cc.Color", | ||
2380 | "r": 255, | ||
2381 | "g": 255, | ||
2382 | "b": 255, | ||
2383 | "a": 255 | ||
2384 | }, | ||
2385 | "_contentSize": { | ||
2386 | "__type__": "cc.Size", | ||
2387 | "width": 800, | ||
2388 | "height": 11 | ||
2389 | }, | ||
2390 | "_anchorPoint": { | ||
2391 | "__type__": "cc.Vec2", | ||
2392 | "x": 0, | ||
2393 | "y": 0.5 | ||
2394 | }, | ||
2395 | "_trs": { | ||
2396 | "__type__": "TypedArray", | ||
2397 | "ctor": "Float32Array", | ||
2398 | "array": [ | ||
2399 | 0, | ||
2400 | 0, | ||
2401 | 0, | ||
2402 | 0, | ||
2403 | 0, | ||
2404 | 0, | ||
2405 | 1, | ||
2406 | 1, | ||
2407 | 1, | ||
2408 | 1 | ||
2409 | ] | ||
2410 | }, | ||
2411 | "_eulerAngles": { | ||
2412 | "__type__": "cc.Vec3", | ||
2413 | "x": 0, | ||
2414 | "y": 0, | ||
2415 | "z": 0 | ||
2416 | }, | ||
2417 | "_skewX": 0, | ||
2418 | "_skewY": 0, | ||
2419 | "_is3DNode": false, | ||
2420 | "_groupIndex": 0, | ||
2421 | "groupIndex": 0, | ||
2422 | "_id": "1fCpRj4ltGPp0WBxqlgvga" | ||
2423 | }, | ||
2424 | { | ||
2425 | "__type__": "cc.Node", | ||
2426 | "_name": "Loading", | ||
2427 | "_objFlags": 0, | ||
2428 | "_parent": { | ||
2429 | "__id__": 2 | ||
2430 | }, | ||
2431 | "_children": [ | ||
2432 | { | ||
2433 | "__id__": 53 | ||
2434 | } | ||
2435 | ], | ||
2436 | "_active": true, | ||
2437 | "_components": [ | ||
2438 | { | ||
2439 | "__id__": 55 | ||
2440 | }, | ||
2441 | { | ||
2442 | "__id__": 56 | ||
2443 | } | ||
2444 | ], | ||
2445 | "_prefab": null, | ||
2446 | "_opacity": 255, | ||
2447 | "_color": { | ||
2448 | "__type__": "cc.Color", | ||
2449 | "r": 255, | ||
2450 | "g": 255, | ||
2451 | "b": 255, | ||
2452 | "a": 255 | ||
2453 | }, | ||
2454 | "_contentSize": { | ||
2455 | "__type__": "cc.Size", | ||
2456 | "width": 100, | ||
2457 | "height": 20 | ||
2458 | }, | ||
2459 | "_anchorPoint": { | ||
2460 | "__type__": "cc.Vec2", | ||
2461 | "x": 0, | ||
2462 | "y": 0.5 | ||
2463 | }, | ||
2464 | "_trs": { | ||
2465 | "__type__": "TypedArray", | ||
2466 | "ctor": "Float32Array", | ||
2467 | "array": [ | ||
2468 | -50, | ||
2469 | 0, | ||
2470 | 0, | ||
2471 | 0, | ||
2472 | 0, | ||
2473 | 0, | ||
2474 | 1, | ||
2475 | 1, | ||
2476 | 1, | ||
2477 | 1 | ||
2478 | ] | ||
2479 | }, | ||
2480 | "_eulerAngles": { | ||
2481 | "__type__": "cc.Vec3", | ||
2482 | "x": 0, | ||
2483 | "y": 0, | ||
2484 | "z": 0 | ||
2485 | }, | ||
2486 | "_skewX": 0, | ||
2487 | "_skewY": 0, | ||
2488 | "_is3DNode": false, | ||
2489 | "_groupIndex": 0, | ||
2490 | "groupIndex": 0, | ||
2491 | "_id": "3eMr3hksxLOpx16sPlyI5U" | ||
2492 | }, | ||
2493 | { | ||
2494 | "__type__": "cc.Mask", | ||
2495 | "_name": "", | ||
2496 | "_objFlags": 0, | ||
2497 | "node": { | ||
2498 | "__id__": 54 | ||
2499 | }, | ||
2500 | "_enabled": true, | ||
2501 | "_materials": [ | ||
2502 | { | ||
2503 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" | ||
2504 | } | ||
2505 | ], | ||
2506 | "_spriteFrame": null, | ||
2507 | "_type": 0, | ||
2508 | "_segments": 64, | ||
2509 | "_N$alphaThreshold": 1, | ||
2510 | "_N$inverted": false, | ||
2511 | "_id": "16R11mlV1AkIXYmp3/Tlfz" | ||
2512 | }, | ||
2513 | { | ||
2514 | "__type__": "cc.Widget", | ||
2515 | "_name": "", | ||
2516 | "_objFlags": 0, | ||
2517 | "node": { | ||
2518 | "__id__": 54 | ||
2519 | }, | ||
2520 | "_enabled": true, | ||
2521 | "alignMode": 0, | ||
2522 | "_target": null, | ||
2523 | "_alignFlags": 18, | ||
2524 | "_left": 0, | ||
2525 | "_right": 0, | ||
2526 | "_top": 0, | ||
2527 | "_bottom": 0, | ||
2528 | "_verticalCenter": 0, | ||
2529 | "_horizontalCenter": 0, | ||
2530 | "_isAbsLeft": true, | ||
2531 | "_isAbsRight": true, | ||
2532 | "_isAbsTop": true, | ||
2533 | "_isAbsBottom": true, | ||
2534 | "_isAbsHorizontalCenter": true, | ||
2535 | "_isAbsVerticalCenter": true, | ||
2536 | "_originalWidth": 0, | ||
2537 | "_originalHeight": 0, | ||
2538 | "_id": "cewOb6F/9FY5HEjsUP22DF" | ||
2539 | }, | ||
2540 | { | ||
2541 | "__type__": "cc.Sprite", | ||
2542 | "_name": "", | ||
2543 | "_objFlags": 0, | ||
2544 | "node": { | ||
2545 | "__id__": 53 | ||
2546 | }, | ||
2547 | "_enabled": true, | ||
2548 | "_materials": [ | ||
2549 | { | ||
2550 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" | ||
2551 | } | ||
2552 | ], | ||
2553 | "_srcBlendFactor": 770, | ||
2554 | "_dstBlendFactor": 771, | ||
2555 | "_spriteFrame": { | ||
2556 | "__uuid__": "8591bd12-ad3c-4863-aadd-d5539e525022" | ||
2557 | }, | ||
2558 | "_type": 0, | ||
2559 | "_sizeMode": 1, | ||
2560 | "_fillType": 0, | ||
2561 | "_fillCenter": { | ||
2562 | "__type__": "cc.Vec2", | ||
2563 | "x": 0, | ||
2564 | "y": 0 | ||
2565 | }, | ||
2566 | "_fillStart": 0, | ||
2567 | "_fillRange": 0, | ||
2568 | "_isTrimmedMode": true, | ||
2569 | "_atlas": null, | ||
2570 | "_id": "b2tmdrE5RFX5KTqXbHSt4R" | ||
2571 | }, | ||
2572 | { | ||
2573 | "__type__": "cc.Animation", | ||
2574 | "_name": "", | ||
2575 | "_objFlags": 0, | ||
2576 | "node": { | ||
2577 | "__id__": 53 | ||
2578 | }, | ||
2579 | "_enabled": true, | ||
2580 | "_defaultClip": null, | ||
2581 | "_clips": [], | ||
2582 | "playOnLoad": false, | ||
2583 | "_id": "15bhpfJhpHfrYeWh0BCNFp" | ||
2584 | }, | ||
2585 | { | ||
2586 | "__type__": "cc.Widget", | ||
2587 | "_name": "", | ||
2588 | "_objFlags": 0, | ||
2589 | "node": { | ||
2590 | "__id__": 51 | ||
2591 | }, | ||
2592 | "_enabled": true, | ||
2593 | "alignMode": 1, | ||
2594 | "_target": { | ||
2595 | "__id__": 2 | ||
2596 | }, | ||
2597 | "_alignFlags": 9, | ||
2598 | "_left": 64, | ||
2599 | "_right": 0, | ||
2600 | "_top": 56, | ||
2601 | "_bottom": 0, | ||
2602 | "_verticalCenter": 0, | ||
2603 | "_horizontalCenter": 0, | ||
2604 | "_isAbsLeft": true, | ||
2605 | "_isAbsRight": true, | ||
2606 | "_isAbsTop": true, | ||
2607 | "_isAbsBottom": true, | ||
2608 | "_isAbsHorizontalCenter": true, | ||
2609 | "_isAbsVerticalCenter": true, | ||
2610 | "_originalWidth": 0, | ||
2611 | "_originalHeight": 0, | ||
2612 | "_id": "15vecjt3VMaZhPSyH21dlK" | ||
2613 | }, | ||
2614 | { | ||
2027 | "__type__": "cc.Canvas", | 2615 | "__type__": "cc.Canvas", |
2028 | "_name": "", | 2616 | "_name": "", |
2029 | "_objFlags": 0, | 2617 | "_objFlags": 0, |
... | @@ -2041,7 +2629,7 @@ | ... | @@ -2041,7 +2629,7 @@ |
2041 | "_id": "8emyQJPypMIJg78+lr5Xuf" | 2629 | "_id": "8emyQJPypMIJg78+lr5Xuf" |
2042 | }, | 2630 | }, |
2043 | { | 2631 | { |
2044 | "__type__": "012d41BYM9FNKDSx7vUixmI", | 2632 | "__type__": "0da27FdLPdHxaVGhEtrqeLA", |
2045 | "_name": "", | 2633 | "_name": "", |
2046 | "_objFlags": 0, | 2634 | "_objFlags": 0, |
2047 | "node": { | 2635 | "node": { |
... | @@ -2063,12 +2651,6 @@ | ... | @@ -2063,12 +2651,6 @@ |
2063 | "_defaultBackScene": null, | 2651 | "_defaultBackScene": null, |
2064 | "_oFocusScaleFactorInfo": null, | 2652 | "_oFocusScaleFactorInfo": null, |
2065 | "_bShowExitBox": false, | 2653 | "_bShowExitBox": false, |
2066 | "PFB_CATEGORY": { | 2654 | "_id": "f51Vs9cQpPGLiJcXbjjIIy" |
2067 | "__uuid__": "9e0214ed-5de0-4667-a660-d4fa85a5de1d" | ||
2068 | }, | ||
2069 | "PFB_RECOMMEN_CATEGORY": { | ||
2070 | "__uuid__": "3555d4d3-0ee6-47bb-9039-3bb44aab89a2" | ||
2071 | }, | ||
2072 | "_id": "e7L+WJBsFHUK29Fs5R70+b" | ||
2073 | } | 2655 | } |
2074 | ] | 2656 | ] |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -192,7 +192,7 @@ | ... | @@ -192,7 +192,7 @@ |
192 | "array": [ | 192 | "array": [ |
193 | 0, | 193 | 0, |
194 | 0, | 194 | 0, |
195 | 249.4095916748047, | 195 | 250.28134155273438, |
196 | 0, | 196 | 0, |
197 | 0, | 197 | 0, |
198 | 0, | 198 | 0, |
... | @@ -3301,7 +3301,7 @@ | ... | @@ -3301,7 +3301,7 @@ |
3301 | "__id__": 75 | 3301 | "__id__": 75 |
3302 | } | 3302 | } |
3303 | ], | 3303 | ], |
3304 | "_active": false, | 3304 | "_active": true, |
3305 | "_components": [ | 3305 | "_components": [ |
3306 | { | 3306 | { |
3307 | "__id__": 78 | 3307 | "__id__": 78 |
... | @@ -3703,6 +3703,7 @@ | ... | @@ -3703,6 +3703,7 @@ |
3703 | "_aTouchContext": [], | 3703 | "_aTouchContext": [], |
3704 | "_defaultBackScene": null, | 3704 | "_defaultBackScene": null, |
3705 | "_oFocusScaleFactorInfo": null, | 3705 | "_oFocusScaleFactorInfo": null, |
3706 | "_bShowExitBox": false, | ||
3706 | "LastButton": { | 3707 | "LastButton": { |
3707 | "__id__": 17 | 3708 | "__id__": 17 |
3708 | }, | 3709 | }, | ... | ... |
... | @@ -37,6 +37,14 @@ cc.Class({ | ... | @@ -37,6 +37,14 @@ cc.Class({ |
37 | //----上下文及参数相关处理开始 | 37 | //----上下文及参数相关处理开始 |
38 | let aSceneContext = this._cApplication.getSceneContext(); | 38 | let aSceneContext = this._cApplication.getSceneContext(); |
39 | let aSceneParameter = this._cApplication.getSceneParameter(); | 39 | let aSceneParameter = this._cApplication.getSceneParameter(); |
40 | if (aSceneParameter.length) { | ||
41 | this._oSceneContext.name = aSceneParameter[aSceneParameter.length - 1].name; | ||
42 | this._oSceneContext.url = aSceneParameter[aSceneParameter.length - 1].url; | ||
43 | } else if (aSceneParameter) { | ||
44 | this._oSceneContext.name = aSceneParameter.name; | ||
45 | this._oSceneContext.url = aSceneParameter.url; | ||
46 | } | ||
47 | cc.find("SongNames/CurrentName", this.node).getComponent(cc.Label).string = this._oSceneContext.name || ""; | ||
40 | //参数 | 48 | //参数 |
41 | this._oDefaultBackASceneParameter = {}; | 49 | this._oDefaultBackASceneParameter = {}; |
42 | cc.log(aSceneParameter); | 50 | cc.log(aSceneParameter); |
... | @@ -231,7 +239,7 @@ cc.Class({ | ... | @@ -231,7 +239,7 @@ cc.Class({ |
231 | // } | 239 | // } |
232 | cc.log("向下滑动:" + fiFocusTarget.node.name); | 240 | cc.log("向下滑动:" + fiFocusTarget.node.name); |
233 | this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_DOWN, 1.0, oScrollParameter); | 241 | this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Common.MOVE_DIRECTION_DOWN, 1.0, oScrollParameter); |
234 | } | 242 | } |
235 | // if (this._fiCurrentFocus.node.name == "Play" && this._bShowProgress) { //暂时隐藏选集框,否则点击单曲循环会出现问题 | 243 | // if (this._fiCurrentFocus.node.name == "Play" && this._bShowProgress) { //暂时隐藏选集框,否则点击单曲循环会出现问题 |
236 | // this.showSelectGatherArea(); | 244 | // this.showSelectGatherArea(); |
237 | // return; | 245 | // return; |
... | @@ -521,7 +529,7 @@ cc.Class({ | ... | @@ -521,7 +529,7 @@ cc.Class({ |
521 | 529 | ||
522 | this._ComOperation.initPlayer(0, 0, Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, true, true); //测试 | 530 | this._ComOperation.initPlayer(0, 0, Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, true, true); //测试 |
523 | let options = {}; | 531 | let options = {}; |
524 | options.playurl = "http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4"; | 532 | options.playurl = this._oSceneContext.url; |
525 | this._ComOperation.setURL(options); //测试播放地址 | 533 | this._ComOperation.setURL(options); //测试播放地址 |
526 | } catch (error) { | 534 | } catch (error) { |
527 | if (cc.sys.isNative) { | 535 | if (cc.sys.isNative) { | ... | ... |
assets/Script/videoDetail.js
0 → 100644
1 | var Common = require('Common'); | ||
2 | var Network = require('Network'); | ||
3 | var TVFocus = require('TVFocus'); | ||
4 | var CCTVFocus = require('CCTVFocus'); | ||
5 | var FocusInfo = require('FocusInfo'); | ||
6 | var TVCanvas = require('TVCanvas'); | ||
7 | var TVScrollParameter = require('TVScrollParameter'); | ||
8 | var ListView = require('ListView'); | ||
9 | var BusinessParameter = require('BusinessParameter'); | ||
10 | var ListCell = require('ListCell'); | ||
11 | var Application = require('Application'); | ||
12 | |||
13 | cc.Class({ | ||
14 | extends: TVCanvas, | ||
15 | |||
16 | properties: { | ||
17 | |||
18 | }, | ||
19 | |||
20 | onLoad: function () { | ||
21 | this._super(); | ||
22 | this._oInit = {}; | ||
23 | this._bCollected = false; | ||
24 | this._oSceneContext.focusPath = "ButtonFullScreen"; | ||
25 | |||
26 | cc.find("FullDesc", this.node).zIndex = 100; | ||
27 | |||
28 | var nodeButtonFullScreen = cc.find("ButtonFullScreen", this.node); | ||
29 | var nodeButtonCollect = cc.find("ButtonCollect", this.node); | ||
30 | nodeButtonFullScreen.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, 0, nodeButtonFullScreen.width, nodeButtonFullScreen.height)); | ||
31 | nodeButtonCollect.getComponent(cc.Sprite).spriteFrame.setRect(cc.rect(0, 0, nodeButtonCollect.width, nodeButtonCollect.height)); | ||
32 | |||
33 | //播放器相关 | ||
34 | let nodePlayCtrl = cc.find("PlayCtrl", this.node); | ||
35 | this._ComOperation = nodePlayCtrl.getComponent("OperateVideoPlay"); | ||
36 | this._ComOperation.init(this, null); | ||
37 | let fiPlayCtrl = nodePlayCtrl.addComponent(FocusInfo); | ||
38 | fiPlayCtrl.init('{"click": [{"action": "PlaySongInFullScreen"}]}', true); | ||
39 | this._aFocusTargets[0]["PlayCtrl"] = nodePlayCtrl; | ||
40 | |||
41 | if (this._cApplication.getBackStatus()) { | ||
42 | //恢复上下文 包括 | ||
43 | //光标位置 focusPath | ||
44 | let oSceneContext = this._cApplication.popSceneContext(); | ||
45 | if (oSceneContext) { | ||
46 | this._oSceneContext = oSceneContext; | ||
47 | cc.log(this._oSceneContext); | ||
48 | } | ||
49 | this._cApplication.setBackStatus(false); | ||
50 | } | ||
51 | |||
52 | this.checkPfbReadyAndInitPage(); | ||
53 | this.checkDataReadyAndInitFocus(); | ||
54 | }, | ||
55 | |||
56 | //获取节目详情 | ||
57 | checkPfbReadyAndInitPage: function () { | ||
58 | var self = this; | ||
59 | Network.ajax("GET", Common.TOPDRAW_API_SERVER + "videoDetail/game_test_detail_list_by_ids.json", null, null, | ||
60 | function (strResponse) { | ||
61 | try { | ||
62 | var oJSONResult = JSON.parse(strResponse); | ||
63 | // var oJSONResult = this.test_detail_json.json; | ||
64 | this._oInit = oJSONResult.resultSet[0]; | ||
65 | if (oJSONResult.businessCode == 'success') { | ||
66 | cc.find("Desc/Title", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].name;//标题 | ||
67 | cc.find("Desc/Title", this.node).getComponent(cc.Label)._forceUpdateRenderData(); | ||
68 | //==========放到大屏显示问题 | ||
69 | cc.find("FullDesc/Title", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].name; | ||
70 | cc.find("FullDesc/Desc", this.node).getComponent(cc.Label).string = oJSONResult.resultSet[0].description; | ||
71 | //==========end | ||
72 | //这里给描述做拦截,防止字数多超出栏目 | ||
73 | var description = oJSONResult.resultSet[0].description; | ||
74 | if (description.length > 80) { | ||
75 | description = description.substring(0, 80) + "..."; | ||
76 | } | ||
77 | cc.find("Desc/LabelDesc", this.node).getComponent(cc.Label).string = description; | ||
78 | |||
79 | this._strEpisodeImg = oJSONResult.resultSet[0].images.list[0].fileUrl; | ||
80 | cc.log("图片地址:" + (Common.TOPDRAW_IMAGE_SERVER + oJSONResult.resultSet[0].images.list[0].fileUrl)); | ||
81 | // Network.loadImageInNativeRuntime( | ||
82 | // Common.TOPDRAW_IMAGE_SERVER + oJSONResult.resultSet[0].images.list[0].fileUrl, null, | ||
83 | // function (texture, iRequestId) { | ||
84 | // self.node.getChildByName("Pic").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture); | ||
85 | // }, function () { }, this | ||
86 | // ); | ||
87 | |||
88 | // this.getTypeList(); | ||
89 | |||
90 | this.getPlayURLAndPlay(); | ||
91 | } else { | ||
92 | cc.log("Business Error:Get checkPfbReadyAndInitPage..." + oJSONResult.description); | ||
93 | } | ||
94 | } catch (error) { | ||
95 | cc.log("Business Exception:Get checkPfbReadyAndInitPage..." + error); | ||
96 | } | ||
97 | }, | ||
98 | function (error) { | ||
99 | cc.log("Business Exception:Get checkPfbReadyAndInitPage..." + error); | ||
100 | }, this, "uuid"); | ||
101 | }, | ||
102 | |||
103 | getPlayURLAndPlay: function () { | ||
104 | try { | ||
105 | this._ComOperation.initPlayer(64, 56, 564, 317, true, true); //这里采用左右边距对应android坐标 fix jerry | ||
106 | // this._ComOperation.initPlayer(0, 0, Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, true, true); //测试 | ||
107 | let options = {}; | ||
108 | options.playurl = this._oInit.url; | ||
109 | this._ComOperation.setURL(options); //测试播放地址 | ||
110 | } catch (error) { | ||
111 | if (cc.sys.isNative) { | ||
112 | jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "logInSceneI", "(Ljava/lang/String;)V", "getPlayURLAndPlay Error in SongLibraryPlayer==>" + error); | ||
113 | } | ||
114 | } | ||
115 | }, | ||
116 | |||
117 | checkDataReadyAndInitFocus: function () { | ||
118 | if (!this._bIsFocusInit) { | ||
119 | this.scheduleOnce(() => { //指定0让回调函数在下一帧立即执行 | ||
120 | this.initFocus(); | ||
121 | }, 0); | ||
122 | this._bIsFocusInit = true; | ||
123 | } | ||
124 | }, | ||
125 | |||
126 | //初始化焦点框 | ||
127 | initFocus: function () { | ||
128 | this._aFocusTargets[1] = []; | ||
129 | var nodeButtonFullScreen = cc.find("ButtonFullScreen", this.node); | ||
130 | var nodeButtonCollect = cc.find("ButtonCollect", this.node); | ||
131 | |||
132 | let fiButtonFullScreen = nodeButtonFullScreen.addComponent(FocusInfo); // | ||
133 | fiButtonFullScreen.init('', true, null, null, 1.0); | ||
134 | this._aFocusTargets[0]['node_button_full_screen'] = nodeButtonFullScreen; | ||
135 | |||
136 | let fiButtonCollect = nodeButtonCollect.addComponent(FocusInfo); // | ||
137 | fiButtonCollect.init('', true, null, null, 1.0); | ||
138 | this._aFocusTargets[0]['node_button_collect'] = nodeButtonCollect; | ||
139 | |||
140 | let fiDesc = cc.find('Desc/LabelDesc', this.node).addComponent(FocusInfo); // | ||
141 | fiDesc.init('', true, null, null, 1.0); | ||
142 | this._aFocusTargets[0]['desc'] = cc.find('Desc/LabelDesc', this.node); | ||
143 | |||
144 | // let fiBanner = cc.find('ButtonVip', this.node).addComponent(FocusInfo); // | ||
145 | // fiBanner.init('', true, null, null, 1.06); | ||
146 | // this._aFocusTargets[0]['button_vip'] = cc.find('ButtonVip', this.node); | ||
147 | |||
148 | var nodeInitFocus = cc.find('ButtonFullScreen', this.node); //强制写死,不然会闪屏,找不到ButtonOpen | ||
149 | // cc.log("初始化 " + nodeInitFocus.name); | ||
150 | var nodeFocus = new cc.Node('nodeFocus'); | ||
151 | this.node.addChild(nodeFocus, 10); | ||
152 | this._cFocus = this.node.getChildByName('nodeFocus').addComponent(CCTVFocus); | ||
153 | this._cFocus.init('focusContainer', this, | ||
154 | nodeInitFocus.getComponent(FocusInfo), | ||
155 | Common.SCREEN_WIDTH, Common.SCREEN_HEIGHT, 10, 6, 1.1, true); | ||
156 | |||
157 | if (0 == nodeInitFocus.name.indexOf('Button')) { | ||
158 | this._cFocus.hide(); | ||
159 | cc.loader.loadRes("VideoDetail/icon_full_screen", cc.Texture2D, function (err, texture) { | ||
160 | nodeInitFocus.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, nodeInitFocus.height, nodeInitFocus.width, nodeInitFocus.height)); | ||
161 | }); | ||
162 | } | ||
163 | |||
164 | }, | ||
165 | |||
166 | keyDownDirection: function (Direct) { | ||
167 | var fiFocusTarget = null; | ||
168 | var fiCurrentFocus = this._fiCurrentFocus; | ||
169 | var oScrollParameter = null; | ||
170 | let aCheckResult; | ||
171 | fiFocusTarget = this._cFocus.findTarget(fiCurrentFocus, this._aFocusTargets, this._iSceneStatus, Direct); | ||
172 | if (!fiFocusTarget) { return; } | ||
173 | 0 == fiFocusTarget.node.name.indexOf('Button') ? this._cFocus.hide() : this._cFocus.show(); | ||
174 | aCheckResult = this.checkFocusTarget(fiFocusTarget, oScrollParameter); | ||
175 | fiFocusTarget = aCheckResult[0]; | ||
176 | oScrollParameter = aCheckResult[1]; | ||
177 | this._cFocus.flyFocus(this._fiCurrentFocus, fiFocusTarget, Direct, null, oScrollParameter); | ||
178 | }, | ||
179 | |||
180 | checkFocusTarget: function (fiFocusTarget, oScrollParameter) { | ||
181 | if (fiFocusTarget && 0 == fiFocusTarget.node.name.indexOf("TypeListCell")) { | ||
182 | if (fiFocusTarget.node.x + this._nodeTypeList.x >= this._nodeTypeListWrapper.width) { | ||
183 | oScrollParameter = this._nodeTypeList.getComponent(TVScrollParameter); | ||
184 | oScrollParameter.setHasRelation(true); | ||
185 | oScrollParameter.setStep((fiFocusTarget.node.x + fiFocusTarget.node.width / 2 + this._nodeTypeList.x) - this._nodeTypeListWrapper.width + 50);//打补丁:20,解决放大时Rect遮挡问题 | ||
186 | oScrollParameter.setTargetPosition(this._nodeTypeList.x - oScrollParameter.getStep()); | ||
187 | this._oSceneContext.nodeTypeListX = this._nodeTypeList.x - oScrollParameter.getStep(); | ||
188 | } | ||
189 | if (fiFocusTarget.node.x + this._nodeTypeList.x < 0) { | ||
190 | oScrollParameter = this._nodeTypeList.getComponent(TVScrollParameter); | ||
191 | oScrollParameter.setHasRelation(true); | ||
192 | oScrollParameter.setStep(-fiFocusTarget.node.x + fiFocusTarget.node.width / 2 - this._nodeTypeList.x + 20);//打补丁:20,解决放大时Rect遮挡问题 | ||
193 | oScrollParameter.setTargetPosition(this._nodeTypeList.x + oScrollParameter.getStep()); | ||
194 | this._oSceneContext.nodeTypeListX = this._nodeTypeList.x + oScrollParameter.getStep(); | ||
195 | } | ||
196 | } | ||
197 | |||
198 | return [fiFocusTarget, oScrollParameter]; | ||
199 | }, | ||
200 | |||
201 | onKeyDown: function (event) { | ||
202 | this._super(event); | ||
203 | var self = this; | ||
204 | var fiFocusTarget = null; | ||
205 | var fiCurrentFocus = this._fiCurrentFocus; | ||
206 | cc.find("FullDesc", this.node).active = false; | ||
207 | switch (event.keyCode) { | ||
208 | case cc.macro.KEY.up: | ||
209 | case Common.ANDROID_KEY.up: | ||
210 | this.keyDownDirection(Common.MOVE_DIRECTION_UP); | ||
211 | break; | ||
212 | case cc.macro.KEY.right: | ||
213 | case Common.ANDROID_KEY.right: | ||
214 | this.keyDownDirection(Common.MOVE_DIRECTION_RIGHT); | ||
215 | break; | ||
216 | case cc.macro.KEY.down: | ||
217 | case Common.ANDROID_KEY.down: | ||
218 | this.keyDownDirection(Common.MOVE_DIRECTION_DOWN); | ||
219 | break; | ||
220 | case cc.macro.KEY.left: | ||
221 | case Common.ANDROID_KEY.left: | ||
222 | this.keyDownDirection(Common.MOVE_DIRECTION_LEFT); | ||
223 | break; | ||
224 | case cc.macro.KEY.enter: | ||
225 | case cc.macro.KEY.space: | ||
226 | case Common.ANDROID_KEY.enter: | ||
227 | if (0 == this._fiCurrentFocus.node.name.indexOf('Collect')) { | ||
228 | this._bCollected = !this._bCollected; | ||
229 | if (this._bCollected) { | ||
230 | this.commonSimpleTip("恭喜您!收藏成功!", 3); | ||
231 | } | ||
232 | let icon = this._bCollected ? "GameDetail/be_collected" : "GameDetail/not_collected"; | ||
233 | cc.loader.loadRes(icon, cc.Texture2D, function (err, texture) { | ||
234 | self._fiCurrentFocus.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 56, self._fiCurrentFocus.node.width, 56)); | ||
235 | }); | ||
236 | } else if (0 == this._fiCurrentFocus.node.name.indexOf('LabelDesc')) { | ||
237 | cc.find("FullDesc", this.node).active = true; | ||
238 | } else if (0 == this._fiCurrentFocus.node.name.indexOf('ButtonOpen') || 0 == this._fiCurrentFocus.node.name.indexOf('Pic')) { | ||
239 | // this.commonSimpleTip("是否拿到数据: " + this._bInitExistApk); | ||
240 | if (!this._bInitExistApk) { //还未拿到判断数据 | ||
241 | return; | ||
242 | } | ||
243 | if (this._bIsExistApk == "true") { | ||
244 | if (this._oSceneContext._downloadUrl && this._oSceneContext._downloadUrl != "undefined") { //如果有下载地址就启动奥比游戏 | ||
245 | 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, ""); | ||
246 | } else { | ||
247 | //这里应该转圈圈等待加载游戏 | ||
248 | // cc.find("LoadingLabel", this.node).opacity = 255; | ||
249 | // cc.find("Loading/LoadingIcon", this.node).opacity = 255; | ||
250 | // cc.find("Loading/LoadingIcon", this.node).getComponent(cc.Animation).play(); | ||
251 | jsb.reflection.callStaticMethod("com/topdraw/melody/TopdrawSDKWrapper", "startGame", "(Ljava/lang/String;Ljava/lang/String;)V", this._oSceneContext._packageName, ""); | ||
252 | } | ||
253 | } else { | ||
254 | this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK); | ||
255 | } | ||
256 | return; | ||
257 | } else { | ||
258 | this.doCurrentFocusTVLinkAction(Common.TV_LINK_ACTION_CLICK); | ||
259 | } | ||
260 | break; | ||
261 | case cc.macro.KEY.backspace: | ||
262 | case Common.ANDROID_KEY.back: | ||
263 | this.backAScene(); | ||
264 | break; | ||
265 | } | ||
266 | }, | ||
267 | |||
268 | doCurrentFocusTVLinkAction: function (strAction) { | ||
269 | let strTVLink = this._fiCurrentFocus.getTVLink(); | ||
270 | cc.log("tvlink===============" + strTVLink); | ||
271 | try { | ||
272 | let oTVLink = JSON.parse(strTVLink); | ||
273 | let aOperationList = oTVLink.click; | ||
274 | for (let i = 0; i < aOperationList.length; i++) { | ||
275 | switch (aOperationList[i].action) { | ||
276 | case "changeLayout": | ||
277 | default: | ||
278 | this.doTVLinkAction(aOperationList[i]); | ||
279 | break; | ||
280 | } | ||
281 | } | ||
282 | } catch (error) { | ||
283 | cc.log("runTVLinkAction Exception..." + error); | ||
284 | } | ||
285 | }, | ||
286 | |||
287 | onBeforeFocusChange: function (event) { | ||
288 | |||
289 | let fiFrom = event.detail.from; | ||
290 | let fiTo = event.detail.to; | ||
291 | |||
292 | if (0 == fiFrom.node.getName().indexOf('ButtonFullScreen')) { | ||
293 | cc.loader.loadRes("VideoDetail/icon_full_screen", cc.Texture2D, function (err, texture) { | ||
294 | fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height)); | ||
295 | }); | ||
296 | } | ||
297 | |||
298 | if (0 == fiFrom.node.getName().indexOf('ButtonCollect')) { | ||
299 | cc.loader.loadRes("VideoDetail/icon_collect", cc.Texture2D, function (err, texture) { | ||
300 | fiFrom.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, 0, fiFrom.node.width, fiFrom.node.height)); | ||
301 | }); | ||
302 | } | ||
303 | |||
304 | }, | ||
305 | |||
306 | onAfterFocusChange: function (event) { | ||
307 | var self = this; | ||
308 | let fiTo = event.detail.to; | ||
309 | let fiFrom = event.detail.from; | ||
310 | |||
311 | if (0 == fiTo.node.getName().indexOf('ButtonFullScreen')) { | ||
312 | cc.loader.loadRes("VideoDetail/icon_full_screen", cc.Texture2D, function (err, texture) { | ||
313 | fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height)); | ||
314 | }); | ||
315 | } | ||
316 | |||
317 | if (0 == fiTo.node.getName().indexOf('ButtonCollect')) { | ||
318 | cc.loader.loadRes("VideoDetail/icon_collect", cc.Texture2D, function (err, texture) { | ||
319 | fiTo.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture, cc.rect(0, fiTo.node.height, fiTo.node.width, fiTo.node.height)); | ||
320 | }); | ||
321 | } | ||
322 | |||
323 | if (0 == fiTo.node.getName().indexOf('TypeListCell')) { | ||
324 | let iIndex = fiTo.node.name.replace("TypeListCell", ''); | ||
325 | if (this._oInit.aListImage[iIndex]) { | ||
326 | Network.loadImageInNativeRuntime(Common.TOPDRAW_IMAGE_SERVER + this._oInit.aListImage[iIndex].fileUrl, null, | ||
327 | function (texture) { | ||
328 | cc.find("FullView", self.node).getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture); | ||
329 | }, function () { }, this | ||
330 | ); | ||
331 | } | ||
332 | } | ||
333 | }, | ||
334 | |||
335 | doCurrentFocusTVLinkAction: function (strAction) { | ||
336 | try { | ||
337 | let strTVLink = this._fiCurrentFocus.getTVLink(); | ||
338 | var joTVLink = null; | ||
339 | try { | ||
340 | joTVLink = JSON.parse(strTVLink); | ||
341 | let jaOperationList = joTVLink.click; | ||
342 | //上下文 | ||
343 | let compApplication = cc.find('application').getComponent(Application); | ||
344 | let aSceneContext = compApplication.getSceneContext(); | ||
345 | let aSceneParameter = compApplication.getSceneParameter(); | ||
346 | for (let i = 0; i < jaOperationList.length; i++) { | ||
347 | let strMediaId; | ||
348 | switch (jaOperationList[i].action) { | ||
349 | case "PlaySongInFullScreen": | ||
350 | aSceneParameter.push({ | ||
351 | "name": this._oInit.name, | ||
352 | "url": this._oInit.url, | ||
353 | "backSceneName": cc.director.getScene().name, | ||
354 | }); | ||
355 | // this._oSceneContext.focusPath = Common.getNodePath(this._fiCurrentFocus.node); | ||
356 | // aSceneContext.push(this._oSceneContext); | ||
357 | // this._ComOperation && this._ComOperation.end(); | ||
358 | // Common.g_strCurrentSceneName = 'sceneKTVPlayer'; | ||
359 | cc.director.loadScene('sceneVideoPlayer'); | ||
360 | break; | ||
361 | default: | ||
362 | this.doTVLinkAction(jaOperationList[i]); | ||
363 | break; | ||
364 | } | ||
365 | } | ||
366 | } catch (err) { | ||
367 | cc.log("runTVLinkAction Exception: " + err); | ||
368 | } | ||
369 | } catch (error) { | ||
370 | if (cc.sys.isNative) { | ||
371 | jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "logInSceneI", "(Ljava/lang/String;)V", "doCurrentFocusTVLinkAction Error in SongLibraryPlayer==>" + error); | ||
372 | } | ||
373 | } | ||
374 | |||
375 | }, | ||
376 | }); |
... | @@ -672,9 +672,9 @@ | ... | @@ -672,9 +672,9 @@ |
672 | "_opacity": 255, | 672 | "_opacity": 255, |
673 | "_color": { | 673 | "_color": { |
674 | "__type__": "cc.Color", | 674 | "__type__": "cc.Color", |
675 | "r": 255, | 675 | "r": 180, |
676 | "g": 255, | 676 | "g": 184, |
677 | "b": 255, | 677 | "b": 191, |
678 | "a": 255 | 678 | "a": 255 |
679 | }, | 679 | }, |
680 | "_contentSize": { | 680 | "_contentSize": { | ... | ... |
... | @@ -3,12 +3,11 @@ | ... | @@ -3,12 +3,11 @@ |
3 | "count": 1, | 3 | "count": 1, |
4 | "resultSet": [ | 4 | "resultSet": [ |
5 | { | 5 | { |
6 | "name": "魔法沙拉", | 6 | "name": "专注力 (21个亲子游戏)", |
7 | "versions": "1.0.1", | 7 | "episode_number": 15, |
8 | "size": "99.73M", | 8 | "current_episode_number": 15, |
9 | "updateTime": "2019-12-25", | ||
10 | "tag":"遥控器,游戏手柄,摄像头", | ||
11 | "description": "简介:作为人气作品《魔法沙拉》的全新续作,《魔法沙拉2》拥有3个全3个全新的玩法模式:爽快到炸裂的竞速模式,诙谐幽默的娱乐模式3个全以及紧张刺激的挑战模式,都将让您感受到完全不一样......", | 9 | "description": "简介:作为人气作品《魔法沙拉》的全新续作,《魔法沙拉2》拥有3个全3个全新的玩法模式:爽快到炸裂的竞速模式,诙谐幽默的娱乐模式3个全以及紧张刺激的挑战模式,都将让您感受到完全不一样......", |
10 | "url": "http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4", | ||
12 | "images": { | 11 | "images": { |
13 | "list": [ | 12 | "list": [ |
14 | { | 13 | { | ... | ... |
... | @@ -379,25 +379,25 @@ | ... | @@ -379,25 +379,25 @@ |
379 | { | 379 | { |
380 | "name": "Subject1", | 380 | "name": "Subject1", |
381 | "imageURL": "upload/image/main/block7_1.png", | 381 | "imageURL": "upload/image/main/block7_1.png", |
382 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}", | 382 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoDetail\"}}]}", |
383 | "code": "promotionItem_e432ac2d-c1f3-4d44-a42b-7000971affa1" | 383 | "code": "promotionItem_e432ac2d-c1f3-4d44-a42b-7000971affa1" |
384 | }, | 384 | }, |
385 | { | 385 | { |
386 | "name": "Subject2", | 386 | "name": "Subject2", |
387 | "imageURL": "upload/image/main/block7_2.png", | 387 | "imageURL": "upload/image/main/block7_2.png", |
388 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}", | 388 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\",\"name\":\"TED\",\"url\":\"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4\"}}]}", |
389 | "code": "promotionItem_f90b7ff3-1f36-4019-9e77-cef871902343" | 389 | "code": "promotionItem_f90b7ff3-1f36-4019-9e77-cef871902343" |
390 | }, | 390 | }, |
391 | { | 391 | { |
392 | "name": "Subject3", | 392 | "name": "Subject3", |
393 | "imageURL": "upload/image/main/block7_3.png", | 393 | "imageURL": "upload/image/main/block7_3.png", |
394 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}", | 394 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\",\"name\":\"TED\",\"url\":\"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4\"}}]}", |
395 | "code": "promotionItem_e29b33e4-8954-4ef9-a6fc-0d844c909c67" | 395 | "code": "promotionItem_e29b33e4-8954-4ef9-a6fc-0d844c909c67" |
396 | }, | 396 | }, |
397 | { | 397 | { |
398 | "name": "Subject4", | 398 | "name": "Subject4", |
399 | "imageURL": "upload/image/main/block7_4.png", | 399 | "imageURL": "upload/image/main/block7_4.png", |
400 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\"}}]}", | 400 | "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneVideoPlayer\",\"name\":\"TED\",\"url\":\"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4\"}}]}", |
401 | "code": "promotionItem_57aea4b3-7716-4FGRACWGVRTee32" | 401 | "code": "promotionItem_57aea4b3-7716-4FGRACWGVRTee32" |
402 | } | 402 | } |
403 | ] | 403 | ] | ... | ... |
-
Please register or sign in to post a comment