I'm using S2member to sell some online videos, and I'm using the JWPlayer approach to do it. The following is the code that I'm using in the page
- Code: Select all
<div id="jw-container"></div>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<script type="text/javascript">
jwplayer("jw-container").setup({modes: /* JW Player®. */
[
/* First try psuedo-streaming with Flash® player. */
{type: "flash", provider: "http", src: "/jwplayer/player.swf",
config: {file: "/wp-content/plugins/s2member-files/Network10.mp4"}},
/* Else, try an HTML5 video tag. */
{type: "html5", provider: "video",
config: {file: "/wp-content/plugins/s2member-files/Network10.mp4"}},
/* Else, this is a safe fallback. */
{type: "download", /* Download the file. */
config: {file: "/wp-content/plugins/s2member-files/Network10.mp4"}}
],
width: 640, height: 480
});
</script>
You can see the page here http://traynyng.centylyn.com/free-sample-vydeo/ (just replace all the 'y' with 'i'), the player is not loading, though the HTML output seems to be correct.
Angela