Go
Not registered? Sign up!

XMOOV disabling direct file download

Google Translate
5 posts | return to the Modules forum | get the rss feed for this thread

Oct. 28, 2009Chris

Hello,

I am looking for the way to modify xmoov module so that it does not attempt to download file if called directly from the url ie. www.mysite.com/stream/xmoov.php?file=test.flv.

I would like to allow people use the jwplayer to stream files only through xmoov, but not to download them.

I will appreciate any help with this.

Have a good day!

Oct. 28, 2009Zachary Ozer

Hi Chris,

The general mantra is that if someone can view the file, they can download it.

Sorry!

Oct. 28, 2009Chris

Yes, that's understandable, but it would be useful for me just to restrict the execution of xmoov.php script to the player (as a streamer) only, not as a direct download tool (ie.when the user types the direct path to it).

For example when I put the the following code in the beginning of xmoov.php:

if (!defined('AUTH'))
{die('Access denied!')
exit;}

then the script won't execute when accessed directly,
but it will also not stream when called by jwplayer.
(video not found message). AUTH is my control variable, which I set before calling the jwplayer to stream.

I will appreciate any help with this.

Thanks in advance!

Oct. 29, 2009Zachary Ozer

Hi Chris,

Best for you to talk to the xmoov guys about this - it's not something that we support.

Oct. 29, 2009Chris

Ok, thanks, I will try to contact them...

Chris

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.