Page 1 of 1

video help - protected files won't show up

PostPosted: May 27th, 2011, 4:49 pm
by cote289
I've searched the forums and found that flowplayer should work fine without issue, but i'm having some trouble with it

I'm building my site at www.trulysimpletech.com Its rough, so don't make too much fun of me yet.

here is a test post i did for the videos
http://trulysimpletech.com/2011/05/test-video/

the flowplayer with the protected video does not work. it does work just fine with the same video in an unprotected location.

Here is the code I used in the post:

test video here

protected file
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_inline=yes']
nonprotected file
[flowplayer src='http://trulysimpletech.com/videotest/testmovie.mp4']

I have no download restrictions set up, all levels are unlimited and I have setup the video extensions in the inline settings for the s2 plugin.

Please let me know what i'm doing wrong and how to fix it

thank you

Ben

Re: video help - protected files won't show up

PostPosted: May 28th, 2011, 1:45 am
by Cristián Lávaque
Hi Ben.

Could you try adding a download key to it? WP Admin -> s2Member -> Download Options -> Advanced Download Restrictions

Let me know if that helps. :)

Re: video help - protected files won't show up

PostPosted: May 28th, 2011, 12:06 pm
by cote289
still nothing

here's what i did. let me know if its right.

protected file
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_inline=yes']
nonprotected file
[flowplayer src='http://trulysimpletech.com/videotest/testmovie.mp4']
downloadkey file
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_download_key=<?php echo s2member_file_download_key("video/testmovie.mp4"); ?>']

here's the page to see the results:
http://trulysimpletech.com/2011/05/test-video/

thanks for the help
what should i try next?

Ben

Re: video help - protected files won't show up

PostPosted: May 28th, 2011, 12:24 pm
by sgtcory
Hello Ben,

In your download key, you are trying to execute php within the post - specifically here :

Code: Select all
<?php echo s2member_file_download_key("video/testmovie.mp4"); ?>


You'd wither need to call this via a custom page, or install a plugin to execute php in your post :

http://wordpress.org/extend/plugins/php ... on-plugin/

Let me know how it goes!

EDIT - I have not used that plugin with the latest version of WP - so I do not know how stable it is. Worth a shot.

Re: video help - protected files won't show up

PostPosted: May 28th, 2011, 1:25 pm
by Cristián Lávaque
sgtcory is correct, your PHP is not being executed. You need a plugin that allows you to execute PHP in your post. It could be the one he mentions, which I haven't tried, or Exec PHP http://wordpress.org/extend/plugins/exec-php/

Re: video help - protected files won't show up

PostPosted: May 28th, 2011, 9:13 pm
by cote289
thanks i'll look into those

Is there an easier way to do video than what i am trying? '

I've seen some posts of others doing video and i'm just looking for the easiest way. Flowplayer looked like the easy choice as it was said to work without issue in other forums.

appreciate any advice on the video part

Ben

Re: video help - protected files won't show up

PostPosted: May 28th, 2011, 10:23 pm
by Cristián Lávaque
Hmm... I don't know. I think the download key is the only way protected files were able to playback with FlowPlayer... You could try other players like JW Player, maybe?

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 3:42 am
by Harty
Hi. Haven't checked what I am about to say... But wonder if flow player requires video files to be in a flow player folder. You might have an adoption to alter the source folder in flow player as the place for it to call your video files. I.e., you 'tell' flow player the full address of the video folder within s2member's protected area.
Just an idea...

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 11:06 am
by cote289
@Harty

I've given flow player the full address within the s2 protected folder and its still a no go. I tried both with inline and download key, but neither works.

flow player works fine if you give it the address of an unprotected file

Ben

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 11:43 am
by Cristián Lávaque
Ben, the key test in your page still has this address to the file:
Code: Select all
http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&amp;s2member_file_download_key=&lt;?php echo s2member_file_download_key(\&quot;video/testmovie.mp4\&quot;); ?&gt;


As you can see, instead of a key, the PHP code is there, looks like the <?php and ?> tags got changed somehow, probably the visual editor. Could you edit your test so that an PHP is actually executed and you get a key there and see if that solves your problem? :)

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 11:56 am
by cote289
the example for the download key is this:

http://trulysimpletech.com/?s2member_fi ... nload_key=<?php echo s2member_file_download_key("example-file.zip"); ?>

is that the right code I should be putting in the flowplayer address?

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 12:29 pm
by Cristián Lávaque
Correct. Just make sure you have Exec PHP plugin installed and you only edit that page with the HTML editor, not the Visual one (it changes the < and > to their HTML entities &lt; and &gt;, which is what you had that I mentioned above).

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 4:07 pm
by cote289
thanks, I installed the exec php plugin and corrected the code you mentioned above and still have the same results

what should I try next?

http://trulysimpletech.com/2011/05/test-video/

anyone else doing video with this plugin?

Ben

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 9:04 pm
by Cristián Lávaque
I still see the PHP code instead of the key there:

Code: Select all
http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&amp;s2member_file_download_key=&lt;!--?php echo s2member_file_download_key(\&quot;video/testmovie.mp4\&quot;); ?--&gt;


Although now it looks like it's inside an HTML comment. :|

Re: video help - protected files won't show up

PostPosted: May 29th, 2011, 10:56 pm
by drbyte
Wow, that's some serious embed code :) Well, we can't see the movie because we are not logged in. http://trulysimpletech.com/?s2member_fi ... tmovie.mp4

the video folder...is it set to 755 or 777?
Try this! Copy the .htaccess that you have under the s2 plugin folder to the /video folder

Sam

Re: video help - protected files won't show up

PostPosted: May 30th, 2011, 2:13 pm
by cote289
sorry, forgot to include a login for you guys

you can use this:
username: joblo
password: password123