为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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...