Sat, 12 Oct 2013 22:57:00 +0530
Added /*< private >*/ for padding members, clean them up and add missing ones
| 19883 | 1 | /** |
| 19889 | 2 | * @file media.h Media API |
| 19883 | 3 | * @ingroup core |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
4 | */ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
5 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
6 | /* purple |
| 19883 | 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 | |
|
28321
c8d617c408ab
Update various header copyrights thanks to licensecheck.
Paul Aurich <darkrain42@pidgin.im>
parents:
28133
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 19883 | 25 | */ |
| 26 | ||
|
26649
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
27 | #ifndef _PURPLE_MEDIA_H_ |
|
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
28 | #define _PURPLE_MEDIA_H_ |
|
26617
514bdfc137d5
Use PurpleMediaKeyPair. Remove PurpleMediaCodecParameter.
Michael Ruprecht <maiku@pidgin.im>
parents:
26613
diff
changeset
|
29 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
30 | #include <glib.h> |
|
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
31 | #include <glib-object.h> |
|
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
32 | |
|
29552
a2ad7335a7a4
Split out PurpleMediaCandidate into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
29551
diff
changeset
|
33 | #include "media/candidate.h" |
|
29554
f6ea03b38873
Break PurpleMediaCodec out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
29552
diff
changeset
|
34 | #include "media/codec.h" |
|
29551
5208cf010a12
Split the media API's enum types out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
29539
diff
changeset
|
35 | #include "media/enum-types.h" |
|
5208cf010a12
Split the media API's enum types out into its own file.
Michael Ruprecht <maiku@pidgin.im>
parents:
29539
diff
changeset
|
36 | |
| 19883 | 37 | #define PURPLE_TYPE_MEDIA (purple_media_get_type()) |
| 38 | #define PURPLE_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_MEDIA, PurpleMedia)) | |
| 39 | #define PURPLE_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_MEDIA, PurpleMediaClass)) | |
| 40 | #define PURPLE_IS_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_MEDIA)) | |
| 41 | #define PURPLE_IS_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_MEDIA)) | |
| 42 | #define PURPLE_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_MEDIA, PurpleMediaClass)) | |
| 43 | ||
|
34994
dfcc9f64f58c
Move media/theme GObject docs to appropriate places
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
44 | /** @copydoc _PurpleMedia */ |
| 19883 | 45 | typedef struct _PurpleMedia PurpleMedia; |
|
26229
3e786c9ebb62
Duplicate FsCandidate to remove it from the public interface.
Michael Ruprecht <maiku@pidgin.im>
parents:
26226
diff
changeset
|
46 | |
|
26649
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
47 | #include "signals.h" |
|
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
48 | #include "util.h" |
|
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
49 | |
|
34532
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
50 | #ifdef USE_VV |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
51 | |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
52 | /** @copydoc _PurpleMediaClass */ |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
53 | typedef struct _PurpleMediaClass PurpleMediaClass; |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
54 | typedef struct _PurpleMediaPrivate PurpleMediaPrivate; |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
55 | |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
56 | /** The media instance */ |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
57 | struct _PurpleMedia |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
58 | { |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
59 | GObject parent; /**< The parent of this object. */ |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34994
diff
changeset
|
60 | |
|
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34994
diff
changeset
|
61 | /*< private >*/ |
|
34532
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
62 | PurpleMediaPrivate *priv; /**< The private data of this object. */ |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
63 | }; |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
64 | |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
65 | /** The media class */ |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
66 | struct _PurpleMediaClass |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
67 | { |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
68 | GObjectClass parent_class; /**< The parent class. */ |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
69 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34994
diff
changeset
|
70 | /*< private >*/ |
|
34532
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
71 | void (*purple_reserved1)(void); |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
72 | void (*purple_reserved2)(void); |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
73 | void (*purple_reserved3)(void); |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
74 | void (*purple_reserved4)(void); |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
75 | }; |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
76 | |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
77 | #endif |
|
76a778894fc1
Exposed the instance and class structures of PurpleMedia so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
78 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
79 | G_BEGIN_DECLS |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
80 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
81 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
82 | * Gets the media class's GType |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
83 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
84 | * @return The media class's GType. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
85 | */ |
|
22071
4c47e360e467
Fix the prplinfo structs and get rid of some compile warnings.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19889
diff
changeset
|
86 | GType purple_media_get_type(void); |
| 19883 | 87 | |
|
26193
101122f0f3dd
Add state-changed signal to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26184
diff
changeset
|
88 | /** |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
89 | * Gets a list of session IDs. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
90 | * |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
91 | * @param media The media session from which to retrieve session IDs. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
92 | * |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
93 | * @return GList of session IDs. The caller must free the list. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
94 | */ |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
95 | GList *purple_media_get_session_ids(PurpleMedia *media); |
|
23721
15285d082f6c
Refactored PurpleMedia to make creating audio or video sessions virtually identical. Audio, video, and audio/video sessions now work. Also added videotestsrc to the video plugin preference.
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
96 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
97 | /** |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
98 | * Gets the PurpleAccount this media session is on. |
|
26327
6a436310d508
Added the connection property back to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
99 | * |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
100 | * @param media The media session to retrieve the account from. |
|
26327
6a436310d508
Added the connection property back to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
101 | * |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
102 | * @return The account retrieved. |
|
26327
6a436310d508
Added the connection property back to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
103 | */ |
|
26746
2a2d45ac9774
Switch media to store accounts rather than connections.
Michael Ruprecht <maiku@pidgin.im>
parents:
26649
diff
changeset
|
104 | PurpleAccount *purple_media_get_account(PurpleMedia *media); |
|
26327
6a436310d508
Added the connection property back to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
105 | |
|
6a436310d508
Added the connection property back to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26323
diff
changeset
|
106 | /** |
|
26328
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
107 | * Gets the prpl data from the media session. |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
108 | * |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
109 | * @param media The media session to retrieve the prpl data from. |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
110 | * |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
111 | * @return The prpl data retrieved. |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
112 | */ |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
113 | gpointer purple_media_get_prpl_data(PurpleMedia *media); |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
114 | |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
115 | /** |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
116 | * Sets the prpl data on the media session. |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
117 | * |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
118 | * @param media The media session to set the prpl data on. |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
119 | * @param prpl_data The data to set on the media session. |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
120 | */ |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
121 | void purple_media_set_prpl_data(PurpleMedia *media, gpointer prpl_data); |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
122 | |
|
9c15d3c83e24
Add a prpl-data property to PurpleMedia.
Michael Ruprecht <maiku@pidgin.im>
parents:
26327
diff
changeset
|
123 | /** |
|
26182
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
124 | * Signals an error in the media session. |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
125 | * |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
126 | * @param media The media object to set the state on. |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
127 | * @param error The format of the error message to send in the signal. |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
128 | * @param ... The arguments to plug into the format. |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
129 | */ |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
130 | void purple_media_error(PurpleMedia *media, const gchar *error, ...); |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
131 | |
|
728ad1da9cbc
Add purple_media_error.
Michael Ruprecht <maiku@pidgin.im>
parents:
26176
diff
changeset
|
132 | /** |
|
26264
c062fc1f212f
Added purple_media_end and removed the purple_media_got_hangup.
Michael Ruprecht <maiku@pidgin.im>
parents:
26259
diff
changeset
|
133 | * Ends all streams that match the given parameters |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
134 | * |
|
26264
c062fc1f212f
Added purple_media_end and removed the purple_media_got_hangup.
Michael Ruprecht <maiku@pidgin.im>
parents:
26259
diff
changeset
|
135 | * @param media The media object with which to end streams. |
|
c062fc1f212f
Added purple_media_end and removed the purple_media_got_hangup.
Michael Ruprecht <maiku@pidgin.im>
parents:
26259
diff
changeset
|
136 | * @param session_id The session to end streams on. |
|
c062fc1f212f
Added purple_media_end and removed the purple_media_got_hangup.
Michael Ruprecht <maiku@pidgin.im>
parents:
26259
diff
changeset
|
137 | * @param participant The participant to end streams with. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
138 | */ |
|
26264
c062fc1f212f
Added purple_media_end and removed the purple_media_got_hangup.
Michael Ruprecht <maiku@pidgin.im>
parents:
26259
diff
changeset
|
139 | void purple_media_end(PurpleMedia *media, const gchar *session_id, |
|
c062fc1f212f
Added purple_media_end and removed the purple_media_got_hangup.
Michael Ruprecht <maiku@pidgin.im>
parents:
26259
diff
changeset
|
140 | const gchar *participant); |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
141 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
142 | /** |
|
26496
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
143 | * Signals different information about the given stream. |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
144 | * |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
145 | * @param media The media instance to containing the stream to signal. |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
146 | * @param type The type of info being signaled. |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
147 | * @param session_id The id of the session of the stream being signaled. |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
148 | * @param participant The participant of the stream being signaled. |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
149 | * @param local TRUE if the info originated locally, FALSE if on the remote end. |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
150 | */ |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
151 | void purple_media_stream_info(PurpleMedia *media, PurpleMediaInfoType type, |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
152 | const gchar *session_id, const gchar *participant, |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
153 | gboolean local); |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
154 | |
|
11e1e5221460
Create purple_media_stream_info. Add local parameter to stream-info signal.
Michael Ruprecht <maiku@pidgin.im>
parents:
26480
diff
changeset
|
155 | /** |
|
31687
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
156 | * Sets various optional parameters of the media call. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
157 | * |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
158 | * Currently supported are: |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
159 | * - "sdes-cname" : The CNAME for the RTP sessions |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
160 | * - "sdes-name" : Real name used to describe the source in SDES messages |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
161 | * - "sdes-tool" : The TOOL to put in SDES messages |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
162 | * - "sdes-email" : Email address to put in SDES messages |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
163 | * - "sdes-location" : The LOCATION to put in SDES messages |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
164 | * - "sdes-note" : The NOTE to put in SDES messages |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
165 | * - "sdes-phone" : The PHONE to put in SDES messages |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
166 | * |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
167 | * @param media The media object to set the parameters on. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
168 | * @param num_params The number of parameters to pass |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
169 | * @param params Array of @c GParameter to pass |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
170 | */ |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
171 | void purple_media_set_params(PurpleMedia *media, |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
172 | guint num_params, GParameter *params); |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
173 | |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
174 | /** |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
175 | * Gets the list of optional parameters supported by the media backend. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
176 | * |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
177 | * The list is owned by the @c PurpleMedia internals and should NOT be freed. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
178 | * |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
179 | * @param media The media object |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
180 | * |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
181 | * @return NULL-terminated array of names of supported parameters. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
182 | */ |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
183 | const gchar **purple_media_get_available_params(PurpleMedia *media); |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
184 | |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
185 | /** |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
186 | * Checks if given optional parameter is supported by the media backend. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
187 | * |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
188 | * @param media The media object |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
189 | * @param param name of parameter |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
190 | * |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
191 | * @return @c TRUE if backend recognizes the parameter, @c FALSE otherwise. |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
192 | */ |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
193 | gboolean purple_media_param_is_supported(PurpleMedia *media, const gchar *param); |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
194 | |
|
4877d06f3234
media: Allow setting SDES properties of RTP conferences. Fixes #12981.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31131
diff
changeset
|
195 | /** |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
196 | * Adds a stream to a session. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
197 | * |
|
26134
2def4b29fcfe
purple_media_add_stream should only add a stream to one session.
Michael Ruprecht <maiku@pidgin.im>
parents:
26133
diff
changeset
|
198 | * It only adds a stream to one audio session or video session as |
|
2def4b29fcfe
purple_media_add_stream should only add a stream to one session.
Michael Ruprecht <maiku@pidgin.im>
parents:
26133
diff
changeset
|
199 | * the @c sess_id must be unique between sessions. |
|
2def4b29fcfe
purple_media_add_stream should only add a stream to one session.
Michael Ruprecht <maiku@pidgin.im>
parents:
26133
diff
changeset
|
200 | * |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
201 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
202 | * @param sess_id The session id of the session to add the stream to. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
203 | * @param who The name of the remote user to add the stream for. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
204 | * @param type The type of stream to create. |
|
26514
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
205 | * @param initiator Whether or not the local user initiated the stream. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
206 | * @param transmitter The transmitter to use for the stream. |
|
26134
2def4b29fcfe
purple_media_add_stream should only add a stream to one session.
Michael Ruprecht <maiku@pidgin.im>
parents:
26133
diff
changeset
|
207 | * @param num_params The number of parameters to pass to Farsight. |
|
2def4b29fcfe
purple_media_add_stream should only add a stream to one session.
Michael Ruprecht <maiku@pidgin.im>
parents:
26133
diff
changeset
|
208 | * @param params The parameters to pass to Farsight. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
209 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
210 | * @return @c TRUE The stream was added successfully, @c FALSE otherwise. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
211 | */ |
|
26514
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
212 | gboolean purple_media_add_stream(PurpleMedia *media, const gchar *sess_id, |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
213 | const gchar *who, PurpleMediaSessionType type, |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
214 | gboolean initiator, const gchar *transmitter, |
|
26133
a12ffee5bd73
Add params to purple_media_add_stream to allow for different libNice
Michael Ruprecht <maiku@pidgin.im>
parents:
26131
diff
changeset
|
215 | guint num_params, GParameter *params); |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
216 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
217 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
218 | * Gets the session type from a session |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
219 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
220 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
221 | * @param sess_id The session id of the session to get the type from. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
222 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
223 | * @return The retreived session type. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
224 | */ |
|
26108
8d0fd2f195aa
Changed PurpleMediaStreamType to PurpleMediaSessionType.
Michael Ruprecht <maiku@pidgin.im>
parents:
26105
diff
changeset
|
225 | PurpleMediaSessionType purple_media_get_session_type(PurpleMedia *media, const gchar *sess_id); |
|
23697
299bafcd8eb8
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents:
22682
diff
changeset
|
226 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
227 | /** |
|
26523
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
228 | * Gets the PurpleMediaManager this media session is a part of. |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
229 | * |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
230 | * @param media The media object to get the manager instance from. |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
231 | * |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
232 | * @return The PurpleMediaManager instance retrieved. |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
233 | */ |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
234 | struct _PurpleMediaManager *purple_media_get_manager(PurpleMedia *media); |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
235 | |
|
4544b079e3dd
Use purple_media_manager_get_pipeline instead.
Michael Ruprecht <maiku@pidgin.im>
parents:
26516
diff
changeset
|
236 | /** |
|
26160
46bc5e18d59c
Combine get_*_codecs functions to mirror Farsight 2.
Michael Ruprecht <maiku@pidgin.im>
parents:
26143
diff
changeset
|
237 | * Gets the codecs from a session. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
238 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
239 | * @param media The media object to find the session in. |
|
26160
46bc5e18d59c
Combine get_*_codecs functions to mirror Farsight 2.
Michael Ruprecht <maiku@pidgin.im>
parents:
26143
diff
changeset
|
240 | * @param sess_id The session id of the session to get the codecs from. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
241 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
242 | * @return The retreieved codecs. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
243 | */ |
|
26160
46bc5e18d59c
Combine get_*_codecs functions to mirror Farsight 2.
Michael Ruprecht <maiku@pidgin.im>
parents:
26143
diff
changeset
|
244 | GList *purple_media_get_codecs(PurpleMedia *media, const gchar *sess_id); |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
245 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
246 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
247 | * Adds remote candidates to the stream. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
248 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
249 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
250 | * @param sess_id The session id of the session find the stream in. |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
251 | * @param participant The name of the remote user to add the candidates for. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
252 | * @param remote_candidates The remote candidates to add. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
253 | */ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
254 | void purple_media_add_remote_candidates(PurpleMedia *media, |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
255 | const gchar *sess_id, |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
256 | const gchar *participant, |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
257 | GList *remote_candidates); |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
258 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
259 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
260 | * Gets the local candidates from a stream. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
261 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
262 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
263 | * @param sess_id The session id of the session to find the stream in. |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
264 | * @param participant The name of the remote user to get the candidates from. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
265 | */ |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
266 | GList *purple_media_get_local_candidates(PurpleMedia *media, |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
267 | const gchar *sess_id, |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
268 | const gchar *participant); |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
269 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
270 | /** |
|
26304
6e19bf6af065
Handle having multiple active candidates.
Michael Ruprecht <maiku@pidgin.im>
parents:
26281
diff
changeset
|
271 | * Gets the active local candidates for the stream. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
272 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
273 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
274 | * @param sess_id The session id of the session to find the stream in. |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
275 | * @param participant The name of the remote user to get the active candidate |
|
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
276 | * from. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
277 | * |
|
26304
6e19bf6af065
Handle having multiple active candidates.
Michael Ruprecht <maiku@pidgin.im>
parents:
26281
diff
changeset
|
278 | * @return The active candidates retrieved. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
279 | */ |
|
26304
6e19bf6af065
Handle having multiple active candidates.
Michael Ruprecht <maiku@pidgin.im>
parents:
26281
diff
changeset
|
280 | GList *purple_media_get_active_local_candidates(PurpleMedia *media, |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
281 | const gchar *sess_id, const gchar *participant); |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
282 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
283 | /** |
|
26304
6e19bf6af065
Handle having multiple active candidates.
Michael Ruprecht <maiku@pidgin.im>
parents:
26281
diff
changeset
|
284 | * Gets the active remote candidates for the stream. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
285 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
286 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
287 | * @param sess_id The session id of the session to find the stream in. |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
288 | * @param participant The name of the remote user to get the remote candidate |
|
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
289 | * from. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
290 | * |
|
26304
6e19bf6af065
Handle having multiple active candidates.
Michael Ruprecht <maiku@pidgin.im>
parents:
26281
diff
changeset
|
291 | * @return The remote candidates retrieved. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
292 | */ |
|
26304
6e19bf6af065
Handle having multiple active candidates.
Michael Ruprecht <maiku@pidgin.im>
parents:
26281
diff
changeset
|
293 | GList *purple_media_get_active_remote_candidates(PurpleMedia *media, |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
294 | const gchar *sess_id, const gchar *participant); |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
295 | |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
296 | /** |
|
26638
064f8329214e
Fix purple_media_set_remote_codecs ()'s docstring
Will Thompson <resiak@pidgin.im>
parents:
26621
diff
changeset
|
297 | * Sets remote candidates from the stream. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
298 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
299 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
300 | * @param sess_id The session id of the session find the stream in. |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
301 | * @param participant The name of the remote user to set the candidates from. |
|
28420
c7403b581af6
Fix some docs warnings. Thanks to darkrain for pointing them out.
Michael Ruprecht <maiku@pidgin.im>
parents:
28321
diff
changeset
|
302 | * @param codecs The list of remote codecs to set. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
303 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
304 | * @return @c TRUE The codecs were set successfully, or @c FALSE otherwise. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
305 | */ |
|
23745
091a506a7018
Added better Farsight error handling.
Michael Ruprecht <maiku@pidgin.im>
parents:
23737
diff
changeset
|
306 | gboolean purple_media_set_remote_codecs(PurpleMedia *media, const gchar *sess_id, |
|
26956
bcea44c3efa1
Distinguish name and participant in PurpleMedia API
Paul Aurich <darkrain42@pidgin.im>
parents:
26746
diff
changeset
|
307 | const gchar *participant, GList *codecs); |
|
23697
299bafcd8eb8
Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents:
22682
diff
changeset
|
308 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
309 | /** |
|
26430
439ade36af30
Change purple_media_candidates_prepared to use wildcards.
Michael Ruprecht <maiku@pidgin.im>
parents:
26328
diff
changeset
|
310 | * Returns whether or not the candidates for set of streams are prepared |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
311 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
312 | * @param media The media object to find the remote user in. |
|
26430
439ade36af30
Change purple_media_candidates_prepared to use wildcards.
Michael Ruprecht <maiku@pidgin.im>
parents:
26328
diff
changeset
|
313 | * @param session_id The session id of the session to check. |
|
439ade36af30
Change purple_media_candidates_prepared to use wildcards.
Michael Ruprecht <maiku@pidgin.im>
parents:
26328
diff
changeset
|
314 | * @param participant The remote user to check for. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
315 | * |
|
26430
439ade36af30
Change purple_media_candidates_prepared to use wildcards.
Michael Ruprecht <maiku@pidgin.im>
parents:
26328
diff
changeset
|
316 | * @return @c TRUE All streams for the given session_id/participant combination have candidates prepared, @c FALSE otherwise. |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
317 | */ |
|
26430
439ade36af30
Change purple_media_candidates_prepared to use wildcards.
Michael Ruprecht <maiku@pidgin.im>
parents:
26328
diff
changeset
|
318 | gboolean purple_media_candidates_prepared(PurpleMedia *media, |
|
439ade36af30
Change purple_media_candidates_prepared to use wildcards.
Michael Ruprecht <maiku@pidgin.im>
parents:
26328
diff
changeset
|
319 | const gchar *session_id, const gchar *participant); |
|
23730
ed15b42da75c
Jingle sessions now keep track of their transaction state to a degree.
Michael Ruprecht <maiku@pidgin.im>
parents:
23724
diff
changeset
|
320 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
321 | /** |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
322 | * Sets the send codec for the a session. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
323 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
324 | * @param media The media object to find the session in. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
325 | * @param sess_id The session id of the session to set the codec for. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
326 | * @param codec The codec to set the session to stream. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
327 | * |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
328 | * @return @c TRUE The codec was successfully changed, or @c FALSE otherwise. |
|
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
329 | */ |
|
26232
f91c96072586
Wrap FsCodec and remove the Farsight2 include from media.h.
Michael Ruprecht <maiku@pidgin.im>
parents:
26230
diff
changeset
|
330 | gboolean purple_media_set_send_codec(PurpleMedia *media, const gchar *sess_id, PurpleMediaCodec *codec); |
|
26102
881a436d77eb
Set the proper send codec in Farsight.
Michael Ruprecht <maiku@pidgin.im>
parents:
26099
diff
changeset
|
331 | |
|
26105
7647c0dcf202
* Added documentation to media.h and mediamanager.h
Michael Ruprecht <maiku@pidgin.im>
parents:
26103
diff
changeset
|
332 | /** |
|
26137
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
333 | * Gets whether a session's codecs are ready to be used. |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
334 | * |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
335 | * @param media The media object to find the session in. |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
336 | * @param sess_id The session id of the session to check. |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
337 | * |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
338 | * @return @c TRUE The codecs are ready, or @c FALSE otherwise. |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
339 | */ |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
340 | gboolean purple_media_codecs_ready(PurpleMedia *media, const gchar *sess_id); |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
341 | |
|
0688cf5221c9
Wait for Farsight 2's codecs-ready property to be TRUE before using codecs.
Michael Ruprecht <maiku@pidgin.im>
parents:
26135
diff
changeset
|
342 | /** |
|
26514
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
343 | * Gets whether the local user is the conference/session/stream's initiator. |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
344 | * |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
345 | * @param media The media instance to find the session in. |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
346 | * @param sess_id The session id of the session to check. |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
347 | * @param participant The participant of the stream to check. |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
348 | * |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
349 | * @return TRUE if the local user is the stream's initator, else FALSE. |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
350 | */ |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
351 | gboolean purple_media_is_initiator(PurpleMedia *media, |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
352 | const gchar *sess_id, const gchar *participant); |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
353 | |
|
058053cffc0e
Add purple_media_is_initiator.
Michael Ruprecht <maiku@pidgin.im>
parents:
26513
diff
changeset
|
354 | /** |
|
26267
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
355 | * Gets whether a streams selected have been accepted. |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
356 | * |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
357 | * @param media The media object to find the session in. |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
358 | * @param sess_id The session id of the session to check. |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
359 | * @param participant The participant to check. |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
360 | * |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
361 | * @return @c TRUE The selected streams have been accepted, or @c FALSE otherwise. |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
362 | */ |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
363 | gboolean purple_media_accepted(PurpleMedia *media, const gchar *sess_id, |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
364 | const gchar *participant); |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
365 | |
|
3bd0240f0632
Add the accepted signal and make the accept button go away immediately.
Michael Ruprecht <maiku@pidgin.im>
parents:
26264
diff
changeset
|
366 | /** |
|
26172
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
367 | * Sets the input volume of all the selected sessions. |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
368 | * |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
369 | * @param media The media object the sessions are in. |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
370 | * @param session_id The session to select (if any). |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
371 | * @param level The level to set the volume to. |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
372 | */ |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
373 | void purple_media_set_input_volume(PurpleMedia *media, const gchar *session_id, double level); |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
374 | |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
375 | /** |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
376 | * Sets the output volume of all the selected streams. |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
377 | * |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
378 | * @param media The media object the streams are in. |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
379 | * @param session_id The session to limit the streams to (if any). |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
380 | * @param participant The participant to limit the streams to (if any). |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
381 | * @param level The level to set the volume to. |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
382 | */ |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
383 | void purple_media_set_output_volume(PurpleMedia *media, const gchar *session_id, |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
384 | const gchar *participant, double level); |
|
b14249e42983
Added media functions to set input and output volume.
Michael Ruprecht <maiku@pidgin.im>
parents:
26162
diff
changeset
|
385 | |
|
26453
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
386 | /** |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
387 | * Sets a video output window for the given session/stream. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
388 | * |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
389 | * @param media The media instance to set the output window on. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
390 | * @param session_id The session to set the output window on. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
391 | * @param participant Optionally, the participant to set the output window on. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
392 | * @param window_id The window id use for embedding the video in. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
393 | * |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
394 | * @return An id to reference the output window. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
395 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26316
diff
changeset
|
396 | gulong purple_media_set_output_window(PurpleMedia *media, |
|
26259
0983517fc75f
Wait to create the sinks until the frames are ready.
Michael Ruprecht <maiku@pidgin.im>
parents:
26248
diff
changeset
|
397 | const gchar *session_id, const gchar *participant, |
|
0983517fc75f
Wait to create the sinks until the frames are ready.
Michael Ruprecht <maiku@pidgin.im>
parents:
26248
diff
changeset
|
398 | gulong window_id); |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26316
diff
changeset
|
399 | |
|
26453
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
400 | /** |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
401 | * Removes all output windows from a given media session. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
402 | * |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
403 | * @param media The instance to remove all output windows from. |
|
41db8e31e6ff
Add documentation for a few media functions.
Michael Ruprecht <maiku@pidgin.im>
parents:
26452
diff
changeset
|
404 | */ |
|
26323
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26316
diff
changeset
|
405 | void purple_media_remove_output_windows(PurpleMedia *media); |
|
cf93de98325c
Only create output windows once there's data to be output.
Michael Ruprecht <maiku@pidgin.im>
parents:
26316
diff
changeset
|
406 | |
| 19883 | 407 | G_END_DECLS |
| 408 | ||
|
26649
1a6c4fd19355
Add PURPLE to the media header sentinels and reorder includes to fix building gf2
Paul Aurich <darkrain42@pidgin.im>
parents:
26648
diff
changeset
|
409 | #endif /* _PURPLE_MEDIA_H_ */ |