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.

JW Player RTMP streaming MP4, Amazon® S3

Home Forums Community Forum JW Player RTMP streaming MP4, Amazon® S3

This topic contains 47 replies, has 8 voices. Last updated by  Bruno 4 years, 1 month ago.

Topic Author Topic
Posted: Tuesday Nov 6th, 2012 at 3:41 am #30752

Hello Everyone,
I am having a Issues with
JW Player® ( RTMP streaming MP4, via s2Member’s Amazon® S3/CloudFront integration)

I have Uploaded the files under Amazon S3 Bucket,
Everything is working fine using flowplayer, When i write the code as per the instruction given in this video
(http://www.youtube.com/watch?v=_x_KkSn803M)

Its Showing me….
JW Player® appears here.

Sorry, you do NOT have access to this file.

I have uploaded perfectly under s3 and given the exact file name as suggested in this video and also given at
s2member–>Download Options
–JW Player® RTMP Protocol
——–JW Player® ( RTMP streaming MP4, via s2Member’s Amazon® S3/CloudFront integration )

Please Help..!!

Thanks in Advance..!!

  • This topic was modified 4 years, 2 months ago by  Eduan. Reason: Moved to customer support forums

List Of Topic Replies

Viewing 25 replies - 1 through 25 (of 47 total)
Author Replies
Author Replies
Posted: Tuesday Nov 6th, 2012 at 3:01 pm #30789
Bruno
Username: brunoedig

I’m having the exact same problem where I can’t see my videos.

I was logged in as an admin and I even set my post to a 0 post level restriction to find out if that was the case but to no avail.

Please help.

Posted: Wednesday Nov 7th, 2012 at 7:51 am #30870

TO: s2members Support Team

Please Reply Us, we are waiting to hear from you,

I want to Integrate this JW Player into my Page….
Why it Directly goes to Else Statement “Sorry, you do NOT have access to this file.”
Required your HELP….!!!

JW Player® appears here.
<script type="text/javascript" src="jwplayer.js”>

$s2_jw_config[“mp4_video_file_name”], “url_to_storage_source” => true, “count_against_user” => true); ?>

jwplayer(“jw-container”).setup({modes: /* JW Player®. */
[
/* First try real-time streaming with Flash® player. */
{type: “flash”, provider: “rtmp”, src: “player.swf”,
config: {streamer: “”, file: “”}},

/* Else, try an HTML5 video tag. */
{type: “html5”, provider: “video”,
config: {file: “”}},

/* Else, this is a safe fallback. */
{type: “download”, /* Download the file. */
config: {file: “”}}
],
/* Set video dimensions. */ width: 480, height: 270
});

Sorry, you do NOT have access to this file.

Posted: Wednesday Nov 7th, 2012 at 7:54 am #30871

@Bruno..

I am an Developer of Sir James,

Have you integrated with S3 Cloud..?
What error you are getting while streaming video…?

Posted: Wednesday Nov 7th, 2012 at 11:01 am #30906
Bruno
Username: brunoedig

When you say “integrated with s3” you mean adding the keys, bucket names, etc. right? I followed that tutorial here to create that integration

I’ve tried both with only S3 and with S3/Cloudfront but I’m still getting the msg saying that I don’t have access :(

I’m getting the same error as you guys are getting: no access to file.

Have you guys been able to sort it out?

BTW, s2member support team, I need to figure this out ASAP .. so please please help :(

  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Wednesday Nov 7th, 2012 at 12:04 pm #30914
Bruno
Username: brunoedig

Ok, some development. I believe the problem is within S2 parse of parameters because I’ve used JWplayer wizard and the video is showing up fine. Only problem is that I’ve temporarily set the video to public so I could test whether it was an authenticate issue or not.

So here’s the page: http://empreendedorefetivo.com.br/ede/uncategorized/teste-de-video

And here’s the code I’m using on that page (the 1st half is the code from JWPlayer wizard):

<script type='text/javascript' src='http://empreendedorefetivo.com.br/ede/jwplayer/jwplayer.js'></script>
 
<div id='mediaspace'>This text will be replaced</div>
 
<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': 'http://empreendedorefetivo.com.br/ede/jwplayer/player.swf',
    'file': 'https://s3-sa-east-1.amazonaws.com/s2-ede-files/analytics.mp4',
    'controlbar': 'bottom',
    'width': '470',
    'height': '320'
  });
</script>

============================

<?php
// Configuration.
$s2_jw_config["jwplayer"] = "http://empreendedorefetivo.com.br/ede/jwplayer/"; // Relative URL path to JW Player files directory.
$s2_jw_config["mp4_video_file_name"] = "analytics.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 } ?>

And this is the .mp4 file url (BTW, dunno why it says s3-sa-east when it is hosted on Sao Paulo. Dunno if this has anything to do with it):

