maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [ANNOUNCE] Alpha release of Open Media Player (https://talk.maemo.org/showthread.php?t=72156)

MohammadAG 2011-04-14 19:47

[ANNOUNCE] Alpha release of Open Media Player
 
Open Media Player is a full free open source rewrite of the stock mediaplayer.
While I started the project, my current free time slowed down updates a lot, so OMP is currently maintained by gidzzz.

All OMP info can be found on this wiki page http://wiki.maemo.org/Open_Media_Player

All existing MAFW-based apps will work fine with this, the stock widget will open this mediaplayer, media-im-status-updater will fetch metadata correctly, etc...

BT headsets (with buttons) should work fine (tested with a BH-503).

Once all bugs are fixed, this will probably make its way into the CSSU, but right now, it's a bit early.

Not sure if screenshots are necessary, it looks exactly like the stock player but with portrait mode :)

Entertainment view:
http://i55.tinypic.com/i5nbrt.jpg
http://i52.tinypic.com/10if7l4.jpg
(tap the album to show the playlist, tap next to the control buttons (play, next, and prev) to toggle them.

Bug reports expected (lots of them) and are welcome.

Thanks to nicolai for the C++ MafwSource and MafwRenderer adapters.
Thanks to Venemo for the UI for the FMTX dialog (which is actually a rewrite, the stock one flips the player to landscape).
If you have jacekowski's fmtxd, feel free to kill the checks done (headphones etc...) in the UI, it's in settings.
Thanks to gidzzz for picking this up

Source is of course on gitorious: http://gitorious.org/qt-mediaplayer/mediaplayer

fatcobrah 2011-04-14 19:50

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by MohammadAG (Post 988477)
Been showing this on the forums a lot, figured it's about time I make a release.
Please note that this is an alpha release, the mediaplayer turned out to be a
bigger project than I expected :p



What's planned:
  • Playlist creator and editor (stock implementation sucks).

All existing MAFW-based apps will work fine with this, the stock widget will open this mediaplayer, media-im-status-updater will fetch metadata correctly, etc...
To "replace" the stock player (if you don't want to do that, use the script below).
Place the binary in /usr/local/bin/
Code:

nano /usr/share/dbus-1/services/com.nokia.mediaplayer.service
Change /usr/bin/mediaplayer to /usr/local/bin/mediaplayer, note that this will cause mime_open to stop working until implemented.

BT headsets (with buttons) should work fine (tested with a BH-503).

To use alongside the stock player (tapping the stock widget will open the stock player):
Place the binary in /usr/local/bin/

QML files are to be installed in /opt/mediaplayer/qml/
I usually update the mediaplayer whenever I add something, so here's a handy script to update it (or install it)
Code:

root
apt-get install wget #if you don't have it installed.
wget http://mohammadag.xceleo.org/public/maemo/install_mediaplayer.sh
chmod +x install_mediaplayer.sh
./install_mediaplayer.sh


Bug reports expected (lots of them) and are welcome.


Source is of course on gitorious: http://gitorious.org/qt-mediaplayer/mediaplayer

wow :| amazing :D thx

fatcobrah 2011-04-14 20:12

Re: [ANNOUNCE] Alpha release of Open Media Player
 
new media player doesn't support home network right?
Want an icon in the menu? Run the script with --desktop-file (./install_mediaplayer --desktop-file). doesn't work
/bin/sh: ./install_mediaplayer: not found

MohammadAG 2011-04-14 20:14

Re: [ANNOUNCE] Alpha release of Open Media Player
 
UPnP? Not yet, no.
Code:

root
apt-get install wget #if you don't have it installed.
wget http://mohammadag.xceleo.org/public/maemo/install_mediaplayer.sh
chmod +x install_mediaplayer.sh
./install_mediaplayer.sh --desktop-file


Keneraali 2011-04-14 20:16

Re: [ANNOUNCE] Alpha release of Open Media Player
 
I get

./install_mediaplayer.sh: line 49: cannot create /usr/share/applications/hildon: Is a directory

when running the script with --desktop-file

mehulrajput 2011-04-14 20:18

Re: [ANNOUNCE] Alpha release of Open Media Player
 
another alternate to inbuilt player, wow.. thanks..

someplayer is current my default player, good to see awesome players coming up for maemo...

cutehunk04 2011-04-14 20:18

Re: [ANNOUNCE] Alpha release of Open Media Player
 
great work AG...

just a suggestion,

may be a widget for homescreen be added where we can watch movies or any video files directly from homescreen...pause and can open it directly from homescreen, also having options for different sizes....if its possiable then this would be a great useful...:)

cjp 2011-04-14 20:18

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Looking good! Can't wait. Will wait for release that is more for us noob users, though! :)

MohammadAG 2011-04-14 20:19

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by Keneraali (Post 988504)
I get

./install_mediaplayer.sh: line 49: cannot create /usr/share/applications/hildon: Is a directory

when running the script with --desktop-file

Yeah, right, sorry, rm install_mediaplayer.sh and rerun the steps.

ScarCow 2011-04-14 20:19

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Nice Job! Just before trying it out - is there a way to revert back to stock mediaplayer, if i ever want to?

-sc

fatcobrah 2011-04-14 20:21

Re: [ANNOUNCE] Alpha release of Open Media Player
 
/home/user # ./install_mediaplayer.sh --desktop-file
--23:17:06-- http://mohammadag.xceleo.org/mediaplayer
=> `/usr/local/bin/mediaplayer'
Resolving mohammadag.xceleo.org... 69.163.135.251
Connecting to mohammadag.xceleo.org|69.163.135.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 640,728 (626K) [text/plain]

100%[================================================== ====>] 640,728 64.89K/s ETA 00:00

23:17:19 (54.99 KB/s) - `/usr/local/bin/mediaplayer' saved [640728/640728]

--23:17:19-- http://mohammadag.xceleo.org/entertainmentview.qml
=> `/opt/mediaplayer/qml/entertainmentview.qml'
Resolving mohammadag.xceleo.org... 69.163.135.251
Connecting to mohammadag.xceleo.org|69.163.135.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14,164 (14K) [text/plain]

100%[================================================== ====>] 14,164 44.36K/s

23:17:20 (44.35 KB/s) - `/opt/mediaplayer/qml/entertainmentview.qml' saved [14164/14164]

--23:17:21-- http://mohammadag.xceleo.org/Slider.qml
=> `/opt/mediaplayer/qml/Slider.qml'
Resolving mohammadag.xceleo.org... 69.163.135.251
Connecting to mohammadag.xceleo.org|69.163.135.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,372 (3.3K) [text/plain]

100%[================================================== ====>] 3,372 --.--K/s

23:17:22 (120.56 KB/s) - `/opt/mediaplayer/qml/Slider.qml' saved [3372/3372]

./install_mediaplayer.sh: line 49: cannot create /usr/share/applications/hildon: Is a directory
Open MediaPlayer, version: 0.1 Running with PID:8701
Copyright (C) 2010-2011 Mohammad Abu-Garbeyyeh
Licensed under GPLv3
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; visit http://www.gnu.org/licenses/gpl.txt for details.
MediaPlayer startup took 441 ms
/home/user #

MohammadAG 2011-04-14 20:23

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by ScarCow (Post 988510)
Nice Job! Just before trying it out - is there a way to revert back to stock mediaplayer, if i ever want to?

-sc

It runs alongside it, the stock player will work fine with it since they both talk to mafw.

Bratag 2011-04-14 20:31

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Looks great MAG. Is it just me or no portrait for entertainment view?

fabfour 2011-04-14 20:31

Re: [ANNOUNCE] Alpha release of Open Media Player
 
wow thanks for this preview
the flipping side in entairtainment view is funny
very nice gui
thanks

MohammadAG 2011-04-14 20:34

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by Bratag (Post 988519)
Looks great MAG. Is it just me or no portrait for entertainment view?

Nah it's not you, it actually disables portrait mode (but if you have forcedrotation active in the CSSU, then that's ignored anyway :p)
My QML skills suck, it was a first attempt and less than a day's work.

