|
[hilite pre_code]
http://website.com/wp-content/plugins/s2member-files/1.1certification.mp4&image=../../../training/module_1.0.jpg
[/hilite]
Is your movie file named [hilite code]1.1certification.mp4&image=../../../training/module_1.0.jpg[/hilite]? Because that’s what it looks like to the script. I know you’re using an ampersand entity to separate it from the image, but that works to separate vars in the querystring (after the question mark in a URL), but that’s not what you’re doing there.
Try fixing that and see if it then works.
I hope it helps. :)
|
|
Cristián,
Do you mean just remove the &?
This code below works when it is in a regular folder, but then when I move it to the s2member-file folder is when I have problems. Yes, the 1.1certification.mp4 is the file name. I tried removing the ampersand, and the amp, but that didn’t help.
<object id="mediaplayer1" width="1000" height="778" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="file=http://website.com/training/1.2_certification.mp4&image=../../../training/module_1.2.jpg" /><param name="src" value="../../../training/player.swf" /><embed id="mediaplayer1" width="1000" height="778" type="application/x-shockwave-flash" src="../../../training/player.swf" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://website.com/training/1.2_certification.mp4&image=../../../training/module_1.2.jpg" /></object>
-
This reply was modified 4 years, 5 months ago by
Cristián Lávaque. Reason: Remove domain name
|
|
Hi Mary,
You need to remove the & and everything after it, you cant reference the image like that because the script that protects the video wont be able to process it.
value="file=http://website.com/wp-content/plugins/s2member-files/1.1certification.mp4"
On another note I would recommend using something like the jw player which will give you fallback options for people who dont have flash, probably better supported here too
Hope that helps
-
This reply was modified 4 years, 5 months ago by
Philly.
|
|
Right, what Philly said.
You see, when the file is in the s2member-files folder, the file is served via s2Member, not by the server directly, and the ampersand in your URL confuses the file’s name.
I agree with trying JW Player. s2Member even has some code examples in the documentation, which you can try. [hilite path]Dashboard -› s2Member® -› Download Options -› JW Player® & RTMP Protocol Examples[/hilite]
And it’d be a good idea to take a look at hosting those movie files in Amazon S3, which is cheap and very reliable. [hilite path]Dashboard -› s2Member® -› Download Options -› Amazon® S3 Storage[/hilite]
Video » s2Member® File Downloads (Amazon S3/CloudFront/JW Player)
I hope that helps. :)
|
|
I’ll try both of your suggestions. I don’t want to incur any further costs, so I wanted to host it myself. I’ll try Philly’s suggestion first and see if it works. If not, I’ll have to go with the JWPlayer or Amazon storage.
Thanks, I”ll let you know how I get on.
|
|
Okay, I tried it again and it still says that access is denied. Can you look at the code one more time and if it is right and it just isn’t going to work, I’ll go the jwplayer or amazon cloud route.
Thank you both for your help.
Mary
<object id="mediaplayer1" width="1000" height="778" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=http://website.com/wp-content/plugins/s2member-files/1.1certification.mp4">
<param name="src" value="../../../training/player.swf" /><embed id="mediaplayer1" width="1000" height="778" type="application/x-shockwave-flash" src="../../../training/player.swf" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://website.com/wp-content/plugins/s2member-files/1.1certification.mp4">
</object></div>
-
This reply was modified 4 years, 5 months ago by
Cristián Lávaque. Reason: Remove domain name
|
|
Hi Mary,
There is some sort of problem with your server/hosting environment.
I got the following error when trying to access that file
Error 500: Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
The problem is on the server side, not with your browser or the address. Most probably, a certain service (e.g., Tomcat engine) is down. Please contact your webmaster.
Please can you download this file unzip it and upload it to your server http://www.s2member.com/r/server-check-tool/
so that you can navigate to it here website.com/s2member-server-check-120703.php
That will run a couple of compatibility tests and hopefully give us some more info
-
This reply was modified 4 years, 5 months ago by
Philly.
|
|
Hi Philly,
Thanks so much for your help.
I’ve uploaded the unzipped file to the main root directory of this site, but I’m getting a “can’t find” error. But the file that I got at that link didn’t have the -120701 at the end, so first I just took out the numbers in the path, but that didn’t change anything, so I tried changing the name of the php file and that still hasn’t done anything.
Sorry for not understanding. The file is there in both versions at the moment.
|
|
Hi Mary,
What is the name of the file you uploaded? Have you put it in the same directory as wp-config.php?
What are you using to ftp? Can you please check the file permissions on it and also on /s2member-files/ directory.
Thank you
|
|
I’m using Filezilla to FTP. I changed the permissions to 777, and I did have them as that already for s2member-files.
Yes, I have that file in the same directory as wp-config.php.
When I downloaded the file you referred me to, it doesn’t have the same name, it is s2m-server-check.php. So I am looking for it at website.com/s2m-server-check.php. Is that right?
Thanks
-
This reply was modified 4 years, 5 months ago by
Cristián Lávaque. Reason: Remove domain name
|
|
Yes Thank you Mary,
Everything looks fine with that test.
Can you try linking to the file like this
?s2member_file_download=
instead of
wp-content/plugins/s2member-files/
So your code would be:
<object id="mediaplayer1" width="1000" height="778" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=http://website.com/?s2member_file_download=video.mp4">
<param name="src" value="../../../training/player.swf" /><embed id="mediaplayer1" width="1000" height="778" type="application/x-shockwave-flash" src="../../../training/player.swf" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://website.com/?s2member_file_download=video.mp4">
</object></div>
-
This reply was modified 4 years, 5 months ago by
Philly.
-
This reply was modified 4 years, 5 months ago by
Philly.
|
|
I’m sorry, I copied and pasted your code and I get the error
“task Queue failed at step 5: Playlist could not be loaded: Playlist file did not contain a valid playlist.
I don’t want you to waste your Saturday!
|
|
Sorry Mary,
I’ve done a few tests with that player trying to get it too work but have been unsuccessful.
My advice would be to give jw player a try.
Out of interest are you able to download the video ok if you type this in your address bar?
http://website.com/?s2member_file_download=video.mp4
-
This reply was modified 4 years, 5 months ago by
Philly.
|
|
Hi Philly,
Yes, what it does is download it so I can watch it, and it does run.
What a drag. He moved all of his videos already from Screencast as he was worried that they’d start charging him. To find out we have to move them again! argh.
Thanks so much for all your help,
take care
|
|
If the video files are large, then it may be a problem to use the s2member-files folder, because in order to secure them, they have to be served via the script, which can be problematic with large files. In that case it’s advisable to use Amazon S3. I know you said you didn’t want to pay another service, but honestly, space and bandwidth are super cheap wit h them. And if you couple it with their CloudFront distribution service, then videos can be streammed very nicely. Philly knows a ton more about video than me, and he can correct me if I’m wrong.
|
|
Hi Cristián,
Thank you so much for all your help, on this and the other issues I’ve asked about. I’m getting there now.
I know it is great to have these questions and answers online for others to look at, but is it possible later to fuzz out the address so the company name isn’t there for all to see, or to come up in searches? I know you need it, but I don’t want the client to see his paths.
I’m going to move the videos to a service, so that will work better. You are right, the videos are quite large, and that is likely the problem as they worked going directly to my own servers.
Thanks again.
|
|
And Philly (or Phil)
Thank you!
|
|
No problem. Glad to help! :)
I just removed the domain name from my posts and yours, Philly had already done that with his.
|
|
Thank you Cristián and Philly,
I can’t tell you how much I appreciate all your help.
you are both the best!
Mary
|
|
|