X
Tap here to go to the mobile version of the site.

Support Forum

Developing firefox plugin. Knowing when to use.

Posted

I always ask this question when switching to a new platform/interface.

I'm in the process of developing a simple firefox plugin that allows users to view .mkv video on the browser.

Just how someone would develop a plugin for .mp4 video support.

My question is this: How will firefox know to use my plugin when it is trying to stream .mkv video?

As far as I'm concerned all plugins need to be running and firefox needs to cycle thorough them, testing each one to see if it can play the video.

This is slightly confusing. I already know how to get plugins to install, and the programming part where I incorporate support for a given file type is fairly easy.

But, how will firefox know when to use my plugin?

Thanks,

I always ask this question when switching to a new platform/interface. I'm in the process of developing a simple firefox plugin that allows users to view .mkv video on the browser. Just how someone would develop a plugin for .mp4 video support. My question is this: How will firefox know to use my plugin when it is trying to stream .mkv video? As far as I'm concerned all plugins need to be running and firefox needs to cycle thorough them, testing each one to see if it can play the video. This is slightly confusing. I already know how to get plugins to install, and the programming part where I incorporate support for a given file type is fairly easy. But, how will firefox know when to use my plugin? Thanks,

Chosen solution

Yes, that should work with the object and embed tag.

It won't work if files are send with an audio or video tag, because those tags only support specific MIME types in Firefox.

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • The IcedTea NPR Web Browser Plugin (using IcedTea6 1.9.10 (fedora-55.1.9.10.fc14-i386)) executes Java applets.
  • Shockwave Flash 10.3 r183
  • This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.
  • The Totem 2.32.0 plugin handles video and audio streams.
  • DivX Web Player version 1.4.0.233

Application

  • User Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17670 solutions 159854 answers

If servers sends such a .mkv file with a specific MIME type then you need to make sure that your plugin supports that MIME type.
You can see on the about:plugins page which MIME types are supported by a plugin.

If servers sends such a .mkv file with a specific MIME type then you need to make sure that your plugin supports that MIME type.<br /> You can see on the about:plugins page which MIME types are supported by a plugin.

Question owner

I see. So if I associate my plugin with say: .mkv, mkv, or video/x-matroska, etc, firefox will pull my plugin down for use when it meets such a stream?

I see. So if I associate my plugin with say: .mkv, mkv, or video/x-matroska, etc, firefox will pull my plugin down for use when it meets such a stream?

Modified by macb6497

cor-el
  • Top 10 Contributor
  • Moderator
17670 solutions 159854 answers

Chosen Solution

Yes, that should work with the object and embed tag.

It won't work if files are send with an audio or video tag, because those tags only support specific MIME types in Firefox.

Yes, that should work with the object and embed tag. It won't work if files are send with an audio or video tag, because those tags only support specific MIME types in Firefox. * https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements

Question owner

That's ok. I don't plan on using HTML5 or the object tag because I use a specific web player (flowplayer).

Thanks, though.

That's ok. I don't plan on using HTML5 or the object tag because I use a specific web player (flowplayer). Thanks, though.