View Full Version : FPP MP3Player working!.... Almost
Scott Witte
09-18-2007, 12:09 AM
After all the discouraging posts about the FPP MP3player not working properly and having no luck myself I took a longshot and simply recompiled it for Flash 8. (Also 9 with no difference.) Voila! It played sound just as expected. Problem is -- a BIG problem -- couldn't see it so couldn't control it.
As for file switching, that worked fine. Go to a pano linked to another sound file and it immediately switched to playing that file. Go to a pano with no linked player and it properly switched off about 1/3 of the time. :confused: The workaround is to play a brief silent file for those panos.
Code I tried ranged from the super simple:
<spot id="sound_VALS" url="mp3player.swf?file=Sound/VALS.mp3">
to more complete:
<spot id="sound_VALS" url="mp3player.swf?file=Sound/VALS.mp3&repeat=2" linked="Images/VALS_Ex" static="1" staticX="6.00" staticY="-35.00" align="LB" salign="LB" />
Nothing I've tried made the player visable. So if someone could figure out how to make this visable again, we would be back in business at least until Denis's rumored new super player shows up.
Scott Witte
09-18-2007, 04:00 AM
Wow. I'm surprised at the settings I needed to make this visible!
<spot id="sound_VALS" staticX="180.00" staticY="-474.00" salign="LB" scale="0.80" static="1" url="mp3player.swf?file=Sound/VALS.mp3&repeat=20&level=60" linked="Images/VALS_Ex" />
Do those positioning number look a little unusual to you?
Be careful as you scale the button. Scaling moves it significantly and you need to make big changes in static positioning at the same time. I'm no AS expert, but I believe the positioning issues have to do with Denis's intent to automatically position the control in the lower left. Whatever code did that apparently doesn't work the same in Flash 9. (stage.allign= "LT"?)
Also, the control doesn't show up in full screen.
If there is a place to upload the recompiled file I would be happy to do that. Otherwise, if you have flash Pro just open the FLA file and export it back out to mplayer.swf. I used Flash 8 and AS2 settings. AS3 seemed not to work. Use positioning similar to mine to start. You may need to adjust significantly for it to even show up in your movie.
This may not be the best solution currently available, depending on your needs. But it is at least again an option.
phberlin
09-18-2007, 12:18 PM
Hey, sounds good! You could send me the file if you like (just drop me a "private message" and I'll send you my e-mail-address) and I'd host it on my webspace and post the link here.
Regards, Ph.
cheathamlane
09-18-2007, 05:57 PM
If there is a place to upload the recompiled file I would be happy to do that. Otherwise, if you have flash Pro just open the FLA file and export it back out to mplayer.swf. I used Flash 8 and AS2 settings. AS3 seemed not to work. Use positioning similar to mine to start. You may need to adjust significantly for it to even show up in your movie.
Hey there:
If you put the FLA into a ZIP archive, you should be able to simply attach it to your forum post right here! :)
Scott Witte
09-18-2007, 07:01 PM
OK. I've uploaded what I have in a zip file. See link below.
This revised version works better in Flash 9. Stage alignment section was removed from the Action Script so the player would be visible and remain visible in full screen. I also repositioned the player to the top left of the stage so you the alignment values were more normal (see code below) and scaling the image no longer causes big shifts in its placement. It was recompiled for Flash 8 and now works in Flash 9.
There is still some issue with unloading (one sound file occasionally plays over the next, for instance.) But so far that has happened rarely for me. Denis wrote back in may:
This is a problem of Flash Player 9. There is no forced unload, the garbage collector unloads the previous sound in unknown time.
One of the solution is to use remove handler in version 2.1, you can see source plugins/flvplayer.fla (for Flash CS3 only). For AS1/AS2 sounds it requires an additional programming (LocalConnection and so on).
I need to update the mp3 player, looks like the best solution is to handle all sound files in the single application...
We all still eagerly await Denis's new version. Denis?
Note: Playing a file usually stops the previous file from playing. Almost always in my brief experience. If you want silence, play a brief file of silence such as included in the Zip. (Silence.mp3) You can always make the spot not visible.
As a coding example that works for me:<spot id="snd_UGall_Br" url="mp3player.swf?file=Sound/Silence.mp3" linked="Images/U_Gall_Br" static="1" staticX="56.00" staticY="-18.00" salign="LB" />
So this will still not be right for everyone and comes with absolutely no guarantees of anything whatsoever. But, for what its worth.....
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.