Active Topics

 



Notices


Reply
Thread Tools
Posts: 12 | Thanked: 7 times | Joined on Sep 2009 @ Finland
#31
No, this only sets the media player volume to 0. It doesn't affect the "master" volume setting, so your phone rings normally.
 

The Following User Says Thank You to Talvis For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Dec 2009
#32
hi guys.

How about pausing the player when a2dp is disconnected ??

N97 had this detail while the n900 does not, and on the car it really makes a diference. Any ideas ?? thank you.
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#33
Originally Posted by adolfotregosa View Post
How about pausing the player when a2dp is disconnected ??
You can check out the code from https://garage.maemo.org/projects/headphoned and add the code

If you send me some a2dp hardware, I can try to implement it
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#34
Would libplayback (com.osso.Playback.Manager in particular) help in this instance? From what I gather, it helps facilitate media playback from multiple sources.

I'm not yet familiar with dbus or even the maemo platform for that matter, so I wouldn't be able to submit a patch. However, if I understand correctly, this would at least prevent you from having to write duplicitous code (mplayer, default media player, etc).

Also, i don't even know if libplayback is available for maemo 4. I saw reference to it while browsing the maemo 5 documentation, so excuse my ignorance if it doesn't exists ;-)

Edit:
[Insert Foot In Mouth]
Further investigation shows that it is in fact a fremantle-only library: http://maemo.org/packages/view/libplayback-1-0/
[/Insert Foot In Mouth

At least this may be the way to go for doing something similar in Maemo 5.

Anyways, I do think this is a cool application, even if I can't currently use it. Keep up the good work!

Last edited by aspidites; 2009-12-15 at 09:12.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#35
Originally Posted by thp View Post
If you send me some a2dp hardware, I can try to implement it
Somebody, be cheap and send him a dbus-monitor --system log instead
 

The Following User Says Thank You to qwerty12 For This Useful Post:
silvermountain's Avatar
Posts: 1,359 | Thanked: 717 times | Joined on May 2009 @ ...standing right behind you...
#36
I think I found a bug.

If you play something in mPlayer (say a movie) and pause it and play something in Gpodder-Panucci and then pull out the headphones...the mPlayer starts playing through the speakers.
__________________
.N810 experience: Since 6/2009
My Twenty Favorite OS2008 Applications:
AutoScan, Diablo5 Theme, Dialcentral, DragLock, EmelFM2, FlipClock, gPodder, Headphoned, Knots 2, Maemo Mapper, mPlayer, openNTPD, OpenSSH, Panucci, Personal Launcher, QuickNote, Seqretary, SlideLock, Telescope, YellowNotes
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#37
Originally Posted by silvermountain View Post
I think I found a bug.

If you play something in mPlayer (say a movie) and pause it and play something in Gpodder-Panucci and then pull out the headphones...the mPlayer starts playing through the speakers.
Yes, this is because for "Media Player" and "MPlayer", headphoned can only send a "Pause" signal, but this is just like a press on the "Play/Pause" button (i.e. when it's paused, unplugging unpauses the playback). This even happens when you don't have Panucci running.

The only application that provides a "Pause if it's playing, do nothing otherwise" command is Panucci (for obvious reasons . At least I have not found D-Bus calls for pausing the media player or input commands for MPlayer that do what I want. An alternative would be to have headphoned go check by itself if Media Player / MPlayer are currently playing something back and avoid sending the "Pause" signal in certain cases.

Again, the code is open and patches are welcome
 
Posts: 3 | Thanked: 4 times | Joined on Dec 2009 @ Netherlands (Eindhoven)
#38
hi there,

I did some dbus-monitoring on the N900 and found that the following command pauses the media player:
dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause

I made (a quick) change in headphoned and it works.

I also tried with libplayback, but didn't succeed. I think that library should be used when you are creating your own player and is not really for controlling other players. Anyway, that is just my guess, because I can't get much from the documentation...
 

The Following 3 Users Say Thank You to josetaza For This Useful Post:
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#39
Originally Posted by josetaza View Post
I did some dbus-monitoring on the N900 and found that the following command pauses the media player:
dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.pause

I made (a quick) change in headphoned and it works.
Great! Can you send a patch, so I can merge it into the repository? (commit your changes, then git format-patch + send the resulting files) Don't forget to set your name and e-mail in Git before committing, so that you are properly credited for the commits you do. Thanks
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#40
Originally Posted by thp View Post
The N900 maintains two different volume levels (for plugged and unplugged headphones), so to avoid public transport situations, you just have to unplug your headphones, set the volume to zero, plug them in again, and set your preferred volume. Whenever the headphones get unplugged, the volume will be muted, and when they are reconnected, the volume will be restored.

That said, there might be a use case for having headphoned the N900 as well, just have not got around to do it, as the volume feature described above fixes public transport situations for me already
This is not the same as pause because if you want to use the speakers later you have to turn up the volume again...
So it would be really nice if headphoned could be available for Fremantle, too.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:51.