scratch – Diff between revs 123 and 136
?pathlinks?
Rev 123 | Rev 136 | |||
---|---|---|---|---|
Line 103... | Line 103... | |||
103 | case 'GIF': |
103 | case 'GIF': |
|
104 | list($width, $height) = getimagesize($userPath); |
104 | list($width, $height) = getimagesize($userPath); |
|
105 | echo <<<END |
105 | echo <<<END |
|
106 | <html> |
106 | <html> |
|
107 | <head> |
107 | <head> |
|
- | 108 | <meta property="fb:app_id" content="144991146129146"> |
||
108 | <meta property="og:site_name" content="Scratch Copy"> |
109 | <meta property="og:site_name" content="Scratch Copy"> |
|
- | 110 | <meta property="og:description" content="Scratch Copy"> |
||
109 | <meta property="og:url" content="$BASIC_URL"> |
111 | <meta property="og:url" content="$BASIC_URL"> |
|
110 | <meta property="og:title" content="Scratch Copy"> |
112 | <meta property="og:title" content="Scratch Copy"> |
|
111 | <meta property="og:type" content="video.other"> |
113 | <meta property="og:type" content="video.other"> |
|
112 | <meta property="og:image" content="$BASIC_URL"> |
114 | <meta property="og:image" content="$BASIC_URL"> |
|
113 | <meta property="og:image:width" content="$width"> |
115 | <meta property="og:image:width" content="$width"> |
|
Line 169... | Line 171... | |||
169 | $dimension = $ffprobe |
171 | $dimension = $ffprobe |
|
170 | ->streams($CANON_URL) |
172 | ->streams($CANON_URL) |
|
171 | ->videos() |
173 | ->videos() |
|
172 | ->first() |
174 | ->first() |
|
173 | ->getDimensions(); |
175 | ->getDimensions(); |
|
- | 176 | $videoDuration = round( |
||
- | 177 | $ffprobe |
||
- | 178 | ->streams($CANON_URL) |
||
- | 179 | ->videos() |
||
- | 180 | ->first() |
||
- | 181 | ->get('duration'), |
||
- | 182 | 0, |
||
- | 183 | PHP_ROUND_HALF_UP |
||
- | 184 | ); |
||
Line 174... | Line 185... | |||
174 | |
185 | |
|
175 | $videoWidth = $dimension->getWidth(); |
186 | $videoWidth = $dimension->getWidth(); |
|
Line 176... | Line 187... | |||
176 | $videoHeight = $dimension->getHeight(); |
187 | $videoHeight = $dimension->getHeight(); |
|
Line 181... | Line 192... | |||
181 | $FLOW_PLAYER = $URL_PATH.'flowplayer/flowplayer.swf'; |
192 | $FLOW_PLAYER = $URL_PATH.'flowplayer/flowplayer.swf'; |
|
Line 182... | Line 193... | |||
182 | |
193 | |
|
183 | echo <<<END |
194 | echo <<<END |
|
184 | <html> |
195 | <html> |
|
- | 196 | <head> |
||
185 | <head> |
197 | <meta property="fb:app_id" content="144991146129146"> |
|
186 | <meta property="og:type" content="video.other"> |
198 | <meta property="og:type" content="video.other"> |
|
187 | <meta property="og:title" content="Scratch Copy"> |
199 | <meta property="og:title" content="Scratch Copy"> |
|
188 | <meta property="og:site_name" content="Scratch Copy"> |
- | ||
- | 200 | <meta property="og:site_name" content="Scratch Copy"> |
||
189 | |
201 | <meta property="og:description" content="Scratch Copy"> |
|
190 | <meta property="og:url" content="$GRAPH_URL"> |
- | ||
191 | |
202 | <meta property="og:url" content="$GRAPH_URL"> |
|
192 | <meta property="og:image" content="$PREVIEW_IMAGE_URL"> |
203 | <meta property="og:image" content="$PREVIEW_IMAGE_URL"> |
|
193 | <meta property="og:video" content='$FLOW_PLAYER_VIDEO_URL'> |
204 | <meta property="og:video" content='$FLOW_PLAYER_VIDEO_URL'> |
|
194 | <meta property="og:video:secure_url" content='$FLOW_PLAYER_VIDEO_URL'> |
205 | <meta property="og:video:secure_url" content='$FLOW_PLAYER_VIDEO_URL'> |
|
- | 206 | <meta property="og:video:type" content="application/x-shockwave-flash"> |
||
195 | <meta property="og:video:type" content="application/x-shockwave-flash"> |
207 | <meta property="video:duration" content="$videoDuration"> |
|
196 | <meta property="og:video:width" content="$videoWidth"> |
208 | <meta property="og:video:width" content="$videoWidth"> |
|
197 | <meta property="og:video:height" content="$videoHeight"> |
- | ||
198 | |
209 | <meta property="og:video:height" content="$videoHeight"> |
|
199 | <meta property="og:image:width" content="$imageWidth"> |
210 | <meta property="og:image:width" content="$imageWidth"> |
|
200 | <meta property="og:image:height" content="$imageHeight"> |
211 | <meta property="og:image:height" content="$imageHeight"> |
|
Line 201... | Line 212... | |||
201 | </head> |
212 | </head> |