Keneraali 2011-04-14 20:36

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by MohammadAG (Post 988509)
Yeah, right, sorry, rm install_mediaplayer.sh and rerun the steps.

Now there's no error message, but still no desktop icon is seen in the menu.

Looked at the omp.desktop and noticed that the file misses [Desktop Entry] at the beginning, after adding that the desktop file appeared in the menu.

The install_mediaplayer.sh should be

Code:

...
if [ "$1" = "--desktop-file" ]; then
        echo "[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=OMP
X-Text-Domain=mediaplayer
Exec=/usr/local/bin/mediaplayer
Icon=tasklaunch_media_player
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
MimeType=video/quicktime;video/x-msvideo;audio/x-mp3;video/mpeg;audio/x-wav;audio/x-m4a;audio/mp4;audio/x-amr;audio/AMR;video/mp4;video/x-mp4;video/3gpp;audio/mp2;audio/x-mp2;audio/x-ms-wma;audio/x-ms-asx;video/x-ms-asx;video/x-ms-wmv;video/x-ms-wm;audio/x-mpegurl;audio/mpegurl;audio/x-mpeg;audio/x-scpls;video/x-ms-asf;video/x-ms-asf-plugin;application/x-ms-asx;audio/x-ms-wax;video/x-ms-wvx;video/x-ms-wax;video/x-ms-wmx;application/vnd.ms-wpl;application/pls;application/smil;application/m3u;audio/mp3;video/avi;audio/wav;audio/mpeg;application/x-mplayer2;audio/AMR-WB" >> /usr/share/applications/hildon/omp.desktop
...


