scratch – Diff between revs 110 and 111

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 110 Rev 111
Line 84... Line 84...
84 <meta property="og:image:height" content="$height"> 84 <meta property="og:image:height" content="$height">
85 </head> 85 </head>
Line 86... Line 86...
86   86  
87 <body> 87 <body>
88 <p> 88 <p>
89 <img src="$URL"> 89 <img src="$BASIC_URL">
90 </p> 90 </p>
Line 91... Line 91...
91 </body> 91 </body>
92   92  
Line 119... Line 119...
119 ); 119 );
Line 120... Line 120...
120 120
121 ### Extract thumbnail. 121 ### Extract thumbnail.
122 $ffmpeg = FFMpeg\FFMpeg::create(); 122 $ffmpeg = FFMpeg\FFMpeg::create();
-   123 $video = $ffmpeg->open($CANON_URL);
123 $video = $ffmpeg->open($CANON_URL); 124 $frame = $video->frame(
-   125 FFMpeg\Coordinate\TimeCode::fromSeconds(
-   126 $config['VIDEO_PREVIEW_IMAGE_FRAME_SECOND']
-   127 )
124 $frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(42)); 128 );
-   129 $frame->save($userPath.'.'.'jpg');
-   130
-   131 $PREVIEW_IMAGE_URL = $config['URL_PATH'].$file;
-   132 $FLOW_PLAYER_VIDEO_URL = $config['URL_PATH'].'flowplayer/flowplayer.swf?config={"clip":"'.$BASIC_URL.'"}';
-   133 $FLOW_PLAYER = $config['URL_PATH'].'flowplayer/flowplayer.swf';
125 $frame->save($userPath.'.'.'jpg'); 134
126 echo <<<END 135 echo <<<END
127 <html> 136 <html>
128 <head> 137 <head>
129 <meta property="og:type" content="video.other"> 138 <meta property="og:type" content="video.other">
130 <meta property="og:title" content="Scratch Copy"> 139 <meta property="og:title" content="Scratch Copy">
Line 131... Line 140...
131 <meta property="og:site_name" content="Scratch Copy"> 140 <meta property="og:site_name" content="Scratch Copy">
Line 132... Line 141...
132 141
133 <meta property="og:url" content="$GRAPH_URL"> 142 <meta property="og:url" content="$GRAPH_URL">
134 143
135 <meta property="og:image" content="https://cpy.ro/$file"> 144 <meta property="og:image" content="$PREVIEW_IMAGE_URL">
136 <meta property="og:video" content='http://cpy.ro/flowplayer/flowplayer.swf?config={"clip":"$BASIC_URL"}'> 145 <meta property="og:video" content='$FLOW_PLAYER_VIDEO_URL'>
137 <meta property="og:video:secure_url" content='https://cpy.ro/flowplayer/flowplayer.swf?config={"clip":"$BASIC_URL"}'> 146 <meta property="og:video:secure_url" content='$FLOW_PLAYER_VIDEO_URL'>
138 <meta property="og:video:type" content="application/x-shockwave-flash"> 147 <meta property="og:video:type" content="application/x-shockwave-flash">
Line 139... Line 148...
139 <meta property="og:video:width" content="425"> 148 <meta property="og:video:width" content="425">
140 <meta property="og:video:height" content="300"> 149 <meta property="og:video:height" content="300">
141 </head> 150 </head>
142   151  
143 <body> 152 <body>
Line 144... Line 153...
144 <p> 153 <p>
145 <object width="425" height="300" id="Scratch Copy" name="Scratch Copy" data="https://cpy.ro/flowplayer/flowplayer.swf" type="application/x-shockwave-flash"><param name="movie" value="https://cpy.ro/flowplayer/flowplayer.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value='config={"clip":"$BASIC_URL"}' /></object> 154 <object width="425" height="300" id="Scratch Copy" name="Scratch Copy" data="$FLOW_PLAYER" type="application/x-shockwave-flash"><param name="movie" value="$FLOW_PLAYER" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value='config={"clip":"$BASIC_URL"}' /></object>