Page 1 of 1
embedding video from s2member-files folder
Posted:
September 27th, 2011, 10:45 am
by precisionscott
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
Re: embedding video from s2member-files folder
Posted:
September 29th, 2011, 1:35 am
by Cristián Lávaque
The latest release includes some examples Jason added for this.
WP Admin -> s2Member -> Download Options -> JW Player & RTMP Protocol ExamplesI hope that helps.
Re: embedding video from s2member-files folder
Posted:
September 29th, 2011, 10:42 am
by precisionscott
thank you Cristian, I will check it out
Re: embedding video from s2member-files folder
Posted:
September 29th, 2011, 12:14 pm
by precisionscott
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>
Re: embedding video from s2member-files folder
Posted:
October 1st, 2011, 4:19 am
by Cristián Lávaque
Scott, do you have JW Player installed?
Re: embedding video from s2member-files folder
Posted:
October 1st, 2011, 10:54 pm
by Jason Caldwell
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/
Re: embedding video from s2member-files folder
Posted:
October 2nd, 2011, 11:44 pm
by precisionscott
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"
Re: embedding video from s2member-files folder
Posted:
October 2nd, 2011, 11:59 pm
by precisionscott
I finally got the player to appear,but it now says "video not found or access denied"
Re: embedding video from s2member-files folder
Posted:
October 7th, 2011, 7:10 pm
by Jason Caldwell
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.
Re: embedding video from s2member-files folder
Posted:
December 23rd, 2011, 5:10 pm
by govpatel
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
Re: embedding video from s2member-files folder
Posted:
December 24th, 2011, 12:04 am
by Raam Dev
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.