Recent activity
Subscribe to this feed
cosmophobia asked a question in Schillmania! on November 02, 2009 10:32:
How to check a file's playability!?Hello,
is it posible to check an uploaded file, if it is playable via soundmanager!?
I think checking the extensions/mime isn't enough.
A comment on the question "Soundmanager 2 doesn't work with a download-script." in Schillmania!:
Ok, I found out, what was wrong:
The script was checking the referrer th prevent hotlinking. This doesen't seem to work with soundmanager 2.
I think I have to use it without hotlinking-protection!? – cosmophobia, on September 27, 2009 08:42
A comment on the question "Soundmanager 2 doesn't work with a download-script." in Schillmania!:
I was trying several headers, but none works.
These headers are set:
header("Content-Description: File Transfer");
header("Content-Type: $mtype");
header("Content-Disposition: attachment; filename=\"$fName\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . $fsize);
What do you think is missing?
The debugoutput says:
SMSound._onload(): "AV31" failed to load? - /libPhp/iFrame/download.php?id=3&key=047ab3fb7c02aac621d695ebb9be7b94
soundManager.load(): /libPhp/iFrame/download.php?id=3&key=047ab3fb7c02aac621d695ebb9be7b94
SMSound.play(): Attempting to load "AV31"
SMSound() merged options: { id: AV31, url: /libPhp/iFrame/download.php?id=3&key=047ab3fb7c02aac621d695ebb9be7b94, autoLoad: false, stream: true, autoPlay: false, onbeforefinishtime: 5000, onjustbeforefinishtime: 200, multiShot: true, multiShotEvents: false, pan: 0, volume: 100 }
soundManager.createSound(): AV31 (/libPhp/iFrame/download.php?id=3&key=047ab3fb7c02aac621d695ebb9be7b94)
soundManager.onload() complete
soundManager.initComplete(): calling soundManager.onload()
-- SoundManager 2 loaded (OK) --
(Flash): Enabling polling
Flash security sandbox type: remote
(Flash): _externalInterfaceTest(): JS to/from Flash OK
Attempting to call Flash from JS..
-- soundManager.init() --
soundManager._externalInterfaceOK()
(Flash): Flash to JS OK
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load .//libJs/soundmanagerv2/swf/soundmanager2.swf
-- SoundManager 2 V2.95a.20090717 (AS2/Flash 8), normal polling mode -- – cosmophobia, on September 26, 2009 16:28
cosmophobia asked a question in Schillmania! on September 22, 2009 09:13:
Soundmanager 2 doesn't work with a download-script.Hello,
using soundmanager with direct-links works great, but on my website it is planed to make files only avaiable through a download-script (a PHP-Script which gets a id as parameter, checks the rights & if ok, gives back the filecontent (headers are set too)).
The Script works for downloading through a browser, but soundmanager says, that there is no file.
What do I have to consider when using/writing a download-script, so it can be used with soundmanager 2!?
Loading Profile...
