ROSA Media Player plugin + Linterna Mágica

10 risposte [Ultimo contenuto]
aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

ROSA Media Player plugin is a new MPlayer/SMPlayer based video plugin which integrates very nicely with Linterna Mágica in all the browsers which Linterna Mágica supports (Mozilla based, Epiphany and Midori). The plugin can be installed on Trisquel 5.0 and on Parabola. The plugin can be used without installing ROSA Media Player (of course the "open video in ROSA Media Player" dialog will not work if the player isn't installed). A few screenshots are attached:

AllegatoDimensione
ROSA_Media_Player_plugin_Midori.png386.92 KB
ROSA_Media_Player_plugin_full_screen.png373.1 KB
ROSA_Media_Player.png201.61 KB
ROSA_Media_Player_about.png33.85 KB
aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

I made two scripts (based on the Arch PKGBUILDs) to install the player and the plugin for those interested. You will need libqt4-dev and build-essential as the scripts download the source and compile it.
Just copy these two parts into rosa-player.sh and rosa-plugin.sh respectively, run "chmod +x rosa-player.sh" and "chmod +x rosa-plugin.sh" and then run with "sudo ./rosa-player.sh" and "sudo ./rosa-plugin.sh"

rosa-plugin.sh
#! /bin/sh
pkgname=rosa-media-player-plugin
pkgver=0.951
source=http://svn.mandriva.com/svn/packages/cooker/rosa-media-player-plugin/current/SOURCES/${pkgname}-${pkgver}.tar.gz
wget ${source}
tar xvzf ${pkgname}-${pkgver}.tar.gz
cd rosa-media-player
qmake rosampcore.pro
make
cd ../rosamp-plugin
for pro in *.pro; do
qmake ${pro}
make
done
lrelease rosamp-plugin-qt.pro
cd ..
mkdir -p /usr/lib/mozilla/plugins/translations/
cp -f rosa-media-player/build/librosampcore.so.1.0.0 /usr/lib/
cp -f rosamp-plugin/build/librosa-media-player-plugin-*.so /usr/lib/mozilla/plugins/
cp -f rosamp-plugin/translations/*.qm /usr/lib/mozilla/plugins/translations/
cd /usr/lib
ln -s librosampcore.so.1.0.0 librosampcore.so.1.0
ln -s librosampcore.so.1.0.0 librosampcore.so.1
ln -s librosampcore.so.1.0.0 librosampcore.so

rosa-player.sh
#! /bin/sh
pkgname=rosa-media-player
pkgver=0.991
source=http://svn.mandriva.com/svn/packages/cooker/rosa-media-player/current/SOURCES/${pkgname}-${pkgver}.tar.bz2
wget ${source}
tar xvjf ${pkgname}-${pkgver}.tar.bz2
cd ${pkgname}-${pkgver}
make
make install

ivaylo
Offline
Iscritto: 07/26/2010

Thanks for sharing. I'll see if the browser plugin has an API, that can be
used with Linterna Mágica, so the player can be controlled from JavaScript
and the controls can be hidden. If it does I'll support it. Otherwise users
have to configure Linterna Mágica to use the controls of the plugin -
work-around for the duplication of buttons.

aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

ivaylo, thank you for all your efforts.

The reason I am not using Totem's Mozilla plugin despite the fact that it works in Epiphany, Midori and in Mozilla based browsers is because the full screen controls are dreadful (and because MPlayer works better with my graphics card). The URL of the video covers most of the bottom region in full screen mode so I can not seek on my netbook (see this screenshot). ROSA's controls are much better in full screen mode and it works in all the browsers Linterna Mágica supports (unlike Gecko Media Player which only works with Mozilla based browsers).

ivaylo
Offline
Iscritto: 07/26/2010

Ughm. It wasn't me. I just used the web interface/forum here. Via e-mail I
received only the second of your posts and decided it lack the whole context,
so I replied from the forum.

ivaylo
Offline
Iscritto: 07/26/2010

В 11:10 +0200 на 12.04.2012 (чт), name at domain написа:
> ivayo, thank you for all your efforts.
>

I've had a quick view of code of the ROSA plugin, but so far I had no
luck finding anything about controlling buttons and playback from
JavaScript. Might not work as I wanted without cooperation with the ROSA
plugin developers. I guess adding a JavaScript API won't be a small
effort, so they might not agree. Will see.

> The reason I am not using Totem's Mozilla plugin despite the fact that it
> works in Epiphany, Midori and in Mozilla based browsers is because the full
> screen controls are dreadful.

You don't have to use Totem plugin. That's the beauty of it. :) You can
use any browser video plugin that can handle the mime types and suits
you. There is just the issue of the duplicated controls with the default
configuration of Linterna Mágica and the plugins for which APIs are not
yet supported.

> (unlike Gecko Media Player which only works with Mozilla based browsers).

Really? I have a memory that it used to work with Epiphany at some
point.

aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

Really? I have a memory that it used to work with Epiphany at some
point.

It doesn't anymore as you confirmed in this thread.
Also, Xine plugin works as well but I couldn't manage to watch the video in fullscreen or seek. How is this achieved?

aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

Really? I have a memory that it used to work with Epiphany at some
point.
It doesn't anymore as you confirmed in this thread

ivaylo
Offline
Iscritto: 07/26/2010

Thanks for sharing. I'll see if the browser plugin has an API, that can be used with Linterna Mágica, so the player can be controlled from JavaScript and the controls can be hidden. If it does I'll support it. Otherwise users have to configure Linterna Mágica to use the controls of the plugin - work-around for the duplication of buttons.

aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

*DOUBLE POST*

ivaylo
Offline
Iscritto: 07/26/2010

Ughm. It wasn't me. I just used the web interface/forum here. Via e-mail I received only the second of your posts and decided it lack the whole context, so I replied from the forum.