fatcobrah 2011-04-14 20:38

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by MohammadAG (Post 988509)
Yeah, right, sorry, rm install_mediaplayer.sh and rerun the steps.

still no icon :(

SalmanAbbas 2011-04-14 20:40

Re: [ANNOUNCE] Alpha release of Open Media Player
 
MAG i guessing that you are left handed...am i right?

Bratag 2011-04-14 20:41

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by MohammadAG (Post 988522)
Nah it's not you, it actually disables portrait mode (but if you have forcedrotation active in the CSSU, then that's ignored anyway :p)
My QML skills suck, it was a first attempt and less than a day's work.

Hey dont get me wrong man - I love it ... just wanted to be sure I wasnt being thick :)

MohammadAG 2011-04-14 20:43

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by SalmanAbbas (Post 988530)
MAG i guessing that you are left handed...am i right?

Nope :P
Why?

RiD 2011-04-14 20:55

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Well, I am left handed :D
Have to test this later on, seems to be something good :D

fabfour 2011-04-14 21:13

Re: [ANNOUNCE] Alpha release of Open Media Player
 
hi mag
is it possible to make the entaitnment viex the default view after selecting a playlist ?
2) is there a way to modify the the flip from left to right and so on (the time to refert from left to right)
sorry for my poor english

MohammadAG 2011-04-14 21:16

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by fabfour (Post 988553)
hi mag
is it possible to make the entaitnment viex the default view after selecting a playlist ?
2) is there a way to modify the the flip from left to right and so on (the time to refert from left to right)
sorry for my poor english

