maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   A couple of Mediabox questions (https://talk.maemo.org/showthread.php?t=30593)

pycage 2009-09-01 06:32

Re: A couple of Mediabox questions
 
They do register in MessageBus as they're derived from Component. What shows you that they don't register? The components in components_extra and components_htpc are only loaded if specified on the command line with --plugin-dir, though.

pycage 2009-09-01 06:33

Re: A couple of Mediabox questions
 
Oh, and please ignore SideStrip. It's deprecated and will be removed. :)

maacruz 2009-09-01 15:35

Re: A couple of Mediabox questions
 
Quote:

Originally Posted by pycage (Post 319336)
They do register in MessageBus as they're derived from Component. What shows you that they don't register?

A "print(mediator)" in add_mediator... but now I see that AudioWidget and VideoWidget do not register until they start playing a file for the first time. Quite confusing.
DisplayLight and HeadSet do not register at my desktop pc... I just checked and they do register in the device.
IdleDetector wasn't meant to be there, I did not deleted that line before posting...
Quote:

The components in components_extra and components_htpc are only loaded if specified on the command line with --plugin-dir, though.
Thanks :)

maacruz 2009-09-01 22:53

Re: A couple of Mediabox questions
 
2 Attachment(s)
With this patch, cummulative with my previous ones, all possible handle_message in trunk are converted to handle_<MESSAGE>
The profiling shows that the time spent in MessageBus.send_event() during 30 min of somafm playback is 1,5 seconds, while in 0.96.5 was 260 seconds. 173 times more efficient. Now, if there are no screen updates, the %cpu is 0.0 during playback much of the time.
Also, included, there is another small bugfix patch to AbstractBackend I missed in the previous set of patches.

pycage 2009-09-02 07:26

Re: A couple of Mediabox questions
 
Quote:

Originally Posted by maacruz (Post 319555)
A "print(mediator)" in add_mediator... but now I see that AudioWidget and VideoWidget do not register until they start playing a file for the first time. Quite confusing.

The reason is because those only get instantiated by the Factory component when you start playing a file. Every viewer gets its own media widget.

Quote:

Originally Posted by maacruz (Post 319555)
DisplayLight and HeadSet do not register at my desktop pc... I just checked and they do register in the device.

Yes, these are Maemo-specific and check for the presence of Maemo. You can of course change that by removing the check in the __init__.py file of the plugin, but it will have no effect on non-Maemo systems, or crash due to missing stuff. :)

pycage 2009-09-02 07:28

Re: A couple of Mediabox questions
 
Quote:

Originally Posted by maacruz (Post 319815)
With this patch, cummulative with my previous ones, all possible handle_message in trunk are converted to handle_<MESSAGE>
The profiling shows that the time spent in MessageBus.send_event() during 30 min of somafm playback is 1,5 seconds, while in 0.96.5 was 260 seconds. 173 times more efficient. Now, if there are no screen updates, the %cpu is 0.0 during playback much of the time.
Also, included, there is another small bugfix patch to AbstractBackend I missed in the previous set of patches.

Wow, that sounds great! Thanks!

Laughing Man 2009-09-04 01:52

Re: A couple of Mediabox questions
 
I can't wait for improvements in resource management. :)

Quick question though, I thought MediaBox had support for Portrait mode? Tried it today and nope (text goes off the screen, some UI elements go off screen).

Also I'm not sure if this is intentional, a bug, or just a bug on my system. But if your in the player, and fullscreen it. The previous and next arrow are not lined up and are literally right next to the right side of the screen making them hard to hit.

pycage 2009-09-06 16:58

Re: A couple of Mediabox questions
 
The next version will have full support for portrait mode, if the OS supports it. Fremantle and Mer ought to support portrait out of the box, and Diablo requires a patched kernel.

maacruz 2009-09-07 17:26

Re: A couple of Mediabox questions
 
Quote:

Originally Posted by Laughing Man (Post 321204)
I can't wait for improvements in resource management. :)

Don't worry, I've some more waiting in line to be developed as soon as I get some time :D

Céltalan 2009-09-07 19:46

Re: A couple of Mediabox questions
 
Took me a month and a half to try several options for the "right mp3 player". I found mediabox as the only one which is able to go by the filename and where you can browse the directory structure as it is on the SD-Card; this is very useful if you have a mp3-collection with a lot of screwed up tags.
Also the bookmarks are very useful for 90-minute-lectures.
So thumbs up for this "heavy weight" mp3 player :-)
Thanks for the work


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

vBulletin® Version 3.8.8