Forum Index > FlashYourWeb OS Support > MiniSlide Show New Topic Post Reply
 a couple of questions .. minislideshow and the S3 cloud .. and fullscreen quality stuff
 |  Printable Version
atrens
 September 05 2011 20:16 PM (Read 1506 times)  
Forum Newbie
Newbie

Status: offline

Registered: 09/05/11
Posts: 5

Hi,

I'm using a derivative of the method described by Stephen Skory here -

http://stephenskory.com/s3-with-gallery2

to allow me to keep my images on s3 whilst hosting my photo site at home. It works pretty well using the your gallery 2.1.0 slideshow module, but causes minislideshow 3.0.1 to behave very strangely.

Basically what I see are thumbnail sized images flashing by in rapid succession in parallel to the (much slower) display of image titles. useFull changes things slightly in that instead of flashing thumbnails the script seems to grab fullsized images and display them unscaled/uncropped without any kind of fading or other effects.

I think that my rewrite.py (similar to Stephen's) may be causing the consternation as it generates one-time access cookies to allow clients to pull down images from s3 over https

Having said that it does work perfectly for the 2.1.0 slideshow, and minislideshow is apparently able to grab fullsize images as that's what I see it displaying with useFull though unscaled and cropped ..

I'd like to use mini but my home site's uplink is pretty darn slow and pushing up full sized images is orders of magnitude slower than grabbing them from the S3 cloud so I'm hoping that there's something that can be easily tweaked. Smile

Best Regards,

--Andrew


 
Profile Email
Quote
suprsidr
 September 06 2011 03:44 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Flash's security model does not allow image transformations across domains(even sub-domains) without permission.
You'll need a cross domain policy file in the root of your site - like mine.

Our friends over at slideshowpro have setup a tool to help you make yours.

-s


There will always be...
 
Profile Email Website
Quote
atrens
 September 06 2011 09:40 AM  
Forum Newbie
Newbie

Status: offline

Registered: 09/05/11
Posts: 5

Quote by: suprsidr

Flash's security model does not allow image transformations across domains(even sub-domains) without permission.
You'll need a cross domain policy file in the root of your site - like mine.

Our friends over at slideshowpro have setup a tool to help you make yours.

-s



Hi Suprsidr,

I read the explanation over at slideshowpro.net and if I'm reading it correctly I need a crossdomain.xml file over on the s3 side (from whence the data is being pulled)?

Here's what I added to both atrens.ca/ and s3.amazonaws.com/atrens-data/ -

$ cat crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>

I'm intending to tighten this up a bit, but thought leaving it wide-open initially might rule out any perms issues.

At any rate this didn't seem to help ..

I see that you mention the blocking of 'image transformations' .. that seems to be consistent with what I'm seeing - not getting any image tranformations happening ..

Maybe I need to swizzle the s3 bucket link a bit to make it seem like crossdomain.xml is at '/' instead of at /atrens-data/ ?

--Andrew


 
Profile Email
Quote
atrens
 September 06 2011 11:18 AM  
Forum Newbie
Newbie

Status: offline

Registered: 09/05/11
Posts: 5

Hi Suprsidr,

Now I have both crossdomain.xml's in place (using the swizzled virtualhost form of my s3 url so that crossdomain.xml is at the root level), I've also removed acl's from the s3 file so all can look directly -

http://atrens.ca/crossdomain.xml
http://atrens-data.s3.amazonaws.com/crossdomain.xml
https://atrens-data.s3.amazonaws.com/crossdomain.xml

I've also confirmed that the v2.1.0 slideshow and the regular gallery stuff still all work perfectly ..

... but mini is still broken .. though now in a slightly different way -

now it appears to be stuck on the first image (loading 1/32) .. in the background I see my browser quickly cycling through image queries to S3 but nothing gets displayed.

I grabbed a tcpdump capture and there's no evidence that mini is actually even trying to grab crossdomain.xml. Although maybe it is - but just encrypted as part of its https session to s3..

I guess that I can also try the cloudfront thing, but it seems to me this virtual host form of the url should suffice, no?

--Andrew


 
Profile Email
Quote
suprsidr
 September 06 2011 15:40 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

There very easiest way to solve this is to host the minislideshow.swf and the images on the same domain.

the mediaRss xml can be served from anywhere, just have the swf and images in on the same domain.

-s


There will always be...
 
Profile Email Website
Quote
atrens
 September 06 2011 19:49 PM  
Forum Newbie
Newbie

Status: offline

Registered: 09/05/11
Posts: 5

Quote by: suprsidr

There very easiest way to solve this is to host the minislideshow.swf and the images on the same domain.

the mediaRss xml can be served from anywhere, just have the swf and images in on the same domain.

-s



Hmm..

I have

http://atrens-data.s3.amazonaws.com/crossdomain.xml and
http://atrens-data.s3.amazonaws.com/minislideshow.swf

both publicly accessible ..

then I have -

<div id="theMini">Generated By <a href="http://www.flashyourweb.com/staticpages/index.php?page=embed-o-rator" target="_blank">The Acme MiniSlideShow EMBED-O-RATOR</a></div>
<script src="http://atrens.ca/gallery2/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
var so = new SWFObject("http://atrens-data.s3.amazonaws.com/minislideshow.swf", "minislideshow", "640", "640", "9.0.115.0", "ffffff"Wink;
so.addParam("flashVars","xmlUrl=http://atrens.ca/gallery2/mediaRss.php?g2_itemId=37196&showDropShadow=true&delay=2&useFull=true&showControls=always"Wink;
so.addParam("wmode","transparent"Wink;
so.addParam("allowFullscreen","true"Wink;
so.addParam("allowScriptAccess","always"Wink;
so.write("theMini"Wink;
// ]]></script>


The result is the same as what I was originally seeing .. untransformed images flashing by quickly ..

I've seen some comments about 301 redirects causing problems, to wit -

One other error you may be running into is when the target server is redirecting you to another URL (via 301 redirect) - pretty common with images from some load-balanced services (say, Facebook). When that happens, Flash does not check the policy file after the redirect - in that case, yeah, you have to do a loadPolicyFile() yourself. You only need to do it once, though, preferably during your application initialization (it only queues the cross domain loading, letting Flash know it's ok to load that whenever it's needed


but I'm not convinced that's it because when I private-acl http://atrens-data.s3.amazonaws.com/crossdomain.xml so that it's not directly readable I see no images flashing by and gkrellm shows that no data is getting pulled down. So I think that that file *might* be getting read ..

Is there any debugging/logging that I can turn on to help diagnose this?

--Andrew


 
Profile Email
Quote
suprsidr
 September 06 2011 20:37 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

with http://atrens.ca/gallery2/mediaRss.php?g2_itemId=37196
I get : Error loading childItems
is that an albumId?

BTW I care very little for those who have their gallery so locked down that I cannot debug.

-s


There will always be...
 
Profile Email Website
Quote
atrens
 September 07 2011 06:48 AM  
Forum Newbie
Newbie

Status: offline

Registered: 09/05/11
Posts: 5

Quote by: suprsidr

with http://atrens.ca/gallery2/mediaRss.php?g2_itemId=37196
I get : Error loading childItems
is that an albumId?

BTW I care very little for those who have their gallery so locked down that I cannot debug.

-s



Hehehe! Smile

Indeed it is locked down, I can send you account info via email if you'd like. Smile Unlike much of the facebook crowd I'm very protective of photos of family and friends. Wink

I'm going to try munging mediaRss.php to do the work of rewrite.py directly thus avoiding the 301/302 redirects which I'm suspecting may be tickling the bug. Smile

--Andrew


 
Profile Email
Quote
Content generated in: 0.44 seconds
New Topic Post Reply



 All times are PDT. The time is now 08:40 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content