We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Web export - improper rendering in Firefox
Page Index Toggle Pages: 1
Web export - improper rendering in Firefox (Read 2802 times)
Web export - improper rendering in Firefox
Apr 23rd, 2010, 6:27am
 
I'm not sure exactly where to put this post, but I've exported an animation to the web and find that while Safari renders it correctly, Firefox does not, placing some white blocks around part of the frame. Here is the link:

http://www.mti.dmu.ac.uk/~rherrema/dww3/applet/

I've occasionally seen similar behaviour when using present mode in Processing. Anyone have an idea what's going on? And do you in fact see the white blocks I'm talking about?
Re: Web export - improper rendering in Firefox
Reply #1 - Apr 23rd, 2010, 6:33am
 
This Topic was moved here from Syntax Questions by PhiLho.
Re: Web export - improper rendering in Firefox
Reply #2 - Apr 23rd, 2010, 6:39am
 
The sketch itself is fine.
I see a small white square just above the sketch.
I also see a yellow bar on top of the page: "Additional plugins are necessary to display all elements of this page" (approximative translation from French...).
Viewing the source, I see:
Code:
<embed src="http://www.mti.dmu.ac.uk/~rherrema/sounds/BeneathTheSurface.mp3" autostart=true width=0 height=0 id="sound1"
enablejavascript="true">

In the head of the page! It should be in the body, maybe that's the main source of your issue, sometime Firefox is stricter than other browsers.

I suppose I don't have a media player installed in Firefox (and don't want, I hate pages starting to play music suddenly...), hence the warning and the white box.
Re: Web export - improper rendering in Firefox
Reply #3 - Apr 23rd, 2010, 7:15am
 
I've moved the code to the body, PhiLho, but I get the same result. Are you on a Mac? And if so, which version of the OS and which version of Firefox?

thanks
Re: Web export - improper rendering in Firefox
Reply #4 - Apr 23rd, 2010, 1:07pm
 
Windows XP Pro SP3, Firefox 3.6.3
But as long as I don't install a player for MP3s, I will see this white square...
Re: Web export - improper rendering in Firefox
Reply #5 - Apr 25th, 2010, 10:30am
 
I thought I'd post a screen cap of how this appears on my machine:

http://www.mti.dmu.ac.uk/~rherrema/graphics/renderError.jpg
Re: Web export - improper rendering in Firefox
Reply #6 - Apr 25th, 2010, 11:01pm
 
Do you hear music when running your applet?
Perhaps that's just the default rendering of your MP3 player embedded in Firefox...
Re: Web export - improper rendering in Firefox
Reply #7 - Apr 26th, 2010, 6:36am
 
Yes, it's playing the mp3 file. But when I change the helper application settings, nothing changes - even if I assign mp3 play to an outside app, the embedded mp3 is handled from within Firefox, so it's hard for me to test your hypothesis. I guess I could try it without the mp3 . . .
Re: Web export - improper rendering in Firefox
Reply #8 - Apr 26th, 2010, 6:42am
 
OK, when I take out the embedded mp3, there's no white square. Weird. Any thoughts on how to combat this? The mp3 is absolutely integral.
Re: Web export - improper rendering in Firefox
Reply #9 - Apr 26th, 2010, 7:10am
 
Why don't you use Minim to play the MP3 file? Thus it wouldn't depend on the available plugins in the user's browser.
Re: Web export - improper rendering in Firefox
Reply #10 - May 2nd, 2010, 1:03pm
 
PhiLho, I guess I assumed that the user would also need Minim installed on their computer. Not so? You might recall, though, that the other issue is that I have not been able to export having large audio files in my data folder. Can minim play files outside the data folder?
Page Index Toggle Pages: 1