為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

how to locate downloaded file

  • 1 回覆
  • 5 有這個問題
  • 2 次檢視
  • 最近回覆由 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?!

所有回覆 (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...