cx.ring.Ring.VideoManager.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" ?>
  2. <node name="/cx.ring.Ring.VideoManager" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
  3. <interface name="cx.ring.Ring.VideoManager">
  4. <!-- Video device methods -->
  5. <method name="getDeviceList" tp:name-for-bindings="getDeviceList">
  6. <tp:docstring>Returns a list of the detected v4l2 devices</tp:docstring>
  7. <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="VectorString"/>
  8. <arg type="as" name="list" direction="out">
  9. </arg>
  10. </method>
  11. <method name="getCapabilities" tp:name-for-bindings="getCapabilities">
  12. <tp:docstring>Returns a map of map of array of strings, containing the capabilities (channel, size, rate) of a device</tp:docstring>
  13. <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringMapStringVectorString"/>
  14. <arg type="s" name="name" direction="in">
  15. </arg>
  16. <arg type="a{sa{sas}}" name="cap" direction="out">
  17. </arg>
  18. </method>
  19. <method name="getSettings" tp:name-for-bindings="getSettings">
  20. <tp:docstring>Returns a map of settings for the given device name</tp:docstring>
  21. <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
  22. <arg type="s" name="device" direction="in">
  23. </arg>
  24. <arg type="a{ss}" name="map" direction="out">
  25. </arg>
  26. </method>
  27. <method name="applySettings" tp:name-for-bindings="applySettings">
  28. <tp:docstring>Set the preferred settings for a given device name</tp:docstring>
  29. <arg type="s" name="name" direction="in">
  30. </arg>
  31. <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="MapStringString"/>
  32. <arg type="a{ss}" name="settings" direction="in">
  33. </arg>
  34. </method>
  35. <method name="getDefaultDevice" tp:name-for-bindings="getDefaultDevice">
  36. <arg type="s" name="name" direction="out">
  37. </arg>
  38. </method>
  39. <method name="setDefaultDevice" tp:name-for-bindings="setDefaultDevice">
  40. <arg type="s" name="name" direction="in">
  41. </arg>
  42. </method>
  43. <method name="startCamera" tp:name-for-bindings="startCamera">
  44. <tp:docstring> Starts the video camera, which renders the active v4l2 device's video to shared memory. Useful for testing/debugging camera settings</tp:docstring>
  45. </method>
  46. <method name="stopCamera" tp:name-for-bindings="stopCamera">
  47. </method>
  48. <method name="switchInput" tp:name-for-bindings="switchInput">
  49. <arg type="s" name="resource" direction="in">
  50. <tp:docstring>
  51. A media resource locator (MRL).
  52. Currently, the following are supported:
  53. <ul>
  54. <li>camera://DEVICE</li>
  55. <li>display://DISPLAY_NAME[ WIDTHxHEIGHT]</li>
  56. <li>file://IMAGE_PATH</li>
  57. </ul>
  58. </tp:docstring>
  59. </arg>
  60. <arg type="b" name="switched" direction="out">
  61. <tp:docstring>Returns true if the input stream was successfully changed, false otherwise</tp:docstring>
  62. </arg>
  63. </method>
  64. <method name="hasCameraStarted" tp:name-for-bindings="hasCameraStarted">
  65. <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="Bool"/>
  66. <arg type="b" name="started" direction="out">
  67. <tp:docstring>Returns true if the camera has already started, false otherwise</tp:docstring>
  68. </arg>
  69. </method>
  70. <signal name="deviceEvent" tp:name-for-bindings="deviceEvent">
  71. <tp:docstring>Signal triggered by changes in the detected v4l2 devices, e.g. a camera being unplugged.</tp:docstring>
  72. </signal>
  73. <signal name="startedDecoding" tp:name-for-bindings="startedDecoding">
  74. <tp:docstring>Signal triggered when video is available in a shared memory buffer.</tp:docstring>
  75. <arg type="s" name="id">
  76. <tp:docstring>The ID of the call associated with the video, or "local" in the case of local video</tp:docstring>
  77. </arg>
  78. <arg type="s" name="shmPath">
  79. <tp:docstring>The path of the newly created shared memory</tp:docstring>
  80. </arg>
  81. <arg type="i" name="width">
  82. <tp:docstring>The width of the video in the shared memory</tp:docstring>
  83. </arg>
  84. <arg type="i" name="height">
  85. <tp:docstring>The height of the video in the shared memory</tp:docstring>
  86. </arg>
  87. <arg type="b" name="isMixer">
  88. <tp:docstring>Whether or not this texture belongs to a video mixer or is a single texture</tp:docstring>
  89. </arg>
  90. </signal>
  91. <signal name="stoppedDecoding" tp:name-for-bindings="stoppedDecoding">
  92. <tp:docstring>Signal triggered when video is no longer available in a shared memory buffer.</tp:docstring>
  93. <arg type="s" name="id">
  94. <tp:docstring>The ID of the call associated with the video, or "local" in the case of local video</tp:docstring>
  95. </arg>
  96. <arg type="s" name="shmPath">
  97. <tp:docstring>The path of the newly created shared memory</tp:docstring>
  98. </arg>
  99. <arg type="b" name="isMixer">
  100. <tp:docstring>Whether or not this texture belongs to a video mixer or is a single texture</tp:docstring>
  101. </arg>
  102. </signal>
  103. </interface>
  104. </node>