Fully Scriptable Plug-ins for Mozilla
Thursday July 18th, 2002
Yesterday, the Netscape Tech Evangelism Team made a posting to netscape.public.mozilla.plugins announcing that the latest versions of Macromedia Flash and Apple QuickTime are scriptable in Mozilla. Read the full article for more details.
Thanks to Asa for the news.
Full Article...
The linux flash player plugin is outdated and slow unfortunately
Well that's what happens when you use an inferior operating system. Just kidding, of course. That's the one thing that made me switch back to Windows, Key applications I needed just weren't there. I wish the problem would get better, but I just don't see it happening.
Well Linux is certainly not inferior, jokes or not. All OSes have their strong points.
And i once in a while, go back to Windows (Win2k i dual boot, WinXP had to many probs). I do appreciate the compatability. But after a short while i also have the urge to return to my very customised, rock stable, and secure feel that Linux gives me... Besides, it runs almost everything i would want perfectly anyway (i wouldnt mind kazaa tho ;) I could never switch to Windows, i would simply miss Linux too much.
btw i run Slack 8.1 and lovin it
Flash is a key application for you?
Unless of course, you see this as an advantage. No updated flash? Boo hoo for me ... :)
Here's my letter to Macromedia concerning the audio playback issue on Linux, tell me what do you think about it (maybe we could base a petition on it, so that our voice finally gets through to people at Macromedia):
=================================================================================
There's a critical bug in libflashplayer, for which there is a known fix. Implementing that fix would probably take a Macromedia programmer 5 minutes (most of this time being the formal paperwork for getting approvement for patch check-in). Fixing this bug will make life better for thousands of users of Mozilla/Netscape browser worldwide, who visit 2 million flash-enabled web pages that exist today.
The bug is because certain latest versions or flash player library released by Macromedia forget to open audio device with in a non-blocking mode (O_NONBLOCK), as it was with older versions. This causes the Flash plugin and the whole browser to hang, if any other application (like a sound player) uses the audio device.
The simple solution which should eliminate the problem would be to add O_NONBLOCK flag to the open() system call which opens the audio device for sound playback. It is located in libflashplayer, and instead of:
open("/dev/dsp", O_WRONLY), Flash player library should do this:
open("/dev/dsp", O_WRONLY|O_NONBLOCK)
The general description of the bug can be found here:
<http://bugzilla.mozilla.org/show_bug.cgi?id=58339>
Possible fix suggestion
<http://bugzilla.mozilla.o…how_bug.cgi?id=58339#c210>:
Proof that this has broken with latest versions of libflashplayer:
<http://bugzilla.mozilla.o…how_bug.cgi?id=58339#c135>
Interesting comment outlining the importance of fixing this bug as soon as possible:
<http://bugzilla.mozilla.o…how_bug.cgi?id=58339#c218>
THIS ISSUE REALLY HURTS LOTS OF USERS AND HURTS THE POPULARITY OF SWF FORMAT ITSELF!
Well, for one thing, I wouldn't use the all caps at the end. Shouting is never the answer.
Otherwise, it looks ok.
I just installed the 6r40 plugin, but I can't get that demo to work. Has anyone else been sucessful? (Win2k)
Same with me! It does not react to any click.
Build ID: 2002061104. I deleted the plugin from my plugin folder and then re-installed, no luck. Checked about:plugins, correctly installed according to the info there. It was a plugin change, not a browser change, and no mention of a particular build was made, so it should work for anyone using a recent build, right?
Hmm...
Granted I am on the Mac and not Windows, but this may help you. On the Mac you can configure the Quicktime plugin to play Flash. I had done this since the Mac flash plugin for Netscape was outdated. By unchecking the preference for Quicktime plugin to play Flash I got it to work. BTW for the changes to take effect you have to relaunch Mozilla.
Hope this helps.
Paul.
Interesting that you mention it but in the last few builds i downloaded of 1.1a+ (currently running the July 9 build) it broke some of my plugins as well.
Java and flash work fine... Crossover stopped working, and so did PDF files.
I hope it works again in 1.1b whenever that comes out
About:plugins shows the correct version of flash, but when I visit the page I get the following in the JS console :
Error: flashnav.SetVariable is not a function
Source File: <http://www.ford.de/firefly/spg/spg.asp?SessionID=>{82D93C9B-D351-4563-A5DD-9A7AF4E88FBB}&page=flash_nav&PageID=&NavID=home&SiteVerID=2&LangID=31
Line: 205
I see no difference with the new plug-in installed. IE does the same thing as Mozilla on this page, it's just a bar but none of the button do anything significant. IE is giving a javascript error so I'm highly inclined to believe that this page has issues.
This WFM with both IE5.5 and NS4.78 but not with mozilla. I found bug 86646 about a browser sniffing issue on this site which may cause this problem. Are those of you that do see the correct site contents use mozilla or NS6/7?
make sure flashplayer.xpt is in the plugins dir or the components dir.
flashplayer.xpt isn't anywhere on the harddrive, let alone in the plugins dir or components dir. Where do you get such a beast? Because it's not in the installer that we're supposed to download to get this to work, that's for sure.
I had the same problem with new Flash installation in two computers I have. about:plugins showed the twoo plugins installed: the old one (Flash 6r23) and the new one (Flash 6r40). In both cases I fixed it by deleting the flash plugins from plugins directories manually (npswf32.dll)and reinstalling Flash. Don't forget to close the browser (including Quick launch). Another thing, the test site they mentioned in the full article above is in Germany and sometimes it loads very slowly even with broadband connection)
I was having similar problems until I found this xpt file and installed it in my plugins dir. It was in my Netscape7 folder (C:\Program Files\Netscape\Netscape 7\components).
You need to completely close and restart Mozilla to get the plugin working.
where can I find this file ? it doens't seem to be installed with the plugin, so where can we find it as a standalone file ?
flashplayer.xpt.
It seems that Flash player 6 installer only installs it for Netscape 6 on my machine (it correctly detects 3 intsallations of netscape-compatible browsers: Netscape 4.77, Netscape 6 6.2.1, Mozilla 1.0 (pl), but it only installs the flashplayer.xpt in Netscape6\components directory).
Could someone please explain the main differences between IE's use of ActiveX for plugins and Mozilla use of XPCOM? As far as I understand, the two should be pretty close architecturally speaking. IE allows ActiveX to be used in other ways as "plugins", but I'm not sure if there's a lot of difference between just plain vanilla ActiveX controls and ActiveX controls used as plugins. Can XPCOM be used in the same way in Mozilla, to embed "random" functionality into a web page like a Java applet? What are the security mechanisms involved and how are they different from those (highly criticized) ones in IE?
I don't think there is a great deal of security, but there are fewer XPCOM-enabled plugins. Windows comes with a great many ActiveX/OLE controls, some of which have had security holes and some of which are not really intended for use in Web pages (but can be...).
It is entirely possible that a plugin such as Flash or Quicktime could include a security flaw which might be exploitable via the XPCOM / Javascript plugin communication mechanisms (or by some other mechanism such as passing invalid parameters to the embed tag). However, Mozilla won't have the same variety of available controls to abuse.
So in summary, Mozilla's system may be less secure in principle (no code signing, no control over plugin scripting), but in practice there is a much smaller risk.
(And of course, it is no less secure than Netscape 4's system. I don't recall any Netscape 4 security issues related to Javascript control of common plug-ins).
--sam
By default, no javascript code loaded remotely can instantiate XPCOM components without the user's permission. It is true, though, that once the user has granted permission the component pretty much has carte blanche to do whatever it wants to the users system.
XPCOM and Microsoft COM are both implementations of COM (the Component Object Model). ActiveX is a particular technology implemented *using* MSCOM.
What are the chances that Microsoft will implement something similar for the Windows Media Player plugin for Netscape? :-p
Yes I know next to no chance at all, but it's still annoying that the only thing I go back to IE for now is because my broadband ISP insists on streaming the high resolution movies from it's portal in .asf format in popup windows with scripted playback controls.
Go to the PluginDoc page on mozdev.org. There it explains how to get the Windows Media Plugin to install. I believe all you have to do is copy a couple of DLL's from Windows Media Player's directory to the Mozilla plugin directory.
I listen to my college radio station (streaming audio with Windows Media Player) all the time with Mozilla and it works.
And it does even work under Linux with Codeweaver's Crossover Plugin.
Sorry should have mentioned that I already have the WMP plugin installed in Moz and have listened to streaming audio and watched video through it. The problem is that the popup window launched by the page disables WMP's built-in playback controls and puts Javascript buttons on the page to control playback. So if you want to rewind a bit or even watch the whole video again you have to reload the whole page.
And yes I have brought this up in their newsgroups, but their engineers just say that they include a copy of IE and WMP on every installation CD they send out so why should they need to support any other browser? Of course the fact this also blocks out Linux users is something else that they're not worried about.
Would you mind saying who the broadband ISP is? Sounds like some evangelism might be needed here.
Can anyone point me in the right direction trying to install WMP to work with Mozilla 1.2 beta for OS X? Thanks
I have been under the impression for a long time that Mozilla cannot play in the way ns4 could/can. EG - I have an image that plays a beep noise as I roll over it.
In the past I have gotten round this using Flash, but it was still a pain due to lack of scripting since it meant I had to make the images as Flash movies, instead of using a single hidden movie containing my sound that I could play via script.
Does this mean we'll be able to toggle Flash the fuck OFF when we start getting motion sickness while trying to read text elsewhere on the page?
No, it simply means that the flash/quicktime can now interact with the page which hosts it.
blocking ad servers has become a religion for me since i started using mozilla. still, the flash ads slip through. the best solution i've found is to RENAME the plugin rather than deleting it, so you don't have to download the thing for the odd flash animation you want to see. I also wrote a GUI tool to handle this. it's called jTFlashManager and it's free for the taking with source code on <http://www.jtedley.com.> One caveat -- it runs on Java and was compiled with 1.3. so, until someone writes a plugin....
jtedley
If I did not want to use the Flash plugin then I would uninstall it.
I want to use Flash. I don't want to be used by flash. There are a half-dozen sites where I use the flash (usually either navigation or games) and there are dozens of sites that serve obnoxious flash advertisements. Capability to toggle flash on and off would be nice. I belive it's one of the most frequently requested enhancements to Mozilla.
--Asa
It might be possible to do this with a JavaScript bookmarklet.
And of course that was in response to the request to toggle flash. If it's scriptable, it should be possible to call the stop play method.
nor Netscape.
I've tried both the QT6 online installer and standalone installer, they don't install the qt6 plugin and don't allow me to select a Netscape-compatible's plugins folder by hand :(.
How did you install mozilla?
When I installed Quicktime 6 it detected Nav4.79, Mozilla 1.0, and my mozilla nightly. If you just unzip your mozilla build it might not have the proper regirtry entries (Assuming you're on windows)
It was funny when I installed it. The installer detected 8 browsers, but I only had 5 of them. Oh well.
- MXN <http://mxn.netfirms.com/>
What Mac OS version are you running. On Mac OS X the plugins are all installed in the Internet plugins folder in the Library folder were they are all advailable for any browser you select and uses plugins to use.
I suspect you are using a pre-OS X OS version. If you have Netscape 6 or 7(beta) installed run the installer and copy the plugin over from Netscape 6 or & (beta) to Mozilla's plugin folder. It should work. I hope this helps.
Did you download the English version? If you chose any other language than English when downloading you still get version 5. (That's what happened to me when chosing German)
I don't like flash. I think, it's as bad as java applets. However, some pages do not work without them. So I'd rather be able to turn it on/off when I need it.
Right now, I have to move those plugin files to appropriate dirs and then move them out, and I don't like this solution.
I second your request.
It would be nice to be able to modify some of the preferences without going to preferences or by moving files. Opera browser preferences can be modified by pressing "F12", and I use this frequently to avoid many annoying sites. A simillar function in Mozilla would be great.
Is there a Mozilla/Netscape version of the Adobe SVG Viewer coming anytime soon?
My company is using SVG quite a bit in our website now and it's killing me to tell my clients to use IE.
Alternatively, will native SVG make it into a major release soonish?
|