Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Developing firefox plugin. Knowing when to use.

  • 4 Antworten
  • 3 haben dieses Problem
  • 2 Aufrufe
  • Letzte Antwort von macb6497

more options

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,

Ausgewählte Lösung

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.

Diese Antwort im Kontext lesen 👍 0

Alle Antworten (4)

more options

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.

more options

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?

Geändert am von macb6497

more options

Ausgewählte Lösung

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.

more options

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

Thanks, though.