Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
The ONE Campaign to make poverty history

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 360 guest(s) and 3 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

mozplugger


       mozpluggerrc - configure file for mozplugger


DESCRIPTION

       MozPlugger is a  Mozilla plugin which can show many  types
       of  multimedia  inside  your  Mozilla. To accomplish this,
       MozPlugger uses external programs such as mplayer,  xanim,
       mtv, timidity and tracker.


CONFIGURE FILE

       You can configure mozplugger by changing the file mozplug­
       gerrc which can be located in any of the following  direc­
       tories:

            $HOME/.netscape/
            $HOME/.opera/
            $MOZILLA_HOME/
            $OPERA_HOME/
            /usr/local/netscape/mozpluggerrc
            /etc/mozpluggerrc
            /usr/etc/mozpluggerrc
            /usr/local/etc/mozpluggerrc

       The  format  of  mozpluggerrc  is very simple. The general
       layout is to have one or more lines describing  mime-types
       followed  by one or more lines describing commands used to
       handle those mime-types. Lines beginning with #  are  con­
       sidered  comments  and are ignored. Here is a simple exam­
       ple:

            video/mpeg; mpeg; Mpeg video
            video/quicktime; qt; Mpeg video
                 : xanim +W$window -Zr +q +Ze +f $file

       Each line describing a mime type has three fields:

             mime type ; extensions ; description

       mime type
              The mime type is the standardized name for the con­
              tent  type you want MozPlugger to handle. This must
              be the same type as the web server claims the  file
              to  be,  or  MozPlugger  will  not be used for that
              file, regardless of the extension.

       extensions
              This is a comma separated list of  extensions  that
              should  be  associated  with  this  particular mime
              type. The extensions  are  only  used  when  a  web

       flags  This is a comma-separated list of flags which tells
              mozplugger  how  to handle this particular applica­
              tion. See below for further details.

       command
              This is a command which is  sent  to  /bin/sh  when
              handling this mime type.


FINDING THE RIGHT COMMAND

       When  MozPlugger  is  called  from  your browser, it looks
       through the configuration file and tries to find a  match­
       ing  mime type.  For an application to be chosen it has to
       fulfill certain criteria, it has to  exist,  and  it  must
       match the flags given to mozplugger.

       When it does, it tries to figure out which command to use.
       First, it looks through all the commands for that particu­
       lar  mime  type  to see if it can find an application that
       has the stream flag. If it cannot find a streaming  appli­
       cation  it  downloads  the file and tries again. Note that
       MozPlugger will check the first word of  the  command  and
       search your $PATH for that command. If that command is not
       found MozPlugger will go to the next line in your mozplug­
       gerrc.


FLAGS

       repeat This  indicates  that  the command uses the $repeat
              variable.

       loop   This indicates that the application loops  forever.
              If  the  <EMBED> tag used to start MozPlugger indi­
              cated that the file should not  loop  forever,  the
              command on this line will not be used.

       many   This indicates that the application can accept sev­
              eral files on the command line, useful  when  loop­
              ing.   Using this option can reduce clicks, choppi­
              ness and machine load, but it is never required.

       stream This indicates that this application  can  take  an
              url.  In this case, the variable $file contains the
              URL of the file to play and the  browser  does  not
              download it.

       ignore_errors
              This  options  tells  MozPlugger to ignore the exit
              status of the application.

       swallow ( name )
              This  is  the only option that takes an argument so
              far. It will tell mozplugger that  the  application
              will open a window with the specified name and that
              this window will  then  be  moved  to  inside  your
              browser.

       event_swallow ( name )
              This  option  is  a lighter swallow() that uses X11
              events.

       fill   This keyword is used to maximize an swallowed  win­
              dow.

       maxaspect
              This  keyword is used to maximize an swallowed win­
              dow while keeping the width/height ratio  constant.

       nofull This  tells  MozPlugger not to swallow the applica­
              tion if not embeded in a web page.


VARIABLES

       MozPlugger gives some variables to /bin/sh  when  starting
       the application, these variables are:

       $repeat
              This  variable  contains  how  many  times the file
              should be  played.   Applications  which  use  this
              variable should also set the repeat flag.

       $window
              This  is the X window Mozilla has given the plugin.
              This can be used with applications such as  MPlayer
              to display graphics inside the netscape window.

       $width This is the horizontal resolution in pixels.

       $height
              This is the vertical resolution in pixels.

       $file  This  is the file to play.  If the application uses
              the stream flag, this this  variable  contains  the
              URL  of the file to play.  It may also be more than
              one file if you use the many flag.

       $mimetype
              This variable contains the mime type of $file.


BUGS


                                                    mozplugger(7)

An undefined database error occurred. SELECT distinct pages.pagepath,pages.pageid FROM pages, page2command WHERE pages.pageid = page2command.pageid AND commandid =


  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds