latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: AMGill

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Error 403: Unable to auto-configure Amazon

By:  AMGill in: Community Forum

voices: 2
replies: 2

4 years, 2 months ago  Cristián Lávaque

JWPlayer shortcode vs. code provided

By:  AMGill in: Community Forum

voices: 5
replies: 22

4 years, 5 months ago  Philly

JWPlayer shortcode vs. code provided

By:  AMGill in: Community Forum

voices: 1
replies: 0

4 years, 6 months ago  AMGill

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Error 403: Unable to auto-configure Amazon

By:  AMGill in: Community Forum

voices: 2
replies: 2

4 years, 2 months ago  Cristián Lávaque

JWPlayer shortcode vs. code provided

By:  AMGill in: Community Forum

voices: 5
replies: 22

4 years, 5 months ago  Philly

JWPlayer shortcode vs. code provided

By:  AMGill in: Community Forum

voices: 1
replies: 0

4 years, 6 months ago  AMGill

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Wednesday Nov 7th, 2012 at 1:47 am #30853
AMGill
Username: AMGill

Because I am impatient – I dug a little deeper and found a solution in the forums here:
http://www.s2member.com/forums/topic/cloudfront-err-400-unable-to-del-existing/#post-15884

I noticed no matter how many times I changed or updated the fields that once worked I kept getting this message in the Amazon/Cloudfront settings in S2: Your Amazon® CloudFront Distributions are: ( ALREADY configured! )

So I tried the hack found in that post and it worked. Thank you. Too bad there is not an easier way though. I had test settings in there originally and then once my client started their own Amazon S3 account I tried to change to theirs. It really shouldn’t be that hard to change – adding a hack? How about a Reset or Clear button?

Posted: Saturday Jun 30th, 2012 at 7:59 pm #17995
AMGill
Username: AMGill

Luisrosario, NO not cloudfront in the shortcode config, but the URL points straight to the s2member file directory: (ex. http://www.mysite.com/wp-content/plugins/s2member-files/video.mp4) even though Amazon & Cloudfront is where the videos are stored. Since it is set up that way through the s2member settings, anything pointing to the s2member-files directory points to the Amazon bucket….I believe that is how it works.

Philly, yes it would be very nice if s2member had a shortcode.

Posted: Saturday Jun 30th, 2012 at 6:20 pm #17989
AMGill
Username: AMGill

The videos are located in an Amazon bucket, but I set the video URL for the JWPlayer shortcode as wp-content/plugins/s2member-files/video.mp4 and it worked…pointing to my Amazon bucket (nothing is in the s2member-files folder). The video is not set as public. So are there any disadvantages to using the JWPlayer shordcode? The video seems only viewable to logged in users and it is MUCH easier my client to set up when they load new videos into their bucket.

Just making sure I am not missing anything.

Posted: Saturday Jun 30th, 2012 at 4:32 pm #17982
AMGill
Username: AMGill

Thanks for the quick response.

I am wondering the benefits of using the example code provided by S2member Download Options (JW Player® ( RTMP streaming MP4, via s2Member’s Amazon® S3/CloudFront integration) VERSUS the JW shortcode that comes with the JWPlayer WordPress plugn. Both work, but JW Player has more control of the player & is much easier for my client to add themselves of course. Both of the codes I use are below.

<?php
// Configuration.
$s2_jw_config["jwplayer"] = "/wp-content/uploads/jw-player-plugin-for-wordpress/player/"; // Relative URL path to JW Player files directory.
$s2_jw_config["mp4_video_file_name"] = "video.mp4"; // Name of your MP4 test file.
// Don't edit anything else below unless you know what you're doing.
?>

<div id="jw-container">JW Player® appears here.</div>
<script type="text/javascript" src="<?php echo $s2_jw_config["jwplayer"]; ?>jwplayer.js"></script>

<?php /* A direct URL to the RTMP source; counting the file against the current User in real-time. */
$cfg = array ("file_download" => $s2_jw_config["mp4_video_file_name"], "url_to_storage_source" => true, "count_against_user" => true); ?>

<?php /* API Function `s2member_file_download_url()` returns false if access is denied to the current User. */
if (($mp4 = s2member_file_download_url ($cfg, "get-streamer-array"))) { ?>

    <script type="text/javascript">
        jwplayer("jw-container").setup({modes: /* JW Player®. */
        [
            /* First try real-time streaming with Flash® player. */
            {type: "flash", provider: "rtmp", src: "<?php echo $s2_jw_config["jwplayer"]; ?>player.swf",
                config: {streamer: "<?php echo $mp4["streamer"]; ?>", file: "<?php echo $mp4["file"]; ?>"}},
        
            /* Else, try an HTML5 video tag. */
            {type: "html5", provider: "video",
                config: {file: "<?php echo $mp4["url"]; ?>"}},
        
            /* Else, this is a safe fallback. */
            {type: "download", /* Download the file. */
                config: {file: "<?php echo $mp4["url"]; ?>"}}
        ],
        /* Set video dimensions. */ width: 480, height: 270
        });
    </script>

<?php } else /* Access is denied to the current User. */ { ?>
    Sorry, you do NOT have access to this file.
<?php } ?>

[jwplayer mediaid="1546"]

JW shortode:

[jwplayer mediaid="1542"]
Viewing 4 replies - 1 through 4 (of 4 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.