Mercurial > pidgin
comparison libpurple/media.h @ 26349:1ae3af12095a
Move GStreamer related media functions into its own header.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Mon, 23 Mar 2009 02:59:18 +0000 |
parents | d7393eebf1f4 |
children | 064657db29c4 |
comparison
equal
deleted
inserted
replaced
26348:d7393eebf1f4 | 26349:1ae3af12095a |
---|---|
27 #ifndef __MEDIA_H_ | 27 #ifndef __MEDIA_H_ |
28 #define __MEDIA_H_ | 28 #define __MEDIA_H_ |
29 | 29 |
30 #ifdef USE_VV | 30 #ifdef USE_VV |
31 | 31 |
32 #include <gst/gst.h> | |
33 #include <glib.h> | 32 #include <glib.h> |
34 #include <glib-object.h> | 33 #include <glib-object.h> |
35 | 34 |
36 G_BEGIN_DECLS | 35 G_BEGIN_DECLS |
37 | 36 |
321 * @return GList of session names. | 320 * @return GList of session names. |
322 */ | 321 */ |
323 GList *purple_media_get_session_names(PurpleMedia *media); | 322 GList *purple_media_get_session_names(PurpleMedia *media); |
324 | 323 |
325 /** | 324 /** |
326 * Gets the source from a session | |
327 * | |
328 * @param media The media object the session is in. | |
329 * @param sess_id The session id of the session to get the source from. | |
330 * | |
331 * @return The source retrieved. | |
332 */ | |
333 GstElement *purple_media_get_src(PurpleMedia *media, const gchar *sess_id); | |
334 | |
335 /** | |
336 * Gets the pipeline from the media session. | |
337 * | |
338 * @param media The media session to retrieve the pipeline from. | |
339 * | |
340 * @return The pipeline retrieved. | |
341 */ | |
342 GstElement *purple_media_get_pipeline(PurpleMedia *media); | |
343 | |
344 /** | |
345 * Gets the PurpleConnection this media session is on. | 325 * Gets the PurpleConnection this media session is on. |
346 * | 326 * |
347 * @param media The media session to retrieve the connection from. | 327 * @param media The media session to retrieve the connection from. |
348 * | 328 * |
349 * @return The connection retrieved. | 329 * @return The connection retrieved. |
608 * | 588 * |
609 * @param media The instance to remove all output windows from. | 589 * @param media The instance to remove all output windows from. |
610 */ | 590 */ |
611 void purple_media_remove_output_windows(PurpleMedia *media); | 591 void purple_media_remove_output_windows(PurpleMedia *media); |
612 | 592 |
613 /** | |
614 * Gets the tee from a given session/stream. | |
615 * | |
616 * @param media The instance to get the tee from. | |
617 * @param session_id The id of the session to get the tee from. | |
618 * @param participant Optionally, the participant of the stream to get the tee from. | |
619 * | |
620 * @return The GstTee element from the chosen session/stream. | |
621 */ | |
622 GstElement *purple_media_get_tee(PurpleMedia *media, | |
623 const gchar *session_id, const gchar *participant); | |
624 | |
625 #ifdef __cplusplus | 593 #ifdef __cplusplus |
626 } | 594 } |
627 #endif | 595 #endif |
628 | 596 |
629 G_END_DECLS | 597 G_END_DECLS |