- Summary
- This download add-on for MEGA allows users to easily embed MEGA links into forums or websites, automatically displaying the appropriate media player or file preview based on the file type, without requiring any additional plugins or settings.
This download add-on for MEGA lets you easily embed MEGA links into forums or websites, automatically displaying the appropriate media player or file preview based on the file type, without requiring any additional plugins or settings
A plain MEGA embed turns every MEGA link into MEGA's video player - so a zip, a picture or a song gets a player that cannot play it. This add-on finds out what the file really is and shows the right thing instead. MEGA keeps file names encrypted, but the key that is in the link opens them, so the forum asks MEGA once (a small request, many links at a time), reads the real name and kind, and remembers the answer for good.
- Stand-alone: it needs no other MEGA add-on - paste a MEGA link and it does the rest
- A video gets MEGA's player, a picture shows in the post, a sound plays in Drac's Audio Player (optional), a zip says what is inside
- Every other file is a colored card with its real name, size and a download button
- Cards that are "being prepared" turn into the finished one by themselves - no refresh
A plain MEGA embed turns every MEGA link into MEGA's video player - so a zip, a picture or a song gets a player that cannot play it. This add-on finds out what the file really is and shows the right thing instead. MEGA keeps file names encrypted, but the key that is in the link opens them, so the forum asks MEGA once (a small request, many links at a time), reads the real name and kind, and remembers the answer for good.
- A video - MEGA's own player in a 16:9 frame as wide as the post (you can cap its width).
- A picture (jpg, png, gif, webp) - the picture itself, in the post, like an
[IMG]image - click it and XenForo's picture viewer opens. A background job fetches one copy; JPEG and PNG are shrunk to 1600 px and turned upright, a GIF or WebP is kept as it is so an animation still moves. Until the copy is ready the card says "Preview is being prepared". - A sound (mp3, flac, ogg, oga, opus, wav) - Drac's Audio Player - cover, title, artist, album, quality and lyrics read from the file, queue, mini player, speed and visualizer. Drac's Audio Player is optional: without it a sound is simply a download card.
- A zip - a colored card with a download button and what is inside: how many files, how big they are unpacked, how much smaller the zip is, the types of file (colored chips), the folders and a fold-out list of the first file names. The zip itself is never downloaded - only a few kilobytes from its end are read.
- Anything else (rar, pdf, m4a ...) - the same colored card - the color follows the kind of file (archive amber, music green, picture pink, video red, PDF red-orange, document blue, spreadsheet deep green, code teal, program purple ...) - with the name, size and a download button.
- A link MEGA says is gone - a gray, struck-through card: "No longer available on MEGA".
- Turns by itself - a card that says "being prepared" swaps itself for the finished one a few seconds later - also in a reply that has just been posted by AJAX. No refresh.
- Paste and go - paste
mega.nz/file/...,mega.nz/embed/..., the oldmega.nz/#!...style or amega.co.nzlink and it becomes the right tag. Folder links stay ordinary links. - Safe by design - only MEGA's own storage servers are contacted, through XenForo's own "untrusted URL" client (it refuses internal addresses and re-checks redirects); size limits (20 MB for a picture and 100 MB for a sound by default); a picture is checked by its bytes, not its name. Any doubt or error leaves the tag to the video player - the worst case is what a MEGA link always showed.