Difference between revisions of "DBus"

From VideoLAN Wiki
Jump to navigation Jump to search
 
m (syntaxhighlight)
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
TODO for DBus integration:
+
{{See also|DBus-spec|DBus-usage}}
  
- List all signals, and especially methods that need to be implemented, and list their arguments and return value
+
== TODO for DBus integration ==
  
- Choose a binding language, since C isn't very friendly for example for objects to be introspectable. QT4 seems nice as it'll soon implement bindings on windows (when DBus for windows is ready) but it's a quite big dependancy. Other options are glib, c++
+
VLC implements [[DBus-spec]], a desktop-neutral document, that aims to be suitable for every Media Players.
  
- Decide what to do when org.videolan service is already registered by another instance of vlc: let the first instance do all the work ? replace it ? place vlc on the queue ?
+
=== Decide service behaviour ===
  
- Could vlc be a on-demand startable service, would it be useful ?
+
Could vlc be a on-demand startable service, would it be useful ?
 +
 
 +
We just have to create a /usr/share/dbus-1/org.freedesktop.MediaPlayer.service:
 +
 
 +
<syntaxhighlight lang="ini">
 +
[D-BUS Service]
 +
 
 +
Name=org.freedesktop.MediaPlayer
 +
 
 +
Exec=/usr/bin/vlc -I dummy --control dbus
 +
</syntaxhighlight>
 +
 
 +
[[Category:Development]]

Latest revision as of 03:54, 19 March 2019

See also: DBus-spec and DBus-usage

TODO for DBus integration

VLC implements DBus-spec, a desktop-neutral document, that aims to be suitable for every Media Players.

Decide service behaviour

Could vlc be a on-demand startable service, would it be useful ?

We just have to create a /usr/share/dbus-1/org.freedesktop.MediaPlayer.service:

[D-BUS Service]

Name=org.freedesktop.MediaPlayer

Exec=/usr/bin/vlc -I dummy --control dbus