Page 1 of 1

JW Player failing to access secure files

PostPosted: January 23rd, 2012, 7:54 am
by sandrad
I want to play videos in the s2member-files directory using JW Player (the plugin for wordpress) but I have not been successful in doing so. I have read and performed suggestions from post:
viewtopic.php?f=4&t=2937 but still "no joy". Can someone help? Here is what I have done thus far:

1. Installed and activated JW Player for wordpress.

2 Viewed the desired video using JW Player with the video in an unprotected directory. Works goods.

3. Copied the video to the "wp-content/plugins/s2member-files" directory.

4. Modified JW Player html as: [jwplayer config="my_player" file="http://www.newbornposing.net/?s2member_file_download=StandingPoseVideo.mp4"] but this fails.
I get the following error in the player: Video not found or access denied:
"http://www.newbornposing.net/?s2member_file_downloads=StandingPoseVideo.mp4"

5. Modified JW Player html as: [jwplayer config="my_player" file=[s2File download="StandingPoseVideo.mp4" /] ] but it fails too. I get the following error: Video not found or access denied:
"http://www.newbornposing.net/?s2member_file_downloads=/StandingPoseVideo.mp4"

6. I've also used suggestions in the advance download settings that ignores download restrictions via a download key. Still no success.

7. I've added Flashvar's type=video and inline=yes.

8. I've also changed the download options levels to infinite downloads...still no joy.

Am I fighting a permissions issue? Does anybody have additional suggestions?

Re: JW Player failing to access secure files

PostPosted: January 26th, 2012, 1:34 am
by Cristián Lávaque
The question mark in the URL may be causing trouble in your jwplayer shortcode. I suggest that you try a URL without it. Check the documentation here: WP Admin -> s2Member -> Downloads Options -> Advanced Mod-Rewrite Linkage.

I hope that helps. :)

Re: JW Player failing to access secure files

PostPosted: January 27th, 2012, 1:20 pm
by sandrad
It didn't. This is what I changed it to:

<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>

It now says "this video could not be loaded, either because the server or network failed or because the format is not supported. Now what should I try?