[news] Custom Resolution Support for Flashes

Posted: September 7, 2024


Something I realized shortly after adding the support for SWF fanart is that, due to how the site works, any flashes uploaded that are not at a resolution of 550x400 would be displayed improperly.

It took me a while to get around to fixing this (nobody used the SWF fanart support anyway, LOL.) but now SWF files of a custom resolution can be uploaded!
 

The JavaScript on the player.html page contains an additional check for a string matching "_(number)x(number)" to set a custom resolution

EXAMPLE: If a file was named "coolflash_480x360.swf" the script will now detect the "_480x360" at the end of the filename and set the width to 480 and height to 360. If no resolution is specified in the filename, it will default to 550x400.

 

You do not need to do anything different if you choose to submit a flash file, I will add the resolution information to the filename myself (though you can still do it yourself if you REALLY want to.)

I may end up using this myself in the future as well to upload flashes of other resolutions!

 

all ur flash r belong 2 me

- jon (°Δ•)



> go to comments