2015-04-21 16:02:40 +02:00
|
|
|
<!DOCTYPE node PUBLIC
|
|
|
|
|
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
|
|
|
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" >
|
|
|
|
|
<node xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
|
|
|
|
|
<!--
|
|
|
|
|
org.pulsevideo.Daemon1:
|
|
|
|
|
@short_description: Main interface for the pulsevideo daemon
|
|
|
|
|
|
|
|
|
|
Interface to get properties from the pulsevideo daemon and to
|
|
|
|
|
establish a client connection.
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<interface name='org.pulsevideo.Daemon1'>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- UserName: Name of the user that started the daemon -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='UserName' type='s' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- HostName: Name of the machine the daemon is running on -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='HostName' type='s' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Version: Version of the daemon -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='Version' type='s' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Name: Name of the daemon -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='Name' type='s' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Properties: Extra properties of the daemon -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='Properties' type='a{sv}' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- ConnectClient:
|
|
|
|
|
@properties: properties of the client
|
|
|
|
|
@client: a new client object
|
|
|
|
|
|
|
|
|
|
Register a client to the pulsevideo daemon. A new client object
|
|
|
|
|
will be generated that should be used to perform any other
|
|
|
|
|
action on the server.
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<method name='ConnectClient'>
|
|
|
|
|
<arg type='a{sv}' name='properties' direction='in'/>
|
|
|
|
|
<arg type='o' name='client' direction='out'/>
|
|
|
|
|
</method>
|
|
|
|
|
</interface>
|
|
|
|
|
|
2015-04-21 16:02:40 +02:00
|
|
|
<!--
|
|
|
|
|
org.pulsevideo.Client1:
|
|
|
|
|
@short_description: Main client interface
|
|
|
|
|
|
|
|
|
|
Interface obtained after connecting a client and allows for
|
|
|
|
|
obtaining an output object from a source.
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<interface name='org.pulsevideo.Client1'>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Name: Name of the client -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='Name' type='s' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Name: Properties of the client -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='Properties' type='a{sv}' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- CreateSourceOutput:
|
|
|
|
|
@source: the name of a source or an empty string
|
|
|
|
|
@props: properties to use
|
|
|
|
|
@sender: the result sender of the output
|
|
|
|
|
@output: the result output object
|
|
|
|
|
|
|
|
|
|
This method requests an output from @source with given @props.
|
|
|
|
|
@source can be the empty string, in which case the server will
|
|
|
|
|
select a good source.
|
|
|
|
|
|
|
|
|
|
@sender and @output contain the unique name and object of the
|
|
|
|
|
owner of the source.
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<method name='CreateSourceOutput'>
|
2015-04-21 16:02:40 +02:00
|
|
|
<arg type='s' name='source' direction='in'/>
|
2015-04-16 16:58:33 +02:00
|
|
|
<arg type='a{sv}' name='props' direction='in'/>
|
2015-04-17 17:27:26 +02:00
|
|
|
<arg type='s' name='sender' direction='out'/>
|
2015-04-16 16:58:33 +02:00
|
|
|
<arg type='o' name='output' direction='out'/>
|
|
|
|
|
</method>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Disconnect:
|
|
|
|
|
|
|
|
|
|
Disconnect the client from the server.
|
|
|
|
|
-->
|
|
|
|
|
<method name='Disconnect'/>
|
2015-04-16 16:58:33 +02:00
|
|
|
</interface>
|
|
|
|
|
|
2015-04-21 16:02:40 +02:00
|
|
|
<!--
|
|
|
|
|
org.pulsevideo.Introspect:
|
|
|
|
|
@short_description: Main introspection interface
|
|
|
|
|
|
|
|
|
|
This interface allows one to introspect the object on the
|
|
|
|
|
server
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<interface name='org.pulsevideo.Introspect1'>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- GetClients:
|
|
|
|
|
@clients: an array of client objects
|
|
|
|
|
|
|
|
|
|
Get a list of clients connected to this server
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<method name='GetClients'>
|
|
|
|
|
<arg type='ao' name='clients' direction='out'/>
|
|
|
|
|
</method>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- GetSources:
|
|
|
|
|
@sources: an array of source objects
|
|
|
|
|
|
|
|
|
|
Get a list of sources available on this server
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<method name='GetSources'>
|
|
|
|
|
<arg type='ao' name='sources' direction='out'/>
|
|
|
|
|
</method>
|
|
|
|
|
</interface>
|
|
|
|
|
|
2015-04-21 16:02:40 +02:00
|
|
|
<!--
|
|
|
|
|
org.pulsevideo.SourceProvider1:
|
|
|
|
|
@short_description: Interface for source provider
|
|
|
|
|
|
|
|
|
|
This interface lists the unique name and path of a
|
|
|
|
|
source
|
|
|
|
|
-->
|
2015-04-20 15:03:14 +02:00
|
|
|
<interface name='org.pulsevideo.SourceProvider1'>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Name: unique name of the provider -->
|
2015-04-20 15:03:14 +02:00
|
|
|
<property name='Name' type='s' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Path: object path of the source -->
|
2015-04-20 15:03:14 +02:00
|
|
|
<property name='Path' type='o' access='read' />
|
|
|
|
|
</interface>
|
|
|
|
|
|
2015-04-21 16:02:40 +02:00
|
|
|
<!--
|
|
|
|
|
org.pulsevideo.Source1:
|
|
|
|
|
@short_description: Main source interface
|
|
|
|
|
|
|
|
|
|
A source is an object that can provide media content.
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<interface name='org.pulsevideo.Source1'>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Name: the name of the source -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='Name' type='s' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Properties: extra source properties -->
|
2015-04-16 16:58:33 +02:00
|
|
|
<property name='Properties' type='a{sv}' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Suspended: if the source is suspended -->
|
|
|
|
|
<property name='Suspended' type='b' access='read' />
|
|
|
|
|
<!-- GetCapabilities:
|
|
|
|
|
@props: input properties
|
|
|
|
|
@caps: result capabilities
|
|
|
|
|
|
|
|
|
|
Get a list of capabilities of this source. This includes
|
|
|
|
|
supported data formats and transports. @props is used to
|
|
|
|
|
filter the amount of output capabilities
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<method name='GetCapabilities'>
|
|
|
|
|
<arg type='a{sv}' name='props' direction='in'/>
|
|
|
|
|
<arg type='aa{sv}' name='caps' direction='out'/>
|
|
|
|
|
</method>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- CreateSourceOutput:
|
|
|
|
|
@props: input properties
|
|
|
|
|
@output: the SourceOutput1 object path
|
|
|
|
|
|
|
|
|
|
Create a new output for this source with given @props
|
|
|
|
|
-->
|
2015-04-17 17:27:26 +02:00
|
|
|
<method name='CreateSourceOutput'>
|
|
|
|
|
<arg type='a{sv}' name='props' direction='in'/>
|
|
|
|
|
<arg type='o' name='output' direction='out'/>
|
|
|
|
|
</method>
|
2015-04-16 16:58:33 +02:00
|
|
|
</interface>
|
|
|
|
|
|
2015-04-21 16:02:40 +02:00
|
|
|
<!--
|
|
|
|
|
org.pulsevideo.SourceOutput1:
|
|
|
|
|
@short_description: Interface for source output
|
|
|
|
|
|
|
|
|
|
This interface is used to control the output of a source and
|
|
|
|
|
start/stop the media transport.
|
|
|
|
|
-->
|
2015-04-16 16:58:33 +02:00
|
|
|
<interface name='org.pulsevideo.SourceOutput1'>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Source: the source of this source output -->
|
2015-04-17 17:27:26 +02:00
|
|
|
<property name='Source' type='o' access='read' />
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Start:
|
|
|
|
|
@props: input properties
|
|
|
|
|
@fd: output file descriptor
|
|
|
|
|
@props: output properties
|
|
|
|
|
|
|
|
|
|
Start the datatransfer of the source with @props.
|
|
|
|
|
|
|
|
|
|
The result is a file descriptor that can be used to get metadata
|
|
|
|
|
and media. @props contains the final media format and transport
|
|
|
|
|
properties.
|
|
|
|
|
-->
|
2015-04-17 17:27:26 +02:00
|
|
|
<method name='Start'>
|
2015-04-16 16:58:33 +02:00
|
|
|
<arg type='a{sv}' name='props' direction='in'/>
|
|
|
|
|
<arg type='h' name='fd' direction='out'/>
|
|
|
|
|
<arg type='a{sv}' name='props' direction='out'/>
|
|
|
|
|
</method>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- RequestReconfigure:
|
|
|
|
|
@props: new properties
|
|
|
|
|
|
|
|
|
|
This signal is fired when the source wants to change the format
|
|
|
|
|
or transport. The client should Stop and Start the source output
|
|
|
|
|
with new properties
|
|
|
|
|
-->
|
2015-04-17 17:27:26 +02:00
|
|
|
<signal name='RequestReconfigure'>
|
|
|
|
|
<arg type='a{sv}' name='props' direction='in'/>
|
|
|
|
|
</signal>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Stop:
|
|
|
|
|
|
|
|
|
|
Stop data transport
|
|
|
|
|
-->
|
2015-04-17 17:27:26 +02:00
|
|
|
<method name='Stop'/>
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- Remove:
|
|
|
|
|
|
|
|
|
|
Remove the source output
|
|
|
|
|
-->
|
2015-04-17 17:27:26 +02:00
|
|
|
<method name='Remove'/>
|
2015-04-16 16:58:33 +02:00
|
|
|
|
2015-04-21 16:02:40 +02:00
|
|
|
<!-- This is a possible push based API. It would require a dbus call
|
|
|
|
|
for each media packet, which is probably not a good idea right now.
|
|
|
|
|
We would probably also want something more lightweight for sending
|
|
|
|
|
the properties with each fd.
|
|
|
|
|
|
2015-04-16 16:58:33 +02:00
|
|
|
<method name='Start'>
|
|
|
|
|
<arg type='a{sv}' name='props' direction='in'/>
|
|
|
|
|
<arg type='a{sv}' name='props' direction='out'/>
|
|
|
|
|
</method>
|
|
|
|
|
<method name='Stop'>
|
|
|
|
|
</method>
|
|
|
|
|
<signal name='NewData'>
|
|
|
|
|
<arg type='h' name='data' direction='out'/>
|
|
|
|
|
<arg type='a{sv}' name='props' direction='out'/>
|
|
|
|
|
</signal>
|
|
|
|
|
<method name='FreeData'>
|
|
|
|
|
<arg type='h' name='data' direction='in'/>
|
|
|
|
|
</method>
|
|
|
|
|
-->
|
|
|
|
|
</interface>
|
|
|
|
|
</node>
|