1
-
2
1
function renderVideos ( ) {
3
- // * Camera gets in the back of video
2
+
3
+ if ( resultsReady ) {
4
+ // DoTextHiperpoesia();
5
+ // console.log(rnnSub);
6
+
7
+ //cuadradito para acentuar subtitulos
8
+ fill ( 0 , 95 ) ;
9
+ rect ( 0 , windowHeight - 160 , windowWidth , 200 ) ;
10
+
11
+ DoText ( ) ;
12
+ // talk();
13
+
14
+
15
+ if ( writingOutput ) {
16
+ writer = createWriter ( month ( ) + "/" + day ( ) + "/" + year ( ) + "_" + 'latinPage' + "_" + ".txt" ) ; // texto en donde escribir
17
+ }
18
+
19
+ renderCamera ( ) ; // FUNCIONA PERO SIN TEXTO
20
+
21
+
22
+ }
23
+
24
+
25
+ // // * Camera gets in the back of video
4
26
if ( cameraVideo ) { //under video
5
27
// console.log('camera VIdeo');
6
- renderCamera ( )
28
+ // renderCamera(); // no tiene texto
7
29
}
30
+
8
31
if ( playSimpleVideo ) {
9
32
// console.log('playing simple video');
10
33
image ( videos [ 0 ] . play ( ) , 0 , 0 , width , height ) ; //size and position of video // COMENTED FOR PIXELS // CHECK ALL THIS
@@ -36,9 +59,23 @@ function renderVideos() {
36
59
if ( randomFrameEffect ) { // plays pixel + random
37
60
pixelEffect ( ) ;
38
61
randomFrame ( ) ;
62
+
63
+ // * Camera gets in the back of video
64
+ // if (cameraVideo) { //under video
65
+ // // console.log('camera VIdeo');
66
+ // renderCamera();
67
+ // }
68
+
69
+
39
70
} else {
40
71
pixelEffect ( ) ;
41
72
//camera video positioned here is also behind video
73
+
74
+ // // * Camera gets in the back of video
75
+ // if (cameraVideo) { //under video
76
+ // // console.log('camera VIdeo');
77
+ // renderCamera();
78
+ // }
42
79
}
43
80
} else {
44
81
if ( randomFrameEffect ) {
@@ -230,5 +267,4 @@ function videoOver() {
230
267
videos [ whichVideo ] . pause ( ) ; // esto estaba comentado
231
268
232
269
stage = 1 ;
233
- }
234
-
270
+ }
0 commit comments