by sandrad » January 25th, 2012, 12:24 am
Well I tried the first script example from WP Admin -> s2Member -> Download Options -> JW Player® & RTMP Protocol Examples but no luck. I could not even get jwplayer to display on the page. So I took the example from Jwplayer's quick start (see below) and it displays when the page is rendered.
However, I am getting the same error as before "Video not found or access denied /up-content/plugins/s2member-files/s2member-file-inline/StandingPoseVideo.mp4". I verified that the directories exist and the mp4 video is located in s2member-file-inline. Still feels like a permissions issue. Thoughts?
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<div id="container">Loading the player ...</div>
<script type="text/javascript"> jwplayer("container").setup({ flashplayer: "/jwplayer/player.swf", file: "/wp-content/plugins/s2member-files/s2member-file-inline/StandingPoseVideo.mp4", height: 270, width: 480 }); </script>
Also, the code works if I specify a file not in the s2member-files directory....see below:
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<div id="container">Loading the player ...</div>
<script type="text/javascript"> jwplayer("container").setup({ flashplayer: "/jwplayer/player.swf", file: "/sandra/StandingPoseVideo.mp4", height: 270, width: 480 }); </script>