Mercurial > pidgin
annotate libpurple/mediamanager.h @ 26339:b2e290e76998
Remove purple_media_get_sink and the sink variables in the media structures.
The concept of a single sink per stream is no longer relevant.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Sun, 22 Mar 2009 21:52:20 +0000 |
parents | 75a02ffb0139 |
children | 1ae3af12095a |
rev | line source |
---|---|
23760 | 1 /** |
23766 | 2 * @file mediamanager.h Media Manager API |
23760 | 3 * @ingroup core |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
4 */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
5 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
6 /* purple |
23760 | 7 * |
8 * Purple is the legal property of its developers, whose names are too numerous | |
9 * to list here. Please refer to the COPYRIGHT file distributed with this | |
10 * source distribution. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License as published by | |
14 * the Free Software Foundation; either version 2 of the License, or | |
15 * (at your option) any later version. | |
16 * | |
17 * This program is distributed in the hope that it will be useful, | |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 * GNU General Public License for more details. | |
21 * | |
22 * You should have received a copy of the GNU General Public License | |
23 * along with this program; if not, write to the Free Software | |
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
25 */ | |
26 | |
27 #ifndef __MEDIA_MANAGER_H_ | |
28 #define __MEDIA_MANAGER_H_ | |
29 | |
23804
cbe97caec684
Use USE_VV instead of USE_FARSIGHT.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23797
diff
changeset
|
30 #ifdef USE_VV |
23760 | 31 |
32 #include <glib.h> | |
33 #include <glib-object.h> | |
34 | |
35 #include "connection.h" | |
36 #include "media.h" | |
37 | |
38 G_BEGIN_DECLS | |
39 | |
40 #define PURPLE_TYPE_MEDIA_MANAGER (purple_media_manager_get_type()) | |
41 #define PURPLE_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManager)) | |
42 #define PURPLE_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass)) | |
43 #define PURPLE_IS_MEDIA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA_MANAGER)) | |
44 #define PURPLE_IS_MEDIA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA_MANAGER)) | |
45 #define PURPLE_MEDIA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA_MANAGER, PurpleMediaManagerClass)) | |
46 | |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
47 /** @copydoc _PurpleMediaManager */ |
23760 | 48 typedef struct _PurpleMediaManager PurpleMediaManager; |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
49 /** @copydoc _PurpleMediaManagerClass */ |
23760 | 50 typedef struct _PurpleMediaManagerClass PurpleMediaManagerClass; |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
51 /** @copydoc _PurpleMediaManagerPrivate */ |
23760 | 52 typedef struct _PurpleMediaManagerPrivate PurpleMediaManagerPrivate; |
26081
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
53 /** @copydoc _PurpleMediaElementInfo */ |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
54 typedef struct _PurpleMediaElementInfo PurpleMediaElementInfo; |
23760 | 55 |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
56 /** The media manager class. */ |
23760 | 57 struct _PurpleMediaManagerClass |
58 { | |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
59 GObjectClass parent_class; /**< The parent class. */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
60 }; |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
61 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
62 /** The media manager's data. */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
63 struct _PurpleMediaManager |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
64 { |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
65 GObject parent; /**< The parent of this manager. */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
66 PurpleMediaManagerPrivate *priv; /**< Private data for the manager. */ |
23760 | 67 }; |
68 | |
26082
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
69 typedef enum { |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
70 PURPLE_MEDIA_ELEMENT_AUDIO = 1, /** supports audio */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
71 PURPLE_MEDIA_ELEMENT_VIDEO = 1 << 1, /** supports video */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
72 PURPLE_MEDIA_ELEMENT_AUDIO_VIDEO = PURPLE_MEDIA_ELEMENT_AUDIO |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
73 | PURPLE_MEDIA_ELEMENT_VIDEO, /** supports audio and video */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
74 |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
75 PURPLE_MEDIA_ELEMENT_NO_SRCS = 0, /** has no src pads */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
76 PURPLE_MEDIA_ELEMENT_ONE_SRC = 1 << 2, /** has one src pad */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
77 PURPLE_MEDIA_ELEMENT_MULTI_SRC = 1 << 3, /** has multiple src pads */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
78 PURPLE_MEDIA_ELEMENT_REQUEST_SRC = 1 << 4, /** src pads must be requested */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
79 |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
80 PURPLE_MEDIA_ELEMENT_NO_SINKS = 0, /** has no sink pads */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
81 PURPLE_MEDIA_ELEMENT_ONE_SINK = 1 << 5, /** has one sink pad */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
82 PURPLE_MEDIA_ELEMENT_MULTI_SINK = 1 << 6, /** has multiple sink pads */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
83 PURPLE_MEDIA_ELEMENT_REQUEST_SINK = 1 << 7, /** sink pads must be requested */ |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
84 |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
85 PURPLE_MEDIA_ELEMENT_UNIQUE = 1 << 8, /** This element is unique and |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
86 only one instance of it should |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
87 be created at a time */ |
26083
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
88 |
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
89 PURPLE_MEDIA_ELEMENT_SRC = 1 << 9, /** can be set as an active src */ |
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
90 PURPLE_MEDIA_ELEMENT_SINK = 1 << 10, /** can be set as an active sink */ |
26082
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
91 } PurpleMediaElementType; |
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
92 |
26081
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
93 struct _PurpleMediaElementInfo |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
94 { |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
95 const gchar *id; |
26082
fc100e71de5d
Added PurpleMediaElementType enum and added type to PurpleMediaElementInfo.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26081
diff
changeset
|
96 PurpleMediaElementType type; |
26083
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
97 GstElement *(*create)(void); |
26081
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
98 }; |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
99 |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
100 #ifdef __cplusplus |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
101 extern "C" { |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
102 #endif |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
103 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
104 /**************************************************************************/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
105 /** @cname Media Manager API */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
106 /**************************************************************************/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
107 /*@{*/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
108 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
109 /** |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
110 * Gets the media manager's GType. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
111 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
112 * @return The media manager's GType. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
113 */ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
114 GType purple_media_manager_get_type(void); |
23760 | 115 |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
116 /** |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
117 * Gets the "global" media manager object. It's created if it doesn't already exist. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
118 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
119 * @return The "global" instance of the media manager object. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
120 */ |
23766 | 121 PurpleMediaManager *purple_media_manager_get(void); |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
122 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
123 /** |
26114
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
124 * Gets the pipeline from the media manager. |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
125 * |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
126 * @param manager The media manager to get the pipeline from. |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
127 * |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
128 * @return The pipeline. |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
129 */ |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
130 GstElement * |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
131 purple_media_manager_get_pipeline(PurpleMediaManager *manager); |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
132 |
730e760ca39f
Move pipeline creation into the media manager.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26083
diff
changeset
|
133 /** |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
134 * Creates a media session. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
135 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
136 * @param manager The media manager to create the session under. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
137 * @param gc The connection to create the session on. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
138 * @param conference_type The conference type to feed into Farsight2. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
139 * @param remote_user The remote user to initiate the session with. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
140 * |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
141 * @return A newly created media session. |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
142 */ |
23760 | 143 PurpleMedia *purple_media_manager_create_media(PurpleMediaManager *manager, |
23797
e1c8ec1259de
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23775
diff
changeset
|
144 PurpleConnection *gc, |
e1c8ec1259de
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23775
diff
changeset
|
145 const char *conference_type, |
24987
c7d4b67b3332
Add initiator property to PurpleMedia.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24950
diff
changeset
|
146 const char *remote_user, |
c7d4b67b3332
Add initiator property to PurpleMedia.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24950
diff
changeset
|
147 gboolean initiator); |
23760 | 148 |
23876
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
149 /** |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
150 * Gets all of the media sessions. |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
151 * |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
152 * @param manager The media manager to get all of the sessions from. |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
153 * |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
154 * @return A list of all the media sessions. |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
155 */ |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
156 GList *purple_media_manager_get_media(PurpleMediaManager *manager); |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
157 |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
158 /** |
26123
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
159 * Gets all of the media sessions for a given connection. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
160 * |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
161 * @param manager The media manager to get the sessions from. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
162 * @param pc The connection the sessions are on. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
163 * |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
164 * @return A list of the media sessions on the given connection. |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
165 */ |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
166 GList *purple_media_manager_get_media_by_connection( |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
167 PurpleMediaManager *manager, PurpleConnection *pc); |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
168 |
75a02ffb0139
Added purple_media_manager_get_media_by_connection.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26117
diff
changeset
|
169 /** |
23876
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
170 * Removes a media session from the media manager. |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
171 * |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
172 * @param manager The media manager to remove the media session from. |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
173 * @param media The media session to remove. |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
174 */ |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
175 void |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
176 purple_media_manager_remove_media(PurpleMediaManager *manager, |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
177 PurpleMedia *media); |
f10e0ac24595
* Added input/output volume preferences for voice conversations.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23865
diff
changeset
|
178 |
24950
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
179 /** |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
180 * Returns a GStreamer source or sink for audio or video. |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
181 * |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
182 * @param manager The media manager to use to obtain the source/sink. |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
183 * @param type The type of source/sink to get. |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
184 */ |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
185 GstElement *purple_media_manager_get_element(PurpleMediaManager *manager, |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
186 PurpleMediaSessionType type); |
431c59a6959d
Add purple_media_manager_get_element.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
24938
diff
changeset
|
187 |
26081
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
188 PurpleMediaElementInfo *purple_media_manager_get_element_info( |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
189 PurpleMediaManager *manager, const gchar *name); |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
190 gboolean purple_media_manager_register_element(PurpleMediaManager *manager, |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
191 PurpleMediaElementInfo *info); |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
192 gboolean purple_media_manager_unregister_element(PurpleMediaManager *manager, |
521366dfd8db
Implement functions to register and unregister media elements for use in
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
25003
diff
changeset
|
193 const gchar *name); |
26083
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
194 gboolean purple_media_manager_set_active_element(PurpleMediaManager *manager, |
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
195 PurpleMediaElementInfo *info); |
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
196 PurpleMediaElementInfo *purple_media_manager_get_active_element( |
0e8814c437b2
Add active elements to PurpleMediaManager. These are the elements that
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26082
diff
changeset
|
197 PurpleMediaManager *manager, PurpleMediaElementType type); |
26117
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
198 /** |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
199 * This shouldn't be called outside of mediamanager.c and media.c |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
200 */ |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
201 gboolean purple_media_manager_create_output_window( |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
202 PurpleMediaManager *manager, PurpleMedia *media, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
203 const gchar *session_id, const gchar *participant); |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
204 gulong purple_media_manager_set_output_window(PurpleMediaManager *manager, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
205 PurpleMedia *media, const gchar *session_id, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
206 const gchar *participant, gulong window_id); |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
207 gboolean purple_media_manager_remove_output_window( |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
208 PurpleMediaManager *manager, gulong output_window_id); |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
209 void purple_media_manager_remove_output_windows( |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
210 PurpleMediaManager *manager, PurpleMedia *media, |
6cf36f68033c
Only create output windows once there's data to be output.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26114
diff
changeset
|
211 const gchar *session_id, const gchar *participant); |
23865
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
212 /*}@*/ |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
213 |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
214 #ifdef __cplusplus |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
215 } |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
216 #endif |
b8a73b6dc0a4
* Added documentation to media.h and mediamanager.h
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23804
diff
changeset
|
217 |
23760 | 218 G_END_DECLS |
219 | |
23804
cbe97caec684
Use USE_VV instead of USE_FARSIGHT.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
23797
diff
changeset
|
220 #endif /* USE_VV */ |
23760 | 221 |
222 | |
223 #endif /* __MEDIA_MANAGER_H_ */ |