[SOLVED] Getting current playing song in Spotify using dbus-send

dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
I can change the songs using these commands as both Next and Previous are methods. But, what if I want to know the Medadata? Metadata is defined as a property in the same path.
This command throws the obvious error.
dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata
Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'Metadata' in interface 'org.mpris.MediaPlayer2.Player' at object path '/org/mpris/MediaPlayer2' (signature '')
I am unable to use dbus-send properly.
Relevant screenshop: http://i.imgur.com/IqRw5.png
Last edited by shadyabhi (2012-01-30 02:20:19)

Ok, I got it finally. I had to use
dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'

Similar Messages

  • Drag & Drop image of currently playing song causes the Spotify window to "jump" to another position

    When I try to drag and drop the image of the currently playing song (the one that appears under the playlist list, on the left side of the screen), the entire Spotify window jumps (i.e. moves/repositions) inside the screen to a totally different position, making it impossible to drag the song to the intended playlist. It seems that the the window is moved to the current mouse cursor position (i.e. the left top position of the window becomes the mouse cursor position, with an offset). When I reposition the window again manually, and try to do the same thing, it doesn't happen. I have been able to reproduce this issue a 100% of the times: I just refocus a few other windows I have open and then try to add the currently playing song to a playlist in the afore mentioned way.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How can i get itunes to quit skipping to the currently playing song when i'm working on the library somewhere else?

    how can i get itunes to quit skipping to the currently playing song when i'm working on the library somewhere else?

    You might be able to achieve what you want by using Party Shuffle. Set the source for Party Shuffle to be the playlist you want to listen to or add the tracks you want to listen to by control clicking on them and selecting Add to Party Shuffle. Once everything is in Party Shuffle, you can rearrange them to your satisfaction. As the songs are played, they'll roll off the queue. You can quit iTunes and even when you restart, all your songs will be there, in the order you want, waiting for you to hit play.

  • Editing currently playing song - freeze

    When I edit the info of the currently playing song and press OK, iTunes freezes for a minute or two. The editing window doesn't close and is totally gray until the freezing stops.

    Thanks, I know how to delete a song from iTunes. What I want is to create a global shortcut, which means let me to use that shortcut from anywhere outside iTunes, to let me currently playing song.
    It's application is that I'm doing work and I don't like the currnet song, I can delete it with that shortuct without moving to iTunes and manually selecting and deleting it.

  • Disabling iTunes from jumping to currently playing song

    iTunes by default will automatically jump to the next song that is played. This really messes with me when I'm working on my library. The music library jumps to that song, and I have to scroll back to where I was in the library.
    Is there an option or even some sort of plugin that will let it play the next song normally but not change the focus of where you are.
    For example, if I'm pulling songs out of my library to add to a playlist, I lose my spot in the library every time a new song begins playing.

    I really wish there was a better way like a built in option or even a plugin, without having to go with this playlist nonsense workaround. You would think Apple would be smart enough to add that option, I'm sure I'm not the only one annoyed by this. From searching google for answers, it seems there a ton of people who want this behavior but no real way to do it besides going through your work-around.
    Even today it annoyed me, I was renaming tracks to their correct name, instead of "Track 1", "Track 2" etc, and then one of my playing songs switched to the next. So the highlight jumped all the way to the bottom of my library and I had to go find where I was working again.
    I'll probably use your workaround tomorrow or in the next few days If I don't get another response with the miracle plugin that is seemingly impossible to find. It really can't be that hard to make a plugin of this sort could it? Maybe I can make a post in a forum where people build plugins, hoping someone would be willing to take the challenge to help others and I.

  • I can no longer play songs on iTunes using Win 8 PC

    When I click to play a song from iTunes on my Windows 8 PC it just appears to hang.  I can no longer preview songs from the iTunes Store either, no sound comes out and the bar stays on 0:00.  This was working fine in the past, not sure what changed.  Now I'm afraid to try and synch my iPod and iPhone to the PC since as of now these other devices are working fine. Help!

    Update:  After having problems playing audio and video using several different browsers and apps, I realized that the problem was probably not iTunes or Apple related.  I rebooted several times, to no avail, but the last reboot inexplicably seemed to do the trick.  Everything is working OK again, at least for now.  Weird but I'll take it!

  • OIM11gr2 - How to get currently logged in user details using oim api

    Hi All,
    I have a requirement to retrieve currently logged in users profile in the process adapter.
    I have tried with getSelfProfile in tcUserOperation and also ContextManager.getOIMUser API's however, in both the cases i am getting xelsysadm details only.
    Also as know request details in Process task mapping doesnot work for OIM11g onwards (its returning column not found exception )
    DOes any one has idea how to achieve this.
    PS. - i am using platform to retrieve API's.
    Thanks & Regards
    Swati Pandey

    You can get the logged in user name using the below java code:
    ADFContext adfCtx = ADFContext.getCurrent();
    SecurityContext secCntx = adfCtx.getSecurityContext();
    String user = secCntx.getUserPrincipal().getName();
    HTH

  • Accessing information about currently playing song/media

    Hi everybody,
    I am wondering whether it is possible to retrieve Information about whatever is currently playing on the phone. I.e. the title of what's being played and the current position (in seconds).
    I would like to develop an app that is able to use these information while anything is being played in the background, no matter if it is a piece of music, stream, video, audiobook, whatever.
    Is this possible and if so, how?
    Thanks and
    cheers,
    Christian.

    Hello Christian,
    This is quite a difficult and complex task. But you can take a look at the sample provided by the open-source music identification system
    EchoPrint.
    Abdulwahab Suleiman

  • We have an iPod version 4.2.1 modelPB528ll. We can not get to play songs in sequence. Welcome suggestions.

    We have an ipod version 4.2.1 model PB528ll. We can not get the ipod to play songs in sequence. Welcome suggestioins.
    Thomas 28

    Do y have:
    - Shake to shuffle turned on? Settings>Music
    - Do you have shuffle turned on on the Now Playing screen? On that scree on the right side right below the scrubber bar is a crossed arrows icon. That is the Shuffle control. Tap till it is white for no shuffle.
    Next:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • [Solved] Desktop Zoom in KDE using dbus-send

    Hi,
    I am trying to use dbus to use the KDE zoom-in/out feature. I need this to assign mouse-based shortcuts as described here
    Using dbus-monitor, I got the following output when pressing the default shortcut for KDE-zoom:
    signal sender=:1.5 -> dest=(null destination) serial=1152 path=/component/kwin; interface=org.kde.kglobalaccel.Component; member=globalShortcutPressed
    string "kwin"
    string "view_zoom_in"
    int64 30802948
    method call sender=:1.5 -> dest=org.kde.knotify serial=1153 path=/Notify; interface=org.kde.KNotify; member=event
    string "globalshortcutpressed"
    string "kglobalaccel"
    array [
    variant string "application"
    variant string "KWin"
    string ""
    string "The global shortcut for Zoom &In was issued."
    array [
    array [
    int32 -1
    int64 0
    method return sender=:1.11 -> dest=:1.5 reply_serial=1153
    int32 0
    But I can't figure out how to use this info to actually send the zoom-in message with dbus-send. Can anyone help me with this?
    Last edited by codemon (2010-10-13 05:45:58)

    So I resume:
    yaourt -S xbindkeys
    xbindkeys --defaults > $HOME/.xbindkeysrc
    Then edit with your favorite text editor the file ~/.xbindkeysrc and add before the end those lines:
    # Zoom in
    "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_in""
    m:0x50 + c:133 + b:4
    # Zoom out
    "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_out""
    m:0x50 + c:133 + b:5
    Restart xbindkeys to apply the new shortcut:
    killall xbindkeys && xbindkeys
    Now you can fully enjoy the zoom effect and add xbindkeys into Autostart kde systemsettings tab.
    Enjoy^^.
    P.S: the shortcut I used in those line is meta key + scroll up for zoom in and meta key + scroll down for the zoom out.
    Last edited by splashy (2011-08-09 22:39:50)

  • How to get current value of SEQUENCE without using NEXTVAL

    Hi,
    Here is my requirement. I need to provide a screen for allowing user to change the sequence # at any given instance. If I use CURRVAL, i get error 'ORA-08002 sequence EMP_NO.CURRVAL is not yet defined in this session'
    If I use NEXTVAL and then CURRVAL it works, but i loose a sequence # which i cannot afford, since it's an employee #.
    Help required in solving the problem.
    Thanks,
    Raj

    Use this...
    select last_number from user_sequences where sequence_name = '<your-sequence>'
    to get the current sequence value. However bear in mind that on a multi-user system (and which system today is not?) there may be many users firing this query, so in case of a next sequence no. allocation request fired by more thn one of them the sequences each gets will not all be this number + 1.
    HTH,
    Mohit.

  • Get current list of programs in used

    Hi,
    Is there a function module can I use to get the current list of programs or tcode being used? What I mean is that a user started tcode - CL02, I need to create a report that is showing that CL02 is being accessed by that user.
    Thanks.

    Hi Janet,
    Please refer the below thread(s),
    Transaction to get list of all transactions used by a user during a period
    Re: Pulling the history of the user for list of transactions used
    Best Regards.

  • ITunes 7 doesn't display artwork of currently playing song

    Minor annoyance, it was working correctly for a while but now instead of displaying the artwork for the song that is playing, it displays that for the song that is currently selected. Any ideas as to why?

    I guess the Artwork pane is set to 'Selected Item'.
    Click on the text 'Selected Item' to change it to 'Now Playing'.
    Hope this helps.
    M

  • Maybe I just dont get it, but what is the use of sending my Premiere project via EDL to Speedgrade?

    I get an error message open the EDL file in Speedgrade unless ALL effects and transitions are removed.  I don't get how this is helpful... how can I do my color grading but then also have the effects and transitions I want?  I am fairly new using Speedgrade (CS6), and love it, but when I can't color grade and make the edits I want, what good is it to me really?  I am hoping there is an answer to this I am simply overlooking as a new user of the program...

    I appreciate the response.  I just wanted to be sure there wasn't an easy way around my problem that I was simply overlooking.  I love Speedgrade and the power it has - it just seems like for it to be any good to me, I have double or even triple my work time on a video project. 
    For example - I am working on a simple 1 minute video, which includes an interview shot in front of a green screen.  The footage is a little dark, but with SG I able to make it look amazing.  So, if I am understanding correctly, my 2 options are:
    1) edit the parts of the interview I want into my PP project, when I am done, send it to SG, then color grade it.  Only problem with this is that I have many crossfades in the video, and when I use "Send to Speedgrade", any part of the timeline that is a crossfade becomes it's own "clip".  Therefore if I grade clip A one way, and clip B another, the transitional AB section looks totally different. 
    2) Send the clips individually to SG before I ever begin editing them, color grade then export.  Then bring those in PP and edit everything together.  Only problem there is, lets say, the green screen interview I spoke of.  This is a 5 minute interview, and exporting this at a lossless quality takes FOREVER.  I started it this way, and once the est. time hit 12 hours and was still climbing, I cancelled it.
    Maybe the computer I am attempting to do this on just isn't up for the challenge (it's a 2011 macbook pro), but I have always used it for Premiere and AE, without any problems.
    Anyway, again, I really appreciate the advice - I am still trying to wrap my head around what exactly my options are with Speedgrade.  Like I said, I absolutely love it - and I really want to be able to use it.

  • [Desktop][Radio] Add current played Radio-Song to the current playlist

    I often want to "collect" new songs by starting a radio on my e.g. "Pop" / "HardRock" Playlist. Therefore I really would enjoy a short way to add the current played song to the current "selected" playlist. I wonder why this wasn't implemented already. This is my default-reason for using a streaming-client like Spotfiy!

    Updated: 2015-03-27
    Marked as new idea. This idea is a re-post of this inactive idea.
    A similar idea for mobile apps has been submitted here.

