注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Package:Mozplugger
(Redirected from Package:Www-plugins/mozplugger)
Jump to navigation
Jump to search
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.