Page 1 of 1

How do i play videos

PostPosted: October 17th, 2011, 4:33 pm
by luckysarea
Hi,
Please explain how to play protected videos. I have the videos in the following directory (my wordpress installation is not on the root directory)

http://agile.x10.bz/lucky/wordpress5/wp ... /video.mp4

I am unable to play this using JWplayer/Flowplayer.

Please let me know what all plugins do i need to install to get this working (apart from s2member plugin).

I have my JWplayer at http://agile.x10.bz/lucky/wordpress5/jwplayer/
I later installed the JWplayer plugin and tried using the shotcode but was unsuccessful


I have tried everything from various forums but nothing worked for me. In some cases the JWplayer does not shows up (i just see some text saying "JW Player Shows Here" ). Sometimes i got the player to show but when i tried playing the video it said "access denied or file not found" .

Please help me with this. I have tried different codes:
<!-------------------------------------------------------------------->
<embed
flashvars="type=video&file=<?php echo urlencode("http://agile.x10.bz/lucky/wordpress5/?s2member_file_download=s2member-file-inline/video.mp4&s2member_file_inline=yes"); ?>"
allowfullscreen="true"
allowscripaccess="always"
src="jwplayer/player.swf"
width="480"
height="270"
/>

<!-------------------------------------------------------------------->


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


<!-------------------------------------------------------------->

<script type='text/javascript' src='jwplayer/jwplayer.js'></script>
<div id='mediaplayer'></div>
<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'playerID',
'width': '480',
'height': '270',
'file': 'http://agile.x10.bz/lucky/wordpress5/?s2member_file_download=/s2member-file-inline/video.mp4&s2member_file_inline=yes&type=video',
'modes': [
{type: 'html5'},
{type: 'flash', src: '/player.swf'},
{type: 'download'}
]
});
</script>
<!-------------------------------------------------------------------------->

Please help me.....
Thanks.

Re: How do i play videos

PostPosted: October 17th, 2011, 6:42 pm
by Eduan

Re: How do i play videos

PostPosted: October 18th, 2011, 6:48 am
by luckysarea
Hey Thanks Eduan. I'll check these out and let you know if anything works for me.

Re: How do i play videos

PostPosted: October 18th, 2011, 6:58 am
by luckysarea
Eduan Thank you so much.. I was really frustrated.. I just installed the new version of s2member via plugin search feature in wordpress.. and now everything works fine :)

Thanks.

Re: How do i play videos

PostPosted: October 18th, 2011, 7:19 am
by Eduan
Your welcome glad to be able to help. :)
Anything else you need just ask. ;)