Maybe you are looking for

  • EXCEL Output in 11.5.10.2 - solved

    Hi All, Does 11.5.10.2 supports the output in EXCEL or not. If supports is there any patch we need to apply. Current patch set for XML Publisher is 11i.XDO.H. I tried to get the output in EXCEL in Oracle apps version - 11.5.10.2 and the status is Com

  • Asset values are not updating in ledgers

    Dear Experts, Currently for company code 1000, system calculating depreciation   properly and posting, If there is a change in depreciation % rate, user can able to change the depreciation % in Dep key and successfully posting while running the depre

  • Data Loading is in Yellow Status

    Hi All, I have scheduled  the data using info package.I have Checked in RSMO and after long time, the job is in the yellow status. I have checked the job in SM37 in R/3 side and found the status as "Released". And data is not pulling into BW. Can you

  • MIGHTY MOUSE BUG! can you reproduce secondary button failure?

    The bug is extremely simple: If a user decides to move his home folder to a different partition from the system partition & correcting the path in netinfo manager to point to the external partition, the secondary button function on any mighty mouse (

  • TimeCode Generation Filter question

    My client needs me to burn a timecode onto the video so that can make edits and comments relating to specific times in the video. I am using FCP 5.1.4. I have so far done it this way: Generated a 15 minute slug. Put the TimeCode generation filter on