Banner
Views: 778,692,757
Time:
13 users online: 7 Up,  Atari2.0, h.carrell, hash, Kaiserlucas, kamekku14,  KKevinM,  Manofer, Mediocre Espurr,  Ninja Boy, TheBiob,  Tob, Yoshin - Guests: 54 - Bots: 162 Users: 40,831 (1,686 active)
Latest: Gamer Appledash
Tip: It's recommended to use these when ripping graphics.Not logged in.
Embeddable SPC player, updated! + new music section SPC player!
Forum Index - Donut Plains - Computers & Technology - Embeddable SPC player, updated! + new music section SPC player!
Pages: « 1 »
Last summer, I made a Greasemonkey script that allows you to embed an SPC player in forum posts and PMs on SMWC.

The major limitation of this SPC player is that it was limited to just files in the file bin. Well, no more! The SWF and the SPC/Zip files are now routed through a reverse proxy, allowing you to embed an SPC from any site that allows hotlinking, such as Dropbox.

To use it, install this Greasemonkey script. You will need either Greasemonkey or Tampermonkey. You will also need Flash Player.

To embed an SPC player, add the class embed-spc to any links pointing to an SPC file or a Zip file containing SPC files. Like this:

Code
<a class="embed-spc" href="http://bin.smwcentral.net/u/7478/smw.zip">Super Mario World OST</a>
<a class="embed-spc" href="http://bin.smwcentral.net/u/7478/yi.zip">Yoshi’s Island OST</a>
<a class="embed-spc" href="http://bin.smwcentral.net/u/7478/dkq.zip">Donkey Kong Country 2: Diddy Kong’s Quest OST</a>
<a class="embed-spc" href="https://www.dropbox.com/s/zhxir2guz09nwo6/mmx-16.spc?dl=1">Megaman X – Storm Eagle</a>


And you will get this:

Super Mario World OST
Yoshi’s Island OST
Donkey Kong Country 2: Diddy Kong’s Quest OST
Megaman X – Storm Eagle — As you can see, both Dropbox links and file bin links work now!

Because of the limitations of Flash and Javascript, only Zip files and unarchived SPCs are supported. SPCs in Zip files must be compressed using DEFLATE; uncompressed Zip files are also supported.

Edit: There is an updated SPC player script for the new music sections! See the next post to get it.

Edit 2: If you have had problems getting the new embeddable SPC player to work, uninstall it and then install the new version (same URL), and then clear your cache. I may have goofed up the first upload.

--------------------
Update: I've rewritten the script for the new music section! If you ever installed the script I made for the old music section, it should be updated automatically. If not, click here to install it. It is separate from the SPC embedder for the forums.

The new music section is paginated, which means the page will reload every time you switch pages, getting rid of whatever you might have been listening to. To fix this, install this script and you will be able to switch between music section pages without losing what you're listening to. The entire page unfortunately will still be reloaded if you view a submission page.

--------------------
Pages: « 1 »
Forum Index - Donut Plains - Computers & Technology - Embeddable SPC player, updated! + new music section SPC player!

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented