注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Package:Mozplugger"
Jump to navigation
Jump to search
Spectromas (talk | contribs) m (Spectromas moved page Package:Www-plugins/mozplugger to Package:Mozplugger) |
Spectromas (talk | contribs) |
||
Line 4: | Line 4: | ||
|Homepage=http://mozplugger.mozdev.org/ | |Homepage=http://mozplugger.mozdev.org/ | ||
}} | }} | ||
Mpv can be used as a video player inside firefox. | |||
<console> | |||
# ##i## emerge www-plugins/mozplugger | |||
</console> | |||
Then make the following changes: | |||
{{file|name= /etc/mozpluggerrc|lang=|desc=mozplugger config file|body= | |||
### MPlayer | |||
#define(MP_CMD,[mplayer -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 </dev/null]) | |||
define(MP_CMD,[mpv -really-quiet $1 </dev/null]) | |||
#define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(-xy $width -wid $window $1)]) | |||
define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(--autofit=$width -wid $window $1)]) | |||
#define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(MPlayer): MP_CMD($1)]) | |||
define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(mpv): MP_CMD($1)]) | |||
#define(MP_AUDIO,[mplayer -quiet -nojoystick $1 </dev/null]) | |||
define(MP_AUDIO,[mpv -really-quiet $1 </dev/null]) | |||
#define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mplayer -quiet -nojoystick $1 "$file" </dev/null]) | |||
define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mpv -really-quiet $1 "$file" </dev/null]) | |||
}} | |||
Now run | |||
<console> | |||
# ##i## mozplugger-update | |||
</console> | |||
The greasemonkey script [http://isebaro.com/viewtube/?ln=en viewtube] will also need to be installed. After this videos on sites such as www.youtube.com will play with mpv embedded in the web page. | |||
{{EbuildFooter}} | {{EbuildFooter}} |
Latest revision as of 19:42, March 10, 2015
Mozplugger
Tip
We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.
Mpv can be used as a video player inside firefox.
root # emerge www-plugins/mozplugger
Then make the following changes:
/etc/mozpluggerrc
- mozplugger config file### MPlayer #define(MP_CMD,[mplayer -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 </dev/null]) define(MP_CMD,[mpv -really-quiet $1 </dev/null]) #define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(-xy $width -wid $window $1)]) define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(--autofit=$width -wid $window $1)]) #define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(MPlayer): MP_CMD($1)]) define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(mpv): MP_CMD($1)]) #define(MP_AUDIO,[mplayer -quiet -nojoystick $1 </dev/null]) define(MP_AUDIO,[mpv -really-quiet $1 </dev/null]) #define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mplayer -quiet -nojoystick $1 "$file" </dev/null]) define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mpv -really-quiet $1 "$file" </dev/null])
Now run
root # mozplugger-update
The greasemonkey script viewtube will also need to be installed. After this videos on sites such as www.youtube.com will play with mpv embedded in the web page.