Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

how to locate downloaded file

  • 1 resposta
  • 5 têm este problema
  • 2 visualizações
  • Última resposta por John99

more options

"Preferences" indicates an application to play videos (which happens to be a bash shell script that invokes mplayer with appropriate command line options). When I click on a video link (a .wmv) the video does not play, but is downloaded instead.

When I find the location of that download (another headache, but that issue is for some other time) and try to play it using the application (i.e., using the shell script), it plays right fine.

So playing a .wmv file works from an xterm, using my application "moz" (which happens to be a shell script), but that very same application "moz" which is specified in "Preferences" will not play the file, but parks it on my hard drive.

How do I get a shell script to work as the application which plays a .wmv file?!

"Preferences" indicates an application to play videos (which happens to be a bash shell script that invokes mplayer with appropriate command line options). When I click on a video link (a .wmv) the video does not play, but is downloaded instead. When I find the location of that download (another headache, but that issue is for some other time) and try to play it using the application (i.e., using the shell script), it plays right fine. So playing a .wmv file works from an xterm, using my application "moz" (which happens to be a shell script), but that very same application "moz" which is specified in "Preferences" will not play the file, but parks it on my hard drive. How do I get a shell script to work as the application which plays a .wmv file?!

Todas as respostas (2)

more options

My understanding of your question is that you are asking how to play .wmv files in Firefox using mplayer.

I am new to Firefox on Linux and do not play .wmv streams/files with Firefox unless in Windows. What I can say is that

  1. firefox will offer to download something if there is no other installed and enabled extension that will play it.
  2. mplayer should be able to handle .wmv files
    (probably not if they are protected files, but you say the files play)

I would not know how to use a bash script as a Firefox add-on and am not sure that is possible.

Have you read and followed the suggestions in

more options

I still don't know how to get a bash script to work, but...

One can write c code (call the corresponding executable mplay) which executes execve("/usr/bin/mplayer",argv,Envp); and point mozilla to open using mplay. That way, mplay can muck with argv all it wants -- to supply appropriate command line arguments to mplayer -- before the execve. It is important, however, to get Envp right. I havent bothered to sort out exactly what is needed, but mplayer will crash the X server with a null Envp. What workes (for me) is simply to use the output generated by typing env in a bash shell.

Hope this helps others Happy hacking...