Page 1 of 1

Livestream site question

PostPosted: March 30th, 2011, 9:38 am
by Supertvplayer
Hello to everyone,

Sorry for weired questions but I am not PHP guy and don't know how to solve the issues. I have created silverlight application and I am offering live streaming to my paid users. And with following code my users are watching livestream depending on their user levels but as you see on my root directory silverlight application is placed. If you point on your browser url of this file you can download.

My question is, if I put this file into s2member-files directory, may I protect to download directly?

Code: Select all
<?php } else if (current_user_is("s2member_level3")){ ?>

<?php } else if (current_user_is("s2member_level2")){ ?>

<?php } else if (current_user_is("s2member_level1")){ ?>
etc...


Thanks to everyone

Re: Livestream site question

PostPosted: March 30th, 2011, 3:45 pm
by Cristián Lávaque
Yes, you can protect it with s2Member.

You can read the section here WP Admin -> s2Member -> Download Options.

Re: Livestream site question

PostPosted: March 31st, 2011, 5:36 am
by Supertvplayer
Thank you very much for reply,

I tried to put my silverlight application as inline files into my pages, I placed Silverlight XAP into s2member-files folder but no success. Do I have to make changes on htaccess file inside of this directory?

Thanks

Re: Livestream site question

PostPosted: April 4th, 2011, 3:38 am
by Jason Caldwell
Please take a look at the instructions I provided here for JW Player. The same basic concept applies to all embedded media. Although I've never tested with Silverlight, I suspect it will work just fine.
viewtopic.php?f=4&t=2937&p=8949#p8949

Please follow the JW Player example here. If you still can't get it to work, try it with a Download Key. Download Keys are discussed in your Dashboard under:
s2Member -> Download Options -> Advanced Download Restrictions.