Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: How to activate DBus-interface in the VLC media-player?

  1. #11
    Join Date
    Jan 2006
    Location
    Grønland,Oslo
    Beans
    618

    Re: How to activate DBus-interface in the VLC media-player?

    Olá,
    Zika and mc4man: I will keep eye on this issue. I'll come back if I find what's going on with this VLC and Raring installation. Especially porque the DBus was not activated by default.

    Just for info and later review. The installed VLC-packages are:
    $ dpkg -l | grep -i vlc
    Code:
    ii  libvlc5  2.0.5-1 i386 multimedia player and streamer library
    
    ii  libvlccore5   2.0.5-1  i386 base library for VLC and its modules
    
    ii  vlc  2.0.5-1  i386 multimedia player and streamer
    
    ii  vlc-data  2.0.5-1  all Common data for VLC
    
    ii  vlc-nox  2.0.5-1  i386  multimedia player and streamer (without X support)
    
    ii  vlc-plugin-notify  2.0.5-1  i386 LibNotify plugin for VLC
    
    ii  vlc-plugin-pulse  2.0.5-1  i386  PulseAudio plugin for VLC

  2. #12
    Join Date
    Oct 2008
    Location
    Exodus Hair<- Čubura
    Beans
    3,705
    Distro
    Ubuntu Development Release

    Re: How to activate DBus-interface in the VLC media-player?

    Quote Originally Posted by moma View Post
    Olá,
    Zika and mc4man: I will keep eye on this issue. I'll come back if I find what's going on with this VLC and Raring installation. Especially porque the DBus was not activated by default.

    Just for info and later review. The installed VLC-packages are:
    $ dpkg -l | grep -i vlc
    Code:
    ii  libvlc5  2.0.5-1 i386 multimedia player and streamer library
    
    ii  libvlccore5   2.0.5-1  i386 base library for VLC and its modules
    
    ii  vlc  2.0.5-1  i386 multimedia player and streamer
    
    ii  vlc-data  2.0.5-1  all Common data for VLC
    
    ii  vlc-nox  2.0.5-1  i386  multimedia player and streamer (without X support)
    
    ii  vlc-plugin-notify  2.0.5-1  i386 LibNotify plugin for VLC
    
    ii  vlc-plugin-pulse  2.0.5-1  i386  PulseAudio plugin for VLC
    You just reminded me, I have ppa:videolan/master-daily turned on...

  3. #13
    Join Date
    Jun 2007
    Beans
    12,741

    Re: How to activate DBus-interface in the VLC media-player?

    Quote Originally Posted by moma View Post
    Olá,
    I'll come back if I find what's going on with this VLC and Raring installation. Especially porque the DBus was not activated by default.
    If you do (come back), it would be of some interest here to know how does AR start a player when it's set as the source ? (either from autostart or from AR window
    Seems to run the binary?? vs. the .desktop which the sound menu uses in some manner

    (only of interest here because I prefer media players to retain their menus which is done thru an env in their .desktops

    Edit: semi confirmed here that AR uses the binary, I have audacious in /opt/bin & AR would always 'lose' it on a restart. If I symlink audacious in /usr/bin then AR keeps aud in it's avail. players list.
    No way to have AR use gtk-launch <player> instead??
    Last edited by mc4man; February 3rd, 2013 at 06:33 PM.

  4. #14
    Join Date
    Jan 2006
    Location
    Grønland,Oslo
    Beans
    618

    Re: How to activate DBus-interface in the VLC media-player?

    Hello and desculpe for the late reply.

    I updated VLC from the PPA and it now behaves correctly within the sound-menu and a.r.
    Ref: https://launchpad.net/~videolan/+archive/master-daily

    Now the version number is 2.1.0.
    $ dpkg -l | grep -i vlc
    Code:
    ii  libvlc5 2.1.0~~git20130206+r2423-0~r92~raring1
    ii  libvlccore5 2.1.0~~git20130206+r2423-0~r92~raring1
    ii  vlc  2.1.0~~git20130206+r2423-0~r92~raring1
    ...
    ii  vlc-plugin-pulse
    Obrigado, the updated version of VLC fixed this bug.
    ---

    >>If you do (come back), it would be of some interest here
    >>to know how does AR start a player when it's set as the
    >>source ?

    The very recent version of a.r (in the Launchpad.net) uses the xxx.desktop file to load both the player's name and exec command with possible arguments. So the xxx.desktop file determines everything. This applies to the very latest code that you find in the https://launchpad.net/audio-recorder.

    [[You may currently use an older a.r that simply guesses the name of executable from player's service-name.]]

    Audio-recorder uses the MPRIS2-standard (DBus-command: "DesktopEntry") to ask the name of player's .desktop file. I am sure the sound-menu does exactly the same thing.

    Look for "DesktopEntry" in this file:
    http://bazaar.launchpad.net/~osmoma/.../dbus-mpris2.c

    Please see also function mpris2_start_app(gpointer player_rec) in the same source. It starts the player when needed. It will finally call the exec_command_async() function. That is defined in the src/utility.c file.

    We should improve the function so it also brings the window to the front. Seems like the MediaPlayer2 (MPRIS2 base object) actually defines a Raise() method.
    See: http://specifications.freedesktop.or...ia_Player.html
    We could simply call it. Hopefully media-players implement this method too.

    >No way to have AR use gtk-launch <player> instead??
    An interesting suggestion.
    This would need an option in the settings of a.r. Would you support that?

    And thanks so far. Very good result.
    Last edited by moma; February 7th, 2013 at 11:04 AM.

  5. #15
    Join Date
    Jun 2007
    Beans
    12,741

    Re: How to activate DBus-interface in the VLC media-player?

    Was likely using r294, latest (r303) definitely does use the .desktop.
    (however it won't be able to use an Exec= that passes an env, no big deal though, don't think too many users care about such.
    In any event solved here by making the Exec= point to a script that exports QT_X11_NO_NATIVE_MENUBAR=1 & starts vlc which AR is fine with in the .desktop.

    Ot - The sound-indicator opens listed apps in a different fashion so having an env in the .desktop isn't an issue & it's properly passed.
    (maybe in mpris2-interfaces.vala

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •