This content has been marked as final. Show 6 replies
I think #SWA members behave differently since they stream. They have a
soundChannel property which tells them which channel object to use for
sound playback. Once it has preloaded you use member.play() instead of
adding it to a sound channel's playlist
Isn't there a way to not stream them. Just download the complete file and then play iy like an internal sound...looping it?
Download the file with preloadNetThing, create a new #sound member (or
reuse an existing one) (not a #SWA member) and set the filename of the
member to a URL. As long as the member.type is #sound and not #SWA you
can use it like you describe.
Thanks for your help, Sean. It's just about there. It works in Director (authoring), but when I publish the file it doesn't. My playlist returns an empty list, so nothing plays. Any ideas?
Downloading is an asynchronous operation. Did you wait for it to
complete successfully (netDone = 1 AND netError = "OK") before trying to
use the file?
Yeah, I was smart enough to do that. Yet I was DUMB enough not to declare the property that held the URL of my SWA. So it was null when I tried to put it in the playlist. I don't even get why it worked in Director, really. But it's fixed now and all is well. Thanks for your help, Sean!