scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 111  →  ?path2? @ 112
/graph.php
@@ -127,7 +127,20 @@
)
);
$frame->save($userPath.'.'.'jpg');
list($imageWidth, $imageHeight) = getimagesize($userPath.'.'.'jpg');
### Probe video for width and height.
$ffprobe = FFMpeg\FFProbe::create();
$dimension = $ffprobe
->streams($CANON_URL)
->videos()
->first()
->getDimensions();
$videoWidth = $dimension->getWidth();
$videoHeight = $dimension->getHeight();
### Build paths.
$PREVIEW_IMAGE_URL = $config['URL_PATH'].$file;
$FLOW_PLAYER_VIDEO_URL = $config['URL_PATH'].'flowplayer/flowplayer.swf?config={"clip":"'.$BASIC_URL.'"}';
$FLOW_PLAYER = $config['URL_PATH'].'flowplayer/flowplayer.swf';
@@ -145,13 +158,16 @@
<meta property="og:video" content='$FLOW_PLAYER_VIDEO_URL'>
<meta property="og:video:secure_url" content='$FLOW_PLAYER_VIDEO_URL'>
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="425">
<meta property="og:video:height" content="300">
<meta property="og:video:width" content="$videoWidth">
<meta property="og:video:height" content="$videoHeight">
<meta property="og:image:width" content="$imageWidth">
<meta property="og:image:height" content="$imageHeight">
</head>
 
<body>
<p>
<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>
<object width="$videoWidth" height="$videoHeight" 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>
</p>
</body>