Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Created January 26, 2015 14:15
Show Gist options
  • Save mneuhaus/7dcaacc706f6c868ea71 to your computer and use it in GitHub Desktop.
Save mneuhaus/7dcaacc706f6c868ea71 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>foo</title>
</head>
<body>
<?php
$videoUrl = 'https://fbcdn-video-c-a.akamaihd.net/hvideo-ak-xaf1/v/t42.1790-2/10812569_395357007287163_395851536_n.mp4?rl=721&vabr=401&oh=5a9ff177402a2c3a84b5b0e5fe281d77&oe=54C669F0&__gda__=1422292559_f8027f663520ec309489a4a3130ad394';
$videoId = '395355717287292';
// $videoUrl = 'https://fbcdn-video-h-a.akamaihd.net/hvideo-ak-xap1/v/t42.1790-2/10929323_411848932304637_661721913_n.mp4?rl=486&vabr=270&oh=412170ee464f223eb4a8b8911f4025b2&oe=54C8ACFB&__gda__=1422413863_a6f1740a0e9d0fa3148e8c559bd8b677';
// $videoId = '411848582304672';
$params = array(
"auto_hd" => false,
"autoplay_reason" => "unknown",
"default_hd" => false,
"disable_native_controls" => false,
"inline_player" => false,
"pixel_ratio" => 2,
"preload" => true,
"start_muted" => false,
"video_data" => array(
array(
"hd_src" => null,
"is_hds" => false,
"is_hls" => false,
"rotation" => 0,
"sd_src" => $videoUrl,
"video_id" => $videoId,
"codec" => "sd: h264",
"sd_src_no_ratelimit" => $videoUrl,
"subtitles_src" => null
)
),
"show_captions_default" => true,
"persistent_volume" => true,
"buffer_length" => 0.1
);
$uri = 'params=' . urlencode(json_encode($params)) . '&amp;width=400&amp;height=500&amp;user=1716207707&amp;log=no&amp;div_id=id_54c64524e33321d25242810&amp;swf_id=swf_id_54c64524e33321d25242810&amp;browser=Chrome 41.0.2272.16&amp;tracking_domain=https://pixel.facebook.com&amp;post_form_id=&amp;string_table=https://s-static.ak.facebook.com/flash_strings.php/t98769/de_DE';
?>
<embed type="application/x-shockwave-flash" src="https://fbstatic-a.akamaihd.net/rsrc.php/v1/yi/r/eFDrBJCvgQX.swf" width="400" height="500" style="display: block;" id="swf_id_54c64524e33321d25242810" name="swf_id_54c64524e33321d25242810" bgcolor="#000000" quality="high" allowfullscreen="true" allowscriptaccess="always" salign="tl" scale="noscale" wmode="opaque" flashvars="<?php echo ($uri); ?>">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment