PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

embedding video from s2member-files folder

s2Member Plugin. A Membership plugin for WordPress®.

embedding video from s2member-files folder

Postby precisionscott » September 27th, 2011, 10:45 am

Is there a straight forward way to embed video that is located in my s2member-files folder on my wordpress site? When reading other threads it isn't clear to me as how to do this.

Thanks
User avatar
precisionscott
Registered User
Registered User
 
Posts: 14
Joined: September 8, 2011

Re: embedding video from s2member-files folder

Postby Cristián Lávaque » September 29th, 2011, 1:35 am

The latest release includes some examples Jason added for this. WP Admin -> s2Member -> Download Options -> JW Player & RTMP Protocol Examples

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: embedding video from s2member-files folder

Postby precisionscott » September 29th, 2011, 10:42 am

thank you Cristian, I will check it out
User avatar
precisionscott
Registered User
Registered User
 
Posts: 14
Joined: September 8, 2011

Re: embedding video from s2member-files folder

Postby precisionscott » September 29th, 2011, 12:14 pm

Ok, so I inserted the code below, but where do I insert this code? In a php file or directly into html editor on a page?
When I inserted this code into html editor the result is just a line of text saying "JW Player® appears here."

Thanks for your help.
Scott
Code: Select all
<div id="jw-container">JW Player® appears here.</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/s2member-file-inline/video.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="video.mp4" /] */
   
        /* Else, try an HTML5 video tag. */
        {type: "html5", provider: "video",
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/video.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="video.mp4" /] */
   
        /* Else, this is a safe fallback. */
        {type: "download", /* Download the file. */
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/video.mp4"}}
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="video.mp4" /] */
    ],
    /* Set video dimensions. */ width: 480, height: 270
    });
</script>
Last edited by Cristián Lávaque on October 1st, 2011, 4:16 am, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
precisionscott
Registered User
Registered User
 
Posts: 14
Joined: September 8, 2011

Re: embedding video from s2member-files folder

Postby Cristián Lávaque » October 1st, 2011, 4:19 am

Scott, do you have JW Player installed?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: embedding video from s2member-files folder

Postby Jason Caldwell » October 1st, 2011, 10:54 pm

If you install JW Player and you still have trouble, try this plugin and wrap your code inside the [raw][/raw] Shortcode tags to prevent corruption by the WordPress Visual Editor. http://wordpress.org/extend/plugins/raw-html/
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: embedding video from s2member-files folder

Postby precisionscott » October 2nd, 2011, 11:44 pm

Yes I do have jw player installed. After I put the [raw] tags I still get the same thing...Just says "jw player appears here"
User avatar
precisionscott
Registered User
Registered User
 
Posts: 14
Joined: September 8, 2011

Re: embedding video from s2member-files folder

Postby precisionscott » October 2nd, 2011, 11:59 pm

I finally got the player to appear,but it now says "video not found or access denied"
User avatar
precisionscott
Registered User
Registered User
 
Posts: 14
Joined: September 8, 2011

Re: embedding video from s2member-files folder

Postby Jason Caldwell » October 7th, 2011, 7:10 pm

Thanks for the follow-up. I'm sorry for the delayed response.

OK, so based on the code sample that you re-posted above, do you have this file available?
/wp-content/plugins/s2member-files/video.mp4
( i.e. did you upload a file named video.mp4 ? )

If so, does your server support mod_rewrite? That is, are you running Apache, or Windows IIS perhaps?

Also, if you can post the final code that you tested with, please do. Did you integrate Amazon S3 and CloudFront, or are you running all of your protected media files from the /s2member-files/ directory? If you have a link to a test page that we can see, that would also be helpful.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: embedding video from s2member-files folder

Postby govpatel » December 23rd, 2011, 5:10 pm

I am confused on we are suppose put the code that is provided in
JW Player® & RTMP Protocol Examples in s2member
is it in the post I am using s2Member's Amazon® S3/CloudFront integration
User avatar
govpatel
Registered User
Registered User
 
Posts: 6
Joined: December 21, 2011

Re: embedding video from s2member-files folder

Postby Raam Dev » December 24th, 2011, 12:04 am

govpatel,

Yes, the code should go in the post where you want the video to show up. You'll need to have JW Player installed.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

cron