https://s3-sa-east-1.amazonaws.com/s2-ede-files/analytics.mp4

I’ve set the JWplayer parameter to an absolute url to ensure it would pick it from the right place, but either way didn’t work.

My wordpress is installed not on the root but inside a folder, in this case /ede. So perhaps something is going on where the player can’t load from the right place. I’ve even tried setting absolute urls like below to ensure that wasn’t the issue:

<?php
// Configuration.
$s2_jw_config["jwplayer"] = "http://empreendedorefetivo.com.br/ede/jwplayer/"; // Relative URL path to JW Player files directory.
$s2_jw_config["mp4_video_file_name"] = "analytics.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="http://empreendedorefetivo.com.br/ede/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: "http://empreendedorefetivo.com.br/ede/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 } ?>

.. but that didn’t work either.

So after these tests I’m thinking the problem is when parsing the .mp4 file from amazon which is giving me trouble.

But I’ve followed s2member’s tutorial on setting up S3 and Cloudfront and I’ve already inserted my keys as instructed so I’m not sure what is the problem. I’ve also installed Exec-php and Raw html plugins as instructed on the video.

I’m also using a bucket in Sao Paulo but I don’t think that should be the problem since it should be getting the right url straight from amazon.

  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Wednesday Nov 7th, 2012 at 7:09 pm #30958
Raam Dev
Username: Raam
Staff Member

James, Bruno,

Have you seen the JW Player sample code not working KB article? Also have you seen the s2Member® File Downloads (Amazon S3/CloudFront/JW Player) video?

Finally, this thread related to CloudFront errors may help. You may also be interested in trying out this video shortcode hack that another s2Member user created to simplify adding videos.

Posted: Thursday Nov 8th, 2012 at 6:56 am #31002
Bruno
Username: brunoedig

Hi,

checked all articles, tried all solutions, no good. Only difference is that when I set the basic download restrictions to 999999 every 1 day, it gives me this msg:

JW Player® appears here.

Fatal error: s2Member was unable to generate an RSA-SHA1 signature. Please make sure your installation of PHP is compiled with OpenSSL: `openssl_sign()`. See: http://php.net/manual/en/function.openssl-sign.php in /home/empefeti/public_html/ede/wp-content/plugins/s2member/includes/classes/utils-strings.inc.php on line 446

Please help.

I don’t mind giving my username and password to someone from the staff to check things up if they want, but I’ve followed instructions and this is not working.

Videos are not showing and I need this to be properly set up as my launch is coming closer and closer.

  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Thursday Nov 8th, 2012 at 8:47 am #31022

James, Bruno,

s2Member never applies a restriction to the admin. If it says you don’t have access to the file despite being logged in as the admin, I’d suspect something wrong with your admin session. Things that come to mind:

– Your session expired and need to login again.

– You have a mix of www and without it in your URLs, please see this article: Knowledge Base » Don't mix www and without

– You were logged in under another account that doesn’t have enough access for that download.

Both can send your login info through the contact form, including the URL to the page where you have this problem. Let us know when you sent the email so we look for it, please. s2Member® » Private Contact Form

James, it looks like your code may have been altered because it wasn’t inside code tags. Could you post it again inside HTML code tags, please? Thanks.

Posted: Thursday Nov 8th, 2012 at 9:12 am #31025
Bruno
Username: brunoedig

Checked those 3 problems and I don’t think any of them apply.

So I just used the contact form and have sent my info your way.

I didn’t find a place to paste the exact url I’m testing the video, but in any case, this is the url: http://empreendedorefetivo.com.br/ede/uncategorized/teste-de-video

Thanks!

  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Thursday Nov 8th, 2012 at 11:48 pm #31092

Thanks Bruno. Got the email and did a couple tests. The error about not having access to the file, was because the Basic Download Restrictions were not configured. Once configured, I got the other error you mentioned about openssl_sign.

I emailed Jason asking him about this, I’ll let you know when I hear back from him. :)

Posted: Friday Nov 9th, 2012 at 6:22 am #31120
Bruno
Username: brunoedig

Hi Cristian, thanks for looking it up.

Yeah, I’m not sure why that error was showing up :(

At first I thought could be sth about S2member not being installed directly on the root, but that doesn’t look like it

Well hopefully it will be easy and quick to solve it :)

Posted: Friday Nov 9th, 2012 at 7:49 am #31122

I have gone through with all the details.

Still Showing me Error
JW Player® appears here.
Sorry, you do NOT have access to this file.

I have Simply Used this Code:

<?php
// Configuration.
$s2_jw_config["jwplayer"] = "/jwplayer/"; // 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 } ?>

I think script is not getting value of

Please HELP

All works fine using flowplayer,
There is something wrong in JWPLayer

Posted: Friday Nov 9th, 2012 at 8:29 am #31125

