We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Open links to mp3 with a custom application (linux)

  • 2 отговора
  • 4 имат този проблем
  • 3 изгледи
  • Последен отговор от pm1349

more options

I'm running firefox 28 on linux mint xfce.

I wrote a little bash script that takes a mp3 url as parameter (http://someting.mp3). I want firefox to launch it when I clic a mp3 link. For exemple, a link that point to this url : http://medias-balado.radio-canada.ca/diffusion/2014/03/balado/src/CBF/sojeune-20140321-1957.mp3

I've gone to option > applications and changed "podcast" everything that has "audio" in it to point to my script, but mp3's still opens directly in firefox (incorrectly by the way - firefox plays it very slowly).

In about:plugins, audio/mpeg is associated with vlc.

Anyway I can open these links with my scripts ?

Thanks!

Edit: Just to clarify, when I clic the link above, it should run this command : "myscriptforaudiolinks http://medias-balado.radio-canada.ca/diffusion/2014/03/balado/src/CBF/sojeune-20140321-1957.mp3" I mean, the file should not be downloaded by firefox, the url should simply be passed as an argument to the script.

I'm running firefox 28 on linux mint xfce. I wrote a little bash script that takes a mp3 url as parameter (http://someting.mp3). I want firefox to launch it when I clic a mp3 link. For exemple, a link that point to this url : http://medias-balado.radio-canada.ca/diffusion/2014/03/balado/src/CBF/sojeune-20140321-1957.mp3 I've gone to option > applications and changed "podcast" everything that has "audio" in it to point to my script, but mp3's still opens directly in firefox (incorrectly by the way - firefox plays it very slowly). In about:plugins, audio/mpeg is associated with vlc. Anyway I can open these links with my scripts ? Thanks! Edit: Just to clarify, when I clic the link above, it should run this command : "myscriptforaudiolinks http://medias-balado.radio-canada.ca/diffusion/2014/03/balado/src/CBF/sojeune-20140321-1957.mp3" I mean, the file should not be downloaded by firefox, the url should simply be passed as an argument to the script.

Променено на от pm1349

Всички отговори (2)

more options

You can set the media.gstreamer.enabled pref to false on the about:config page.

more options

Thank you cor-el. That effectively prevent the link to be opened in firefox. But what happens is that it downloads the file and _then_ pass it to my script. I don't want to donwload it, just pass the url to the script.