First request isn't possible till I sort out my QML skills (unless someone wants to help, entertainment view actually heavily depends on the now playing window) :P
Second one, sure, edit the file, look for Timer and change the interval there (it's in milliseconds).

654321 2011-04-14 21:20

Re: [ANNOUNCE] Alpha release of Open Media Player
 
One small bug...
If a song is 61 minutes : 17 seconds long player shows 1:17 not 61:17

cy8aer 2011-04-14 21:25

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Hm, there is not all mafw working: gpodder does some communication to media player to save the playing position of a podcast to continue lateron. When omp is running a continue of a partly played podcast from gpodder just popups omg and nothing more happens. The other way (playing podcasts and gpodder records the position of the podcast: Did not find a method to check this out)

Does it need a reboot?

MohammadAG 2011-04-14 21:35

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by cy8aer (Post 988563)
Hm, there is not all mafw working: gpodder does some communication to media player to save the playing position of a podcast to continue lateron. When omp is running a continue of a partly played podcast from gpodder just popups omg and nothing more happens. The other way (playing podcasts and gpodder records the position of the podcast: Did not find a method to check this out)

Does it need a reboot?

mime_open, again, not yet implemented, and no, that's not related to mafw :P

fwrnando 2011-04-14 21:36

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Excellent work! Already faster in loading my artist list than the stock mediaplayer from a cold launch! It does seem to have some difficulties with Unicode tags though. Where can I fill bug reports?

For example:
http://i.imgur.com/zH8ok.png
It displays the artist songs and albums correctly in the artists view, but as soon as I tap 茶太 for example:

http://i.imgur.com/f0tJx.png

Similarly, trying to delete an artist with an Unicode containing name just crashes the OMP with a seg fault.

I'll gladly do some more tests if this is new to you.

MohammadAG 2011-04-14 21:43

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by fwrnando (Post 988573)
Excellent work! Already faster in loading my artist list than the stock mediaplayer from a cold launch! It does seem to have some difficulties with Unicode tags though. Where can I fill bug reports?

For example:
It displays the artist songs and albums correctly in the artists view, but as soon as I tap 茶太 for example:

Similarly, trying to delete an artist with an Unicode containing name just crashes the OMP with a seg fault.

I'll gladly do some more tests if this is new to you.

Can you try and get the latest binary and see if it's fixed?

fwrnando 2011-04-14 21:51

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by MohammadAG (Post 988577)
Can you try and get the latest binary and see if it's fixed?

Same thing. If it helps, the terminal output when trying to play that (Unknown Song) is
"There is no media to play"
"Invalid object id"

(wget doesn't cache old versions right? :P)

excelar8 2011-04-14 22:07

Re: [ANNOUNCE] Alpha release of Open Media Player
 
A bug: When in portrait mode at the Now Playing screen, if you try to go back, pressing the back button does nothing. Then the "x" button comes up and pressing that takes you to the list of all the songs. For some reason, when you select a new song to play from this list, three Media Player windows are open:
http://a6.sphotos.ak.fbcdn.net/hphot..._5655890_n.jpg

Maybe clicking on a song from the list opens up the song in both the stock player and OMP, leading to 3 windows opening?

Going back to one of the windows creates flickers in the screens of the Media Player windows (they are trying to sync?)

retsaw 2011-04-14 22:08

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Great work. I like the stock media player and use it for playing radio programs I download, but there are a couple of minor things that bug me that maybe you can fix in your version. I'd like to be able to delete files directly from the recently played playlist and I occasionally accidentally set a file as my ringtone, so it would be great to have a confirmation on this.

And a bug, seeking doesn't work with my bluetooth headset (obviously this does work on the stock media player) the other bluetooth controls work fine.

excelar8 2011-04-14 22:19

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Another bug: When the length of the song title or album exceeds half the screen, it goes under the album art, instead of text wrapping on its half of the screen

zdanee 2011-04-14 22:38

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Amazing work (as usual), MAG!
A bug I found: I usualy listen to long mixes, and I noticed, that OMP does not handle songs correctly, if they are longer than 1 hour, seekbar is messed up in these cases, and time (both played, remaining and total) shows incorrectly.
Also, if Central European accented characters are present in a song's ID3 tag, they will show up as empty spaces in the playlist and will not play, instead OMP will start playing the first song in the playlist.

mrsellout 2011-04-14 22:54

Re: [ANNOUNCE] Alpha release of Open Media Player
 
2 Attachment(s)
Quote:

Originally Posted by excelar8 (Post 988596)
A bug: When in portrait mode at the Now Playing screen, if you try to go back, pressing the back button does nothing. Then the "x" button comes up and pressing that takes you to the list of all the songs. For some reason, when you select a new song to play from this list, three Media Player windows are open:

Maybe clicking on a song from the list opens up the song in both the stock player and OMP, leading to 3 windows opening?

Going back to one of the windows creates flickers in the screens of the Media Player windows (they are trying to sync?)

I can confirm the multiple windows bug. It appears to manifest when you press the song title more than once when selecting a track. One press is enough to make it play, but if there is a lag between track selection and playback, you're inclined to press again.

Oh I can also confirm the lack of a desktop shortcut, but that is a minor issue.

excelar8 2011-04-14 23:10

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Quote:

Originally Posted by mrsellout (Post 988623)
Oh I can also confirm the lack of a desktop shortcut, but that is a minor issue.

Code:

sudo gainroot
chmod +x install_mediaplayer.sh
./install_mediaplayer.sh --desktop-file

> add OMP shortcut

MohammadAG 2011-04-14 23:47

Re: [ANNOUNCE] Alpha release of Open Media Player
 
Fixed the multiple now playing windows (not uploaded yet though).

excelar8 2011-04-14 23:55

Re: [ANNOUNCE] Alpha release of Open Media Player
 
A thing I noticed is that the music from OMP stops to play the text tone, when a text comes in, then resumes music playback.

If you can remember, the stock media player did this (before PR 1.2 i think), but I just tried it with the stock media player and it doesnt stop the music (i assume Nokia fixed this bug). It just vibrates twice while the music is still playing

MohammadAG 2011-04-15 00:01

Re: [ANNOUNCE] Alpha release of Open Media Player
 
This is the libplayback policy system I mentioned on the first page, docs are quite crappy for it.

stooobs 2011-04-15 00:53

Re: [ANNOUNCE] Alpha release of Open Media Player
 
metallica rock nuff said

nology 2011-04-15 01:08

Re: [ANNOUNCE] Alpha release of Open Media Player
 
awesome, cant wait to test it. i just asked about release date yesterday


All times are GMT. The time now is 00:28.

vBulletin® Version 3.8.8