I think I am Near to Solve the Issue,
See Only Player Code Works Fine Now

<script type='text/javascript' src='http://www.theschoolofinternetmarketing.com/jwplayer/jwplayer.js'></script> <div id='mediaspace'>This text will be replaced</div> <script type='text/javascript'> jwplayer('mediaspace').setup({ 'flashplayer': 'http://www.theschoolofinternetmarketing.com/jwplayer/player.swf', 'file': 'http://www.theschoolofinternetmarketing.com/jwplayer/video.mp4', 'controlbar': 'bottom', 'width': '470', 'height': '320' }); </script>

But using showing file not found in jwplayer, Am i Wrong Anywhere
I Dont know what it gives output

<script type="text/javascript"> jwplayer("jw-container").setup({modes: /* JW Player®. */ [ /* First try real-time streaming with Flash® player. */ {type: "flash", provider: "rtmp", src: "http://www.theschoolofinternetmarketing.com/jwplayer/player.swf", config: {streamer: "http://www.theschoolofinternetmarketing.com/jwplayer/player.swf", file: "http://www.theschoolofinternetmarketing.com/jwplayer/video.mp4"}}, /* Else, try an HTML5 video tag. */ {type: "html5", provider: "video", config: {file: "http://www.theschoolofinternetmarketing.com/jwplayer/video.mp4"}}, /* Else, this is a safe fallback. */ {type: "download", /* Download the file. */ config: {file: "http://www.theschoolofinternetmarketing.com/jwplayer/video.mp4"}} ], /* Set video dimensions. */ width: 480, height: 270 }); </script>
Posted: Saturday Nov 10th, 2012 at 6:58 am #31192
Bruno
Username: brunoedig

Any developments on this? I need this sorted out ASAP please

Posted: Saturday Nov 10th, 2012 at 7:39 am #31201

James, could you confirm that you have the video.mp4 file in your Amazon bucket? I tried http://www.theschoolofinternetmarketing.com/wp-content/plugins/s2member-files/video.mp4 and get sent to the Membership Options page, with the URL showing that I need to be logged in to open it, but I can’t tell if it’s there or not. I tried a filename I invented and got redirected the same way.

And if you could send your site’s info, I could take a look to see if I spot what’s causing your problem. s2Member® » Private Contact Form

Bruno, no, I don’t have any news regarding the encryption error you are getting yet.

Posted: Saturday Nov 10th, 2012 at 8:42 am #31210
Bruno
Username: brunoedig

Ok, when then can I expect an answer or a solution to the problem?

I need this to be ready and good to go early this week otherwise I might run into trouble

Posted: Monday Nov 12th, 2012 at 7:08 am #31282

I saw Jason take care of a few emails yesterday, so I hope he’ll be back today to take care of the rest, including yours.

Posted: Monday Nov 12th, 2012 at 2:03 pm #31335
Bruno
Username: brunoedig

Ok, thanks. I’ll wait for his answer then :)

Posted: Monday Nov 12th, 2012 at 7:56 pm #31392
Staff Member
Thanks for the heads up on this thread.
~ Investigating now.
Posted: Tuesday Nov 13th, 2012 at 5:22 pm #31489
Bruno
Username: brunoedig

Let me know if you need additional details to find out the trouble on my site :)

Posted: Wednesday Nov 14th, 2012 at 7:46 am #31553
Bruno
Username: brunoedig

Guys … I need an answer for this! I got fix this up!

Plus, JWplayer version 6 have been released!

Posted: Wednesday Nov 14th, 2012 at 5:34 pm #31620
Todd
Username: tdaubs

I, too, need to get this working. Just licensed S2Member a few days ago. Any updates?

Posted: Wednesday Nov 14th, 2012 at 8:36 pm #31639
Staff Member
Thanks for your patience. We are still investigating this issue.
~ We’ll update this thread later this evening for you.
Posted: Wednesday Nov 14th, 2012 at 9:34 pm #31651
Todd
Username: tdaubs

Excellent! I’ll check back in later tonight too. Thanks for all your hard work on this!

Posted: Thursday Nov 15th, 2012 at 6:02 am #31668

Finally Problem is solved, and videos is showing up..
Thanks Every one for the support…

The Problem is with Raw HTML and Exec PHP
Have to configure properly…and s2member Download options too..

Well i need to know 1 more thing..
How to show the Image of video on screen i have given
$s2_jw_config[“jwplayer”] = “/jwplayer/”; // Relative URL path to JW Player files directory.
$s2_jw_config[“mp4_video_file_name”] = “video.mp4″; // Name of your MP4 test file.
image=”http://www.theschoolofinternetmarketing.com/wp-content/uploads/2012/11/website-in-a-weekend-session-01.jpg&#8221;

But nothing displays…

Viewing 25 replies - 1 through 25 (of 47 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.