|
|
|
|
|
|
|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|
#1 |
|
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
First issue, your embedding is wrong for IE. IE doesn't support embedding the same way that Firefox/Safari does. The video does play for me in Firefox, but does not play in Safari or Chrome. Since Safari/Chrome are based on webkit, I would suspect something is wrong with the embedding code. I don't have IE to test, but, I am 95% sure that you need the <object> tags to embed flash for IE.
From their wizard: http://www.longtailvideo.com/support...r-setup-wizard Code:
<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('player.swf','mpl','470','320','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://www.exquisiteangelz.com/trailer.flv');
so.write('mediaspace');
</script>
Code:
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='320' id='single1' name='single1'> <param name='movie' value='player.swf'> <param name='allowfullscreen' value='true'> <param name='allowscriptaccess' value='always'> <param name='wmode' value='transparent'> <param name='flashvars' value='file=http://www.exquisiteangelz.com/trailer.flv'> <embed type='application/x-shockwave-flash' id='single2' name='single2' src='player.swf' width='470' height='320' bgcolor='undefined' allowscriptaccess='always' allowfullscreen='true' wmode='transparent' flashvars='file=http://www.exquisiteangelz.com/trailer.flv' /> </object> the .htaccess protection would work if you were providing a direct link to the content, but, someone could just cut and paste the url. On the server side, you could switch to lighttpd which does handle FLV streaming, and use something like: http://redmine.lighttpd.net/projects...BeforeDownload which is a different method of protecting the content. You would set up the one directory as the trigger, and any request to access the protected content would be denied unless the trigger had been set. Of course, if they have viewed the site and set the trigger, they could easily view the source and download the content.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
|
|
|
|
|
#2 | |||
|
And Lord, we are especially thankful for nuclear power, the cleanest, safest
energy source there is. Except for solar, which is just a pipe dream Join Date: Sep 2008
Posts: 229
|
Ok, I have just updated the player.swf and the swfobject.js file to the latest. I have also updated the embeddable code for the video.
I have done testing on my side and the hotlink protection is working under IE, Chrome and Opera. It doesn't work under Firefox or Safari as I was able to play them. Quote:
Quote:
On the actual site, the path to the video is a relative path and not a URL. Quote:
|
|||
|
|
|
|
|
#3 |
|
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Are you using Safari on a Mac or PC? Not sure if it makes a difference but I'm on a Mac and the movie does not play.
I just tried it again after refreshing the page to be sure I had the latest. I tried it just now in Mac Firefox and then movie does play so it seems that your hot linking doesn't work in Firefox but you already knew that. |
|
|
|
|
|
#4 | |
|
And Lord, we are especially thankful for nuclear power, the cleanest, safest
energy source there is. Except for solar, which is just a pipe dream Join Date: Sep 2008
Posts: 229
|
Quote:
Yes. I have tried Firefox and the hotlink protection doesn't work. As I understand, either Firefox doesn't pass a referrer either the flash player doesn't pass a referrer in Firefox. |
|
|
|
|
|
|
#5 | |
|
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Quote:
I don't know if you are making your own FLVs or someone else is providing them but if you are making them you could do what I do and make them mp4 files instead of FLV and embed the mp4 in your Flash player. Like I did in this test page. |
|
|
|
|
|
|
#6 | |
|
And Lord, we are especially thankful for nuclear power, the cleanest, safest
energy source there is. Except for solar, which is just a pipe dream Join Date: Sep 2008
Posts: 229
|
Quote:
Last edited by A.J. Angel; 2010-01-18 at 06:50 PM.. |
|
|
|
|
![]() |
|
|