Re: Integration with AWS streaming and S2
Posted: January 19th, 2012, 1:10 pm
Thank you. I find this in your source code. So this confirms that "video.mp4" is being served properly in this case. However, you might take a look at the content filters enabled on your WordPress installation. It looks like WordPress is adding in some <p> tags via the wpautop content filter. I would suggest this plugin for you. See: http://wordpress.org/extend/plugins/raw-html/
- Code: Select all
<div style="background-repeat: no-repeat;"><div id="jw-container">JW Player® appears here.</div>
<p><script type="text/javascript" src="/jwplayer/jwplayer.js"></script></p>
<p><script type="text/javascript">
jwplayer("jw-container").setup({modes: /* JW Player®. */
[
/* First try real-time streaming with Flash® player. */
{type: "flash", provider: "rtmp", src: "/jwplayer/player.swf",
config: {streamer: "rtmp://sx2kg2pfwt7yi.cloudfront.net/cfx/st", file: "video.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoidmlkZW8ubXA0IiwiQ29uZGl0aW9uIjp7IklwQWRkcmVzcyI6eyJBV1M6U291cmNlSXAiOiIxNjYuMjUwLjY1LjM3LzMyIn0sIkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMzI3MDgyMTc1fX19XX0_&Signature=mZZ5WQ54xFQExuuqL8~wX7tZqU33cZ9tUwdEmj4b7eRySZtBBEEK0evAvCorodsEizdG0Q6S3L1nd4YeD19XK5Ipe2u~UbQcEMUxpw5CkZ5V-VtH85P0a4UCPwnBo0vP2xM-n7KugIUrsRwFQp9MGIIuFVP3dfbUaIlvme02-d8_&Key-Pair-Id=APKAIJSTEXVC4PFGE2NA"}},</p>
<p>/* Else, try an HTML5 video tag. */
{type: "html5", provider: "video",
config: {file: "http://d15q0sklvx3bb5.cloudfront.net/video.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDovL2QxNXEwc2tsdngzYmI1LmNsb3VkZnJvbnQubmV0L3ZpZGVvLm1wNCIsIkNvbmRpdGlvbiI6eyJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMTY2LjI1MC42NS4zNy8zMiJ9LCJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTMyNzA4MjE3NX19fV19&Signature=qO68Ey2uNcHGMCofqbS6Pe24lLYvPsGkU5YZXq~CFfRYCC5Wr0Kv2LzeUFxopuvEo8X8Plsmvl59UJNfd93Azhowl5fJZ8esg-f-pNJTdQ~H19M-3J3ES4nKHaKQbluLsApigSZ5tymkPtDUtKs1iS~FgMq0x9DXrYyqUV5NG-M_&Key-Pair-Id=APKAIJSTEXVC4PFGE2NA"}},</p>
<p>/* Else, this is a safe fallback. */
{type: "download", /* Download the file. */
config: {file: "http://d15q0sklvx3bb5.cloudfront.net/video.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDovL2QxNXEwc2tsdngzYmI1LmNsb3VkZnJvbnQubmV0L3ZpZGVvLm1wNCIsIkNvbmRpdGlvbiI6eyJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMTY2LjI1MC42NS4zNy8zMiJ9LCJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTMyNzA4MjE3NX19fV19&Signature=qO68Ey2uNcHGMCofqbS6Pe24lLYvPsGkU5YZXq~CFfRYCC5Wr0Kv2LzeUFxopuvEo8X8Plsmvl59UJNfd93Azhowl5fJZ8esg-f-pNJTdQ~H19M-3J3ES4nKHaKQbluLsApigSZ5tymkPtDUtKs1iS~FgMq0x9DXrYyqUV5NG-M_&Key-Pair-Id=APKAIJSTEXVC4PFGE2NA"}}
],
/* Set video dimensions. */ width: 640, height: 480
});
</script></p>