4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>TotemObject</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
<link rel="home" href="index.html" title="Totem Reference Manual">
8
8
<link rel="up" href="core-api.html" title="Core API">
9
9
<link rel="prev" href="core-api.html" title="Core API">
10
10
<link rel="next" href="totem-Interface.html" title="Interface">
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
75
74
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-object-add-to-playlist-and-play" title="totem_object_add_to_playlist_and_play ()">totem_object_add_to_playlist_and_play</a>
76
75
(<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
77
76
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
78
<em class="parameter"><code>const <span class="type">char</span> *display_name</code></em>,
79
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> add_to_recent</code></em>);
77
<em class="parameter"><code>const <span class="type">char</span> *display_name</code></em>);
80
78
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-object-action-play" title="totem_object_action_play ()">totem_object_action_play</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
81
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-action-play-media" title="totem_action_play_media ()">totem_action_play_media</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/totem-pl-parser/totem-pl-parser-TotemDisc.html#TotemDiscMediaType"><span class="type">TotemDiscMediaType</span></a> type</code></em>,
83
<em class="parameter"><code>const <span class="type">char</span> *device</code></em>);
84
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-action-play-media-device" title="totem_action_play_media_device ()">totem_action_play_media_device</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
85
<em class="parameter"><code>const <span class="type">char</span> *device</code></em>);
86
79
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-object-action-play-pause" title="totem_object_action_play_pause ()">totem_object_action_play_pause</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
87
80
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-action-pause" title="totem_action_pause ()">totem_action_pause</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
88
81
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-object-action-stop" title="totem_object_action_stop ()">totem_object_action_stop</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
127
120
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="TotemObject.html#totem-object-is-playing" title="totem_object_is_playing ()">totem_object_is_playing</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
128
121
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="TotemObject.html#totem-object-is-paused" title="totem_object_is_paused ()">totem_object_is_paused</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
129
122
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="TotemObject.html#totem-object-is-seekable" title="totem_object_is_seekable ()">totem_object_is_seekable</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
130
<a href="http://developer.gnome.org/devel/gtk/GtkWindow.html"><span class="returnvalue">GtkWindow</span></a> * <a class="link" href="TotemObject.html#totem-object-get-main-window" title="totem_object_get_main_window ()">totem_object_get_main_window</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
131
<a href="http://developer.gnome.org/devel/gtk/GtkUIManager.html"><span class="returnvalue">GtkUIManager</span></a> * <a class="link" href="TotemObject.html#totem-object-get-ui-manager" title="totem_object_get_ui_manager ()">totem_object_get_ui_manager</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
132
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="TotemObject.html#totem-get-video-widget" title="totem_get_video_widget ()">totem_get_video_widget</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
133
<span class="returnvalue">char</span> * <a class="link" href="TotemObject.html#totem-get-video-widget-backend-name" title="totem_get_video_widget_backend_name ()">totem_get_video_widget_backend_name</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
123
<a href="http://developer.gnome.org/gtk2/GtkWindow.html"><span class="returnvalue">GtkWindow</span></a> * <a class="link" href="TotemObject.html#totem-object-get-main-window" title="totem_object_get_main_window ()">totem_object_get_main_window</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
124
<a href="http://developer.gnome.org/gtk2/GtkUIManager.html"><span class="returnvalue">GtkUIManager</span></a> * <a class="link" href="TotemObject.html#totem-object-get-ui-manager" title="totem_object_get_ui_manager ()">totem_object_get_ui_manager</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
134
125
<span class="returnvalue">char</span> * <a class="link" href="TotemObject.html#totem-object-get-current-mrl" title="totem_object_get_current_mrl ()">totem_object_get_current_mrl</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
126
<a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="TotemObject.html#totem-object-get-video-widget" title="totem_object_get_video_widget ()">totem_object_get_video_widget</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
135
127
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a> <a class="link" href="TotemObject.html#totem-get-current-time" title="totem_get_current_time ()">totem_get_current_time</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);
136
128
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-object-set-current-subtitle" title="totem_object_set_current_subtitle ()">totem_object_set_current_subtitle</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
137
129
<em class="parameter"><code>const <span class="type">char</span> *subtitle_uri</code></em>);
146
138
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-object-add-sidebar-page" title="totem_object_add_sidebar_page ()">totem_object_add_sidebar_page</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
147
139
<em class="parameter"><code>const <span class="type">char</span> *page_id</code></em>,
148
140
<em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
149
<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *main_widget</code></em>);
141
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *main_widget</code></em>);
150
142
<span class="returnvalue">void</span> <a class="link" href="TotemObject.html#totem-object-remove-sidebar-page" title="totem_object_remove_sidebar_page ()">totem_object_remove_sidebar_page</a> (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
151
143
<em class="parameter"><code>const <span class="type">char</span> *page_id</code></em>);
152
144
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * const * <a class="link" href="TotemObject.html#totem-object-get-supported-content-types" title="totem_object_get_supported_content_types ()">totem_object_get_supported_content_types</a>
168
160
<a name="TotemObject.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
170
162
TotemObject implements
171
<a href="http://library.gnome.org/devel/gio/unstable/GActionGroup.html">GActionGroup</a> and <a href="http://library.gnome.org/devel/gio/unstable/GActionMap.html">GActionMap</a>.</p>
163
<a href="http://library.gnome.org/devel/gio/unstable/GActionGroup.html">GActionGroup</a> and GActionMap.</p>
173
165
<div class="refsect1">
174
166
<a name="TotemObject.properties"></a><h2>Properties</h2>
175
167
<pre class="synopsis">
168
"<a class="link" href="TotemObject.html#TotemObject--current-content-type" title='The "current-content-type" property'>current-content-type</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
169
"<a class="link" href="TotemObject.html#TotemObject--current-display-name" title='The "current-display-name" property'>current-display-name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
176
170
"<a class="link" href="TotemObject.html#TotemObject--current-mrl" title='The "current-mrl" property'>current-mrl</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
177
171
"<a class="link" href="TotemObject.html#TotemObject--current-time" title='The "current-time" property'>current-time</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> : Read
178
172
"<a class="link" href="TotemObject.html#TotemObject--fullscreen" title='The "fullscreen" property'>fullscreen</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read
186
180
<a name="TotemObject.signals"></a><h2>Signals</h2>
187
181
<pre class="synopsis">
188
182
"<a class="link" href="TotemObject.html#TotemObject-file-closed" title='The "file-closed" signal'>file-closed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
183
"<a class="link" href="TotemObject.html#TotemObject-file-has-played" title='The "file-has-played" signal'>file-has-played</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
189
184
"<a class="link" href="TotemObject.html#TotemObject-file-opened" title='The "file-opened" signal'>file-opened</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
190
185
"<a class="link" href="TotemObject.html#TotemObject-get-text-subtitle" title='The "get-text-subtitle" signal'>get-text-subtitle</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
191
186
"<a class="link" href="TotemObject.html#TotemObject-get-user-agent" title='The "get-user-agent" signal'>get-user-agent</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
220
215
<div class="refsect2">
221
<a name="TotemObjectClass"></a><h3>TotemObjectClass</h3>
222
<pre class="programlisting">typedef struct {
223
GObjectClass parent_class;
225
void (*file_opened) (TotemObject *totem, const char *mrl);
226
void (*file_closed) (TotemObject *totem);
227
void (*metadata_updated) (TotemObject *totem,
235
The class structure for the <a href="http://library.gnome.org/devel/totem-pl-parser/TotemPlParser.html"><span class="type">TotemPlParser</span></a> type.
237
<div class="variablelist"><table border="0">
238
<col align="left" valign="top">
241
<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="TotemObjectClass.parent-class"></a>parent_class</code></em>;</span></p></td>
242
<td>the parent class</td>
245
<td><p><span class="term"><em class="structfield"><code><a name="TotemObjectClass.file-opened"></a>file_opened</code></em> ()</span></p></td>
246
<td>the generic signal handler for the <a class="link" href="TotemObject.html#TotemObject-file-opened" title='The "file-opened" signal'><span class="type">"file-opened"</span></a> signal,
247
which can be overridden by inheriting classes</td>
250
<td><p><span class="term"><em class="structfield"><code><a name="TotemObjectClass.file-closed"></a>file_closed</code></em> ()</span></p></td>
251
<td>the generic signal handler for the <a class="link" href="TotemObject.html#TotemObject-file-closed" title='The "file-closed" signal'><span class="type">"file-closed"</span></a> signal,
252
which can be overridden by inheriting classes</td>
255
<td><p><span class="term"><em class="structfield"><code><a name="TotemObjectClass.metadata-updated"></a>metadata_updated</code></em> ()</span></p></td>
256
<td>the generic signal handler for the <a class="link" href="TotemObject.html#TotemObject-metadata-updated" title='The "metadata-updated" signal'><span class="type">"metadata-updated"</span></a> signal,
257
which can be overridden by inheriting classes</td>
263
<div class="refsect2">
264
216
<a name="TotemRemoteCommand"></a><h3>enum TotemRemoteCommand</h3>
265
217
<pre class="programlisting">typedef enum {
266
218
TOTEM_REMOTE_COMMAND_UNKNOWN = 0,
651
630
<pre class="programlisting"><span class="returnvalue">void</span> totem_object_add_to_playlist_and_play
652
631
(<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
653
632
<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>,
654
<em class="parameter"><code>const <span class="type">char</span> *display_name</code></em>,
655
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> add_to_recent</code></em>);</pre>
633
<em class="parameter"><code>const <span class="type">char</span> *display_name</code></em>);</pre>
657
635
Add <em class="parameter"><code>uri</code></em> to the playlist and play it immediately.
659
<div class="variablelist"><table border="0">
637
<div class="variablelist"><table border="0" class="variablelist">
660
639
<col align="left" valign="top">
663
644
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
687
664
Plays the current stream. If Totem is already playing, it continues
688
665
to play. If the stream cannot be played, and error dialog is displayed.
690
<div class="variablelist"><table border="0">
667
<div class="variablelist"><table border="0" class="variablelist">
691
669
<col align="left" valign="top">
693
673
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
694
674
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
700
680
<div class="refsect2">
701
<a name="totem-action-play-media"></a><h3>totem_action_play_media ()</h3>
702
<pre class="programlisting"><span class="returnvalue">void</span> totem_action_play_media (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
703
<em class="parameter"><code><a href="http://library.gnome.org/devel/totem-pl-parser/totem-pl-parser-TotemDisc.html#TotemDiscMediaType"><span class="type">TotemDiscMediaType</span></a> type</code></em>,
704
<em class="parameter"><code>const <span class="type">char</span> *device</code></em>);</pre>
706
Attempts to play the media found on <em class="parameter"><code>device</code></em> (for example, a DVD in a drive or a DVB
707
tuner) by first adding it to the playlist, then playing it.
710
An error dialog will be displayed if Totem cannot support media of <em class="parameter"><code>type</code></em>.
712
<div class="variablelist"><table border="0">
713
<col align="left" valign="top">
716
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
717
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
721
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
722
<td>the type of disc media</td>
725
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
726
<td>the media's device path</td>
732
<div class="refsect2">
733
<a name="totem-action-play-media-device"></a><h3>totem_action_play_media_device ()</h3>
734
<pre class="programlisting"><span class="returnvalue">void</span> totem_action_play_media_device (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
735
<em class="parameter"><code>const <span class="type">char</span> *device</code></em>);</pre>
737
Attempts to play the media device (for example, a DVD drive or CD drive)
738
with the given <em class="parameter"><code>device</code></em> path by first adding it to the playlist, then
742
An error dialog will be displayed if Totem cannot read or play what's on
745
<div class="variablelist"><table border="0">
746
<col align="left" valign="top">
749
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
750
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
754
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
755
<td>the media device's path</td>
761
<div class="refsect2">
762
681
<a name="totem-object-action-play-pause"></a><h3>totem_object_action_play_pause ()</h3>
763
682
<pre class="programlisting"><span class="returnvalue">void</span> totem_object_action_play_pause (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
765
684
Gets the current MRL from the playlist and attempts to play it.
766
685
If the stream is already playing, playback is paused.
768
<div class="variablelist"><table border="0">
687
<div class="variablelist"><table border="0" class="variablelist">
769
689
<col align="left" valign="top">
771
693
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
772
694
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
857
791
If a DVD is being played, goes to the next chapter. If a normal stream
858
792
is being played, plays the next entry in the playlist.
860
<div class="variablelist"><table border="0">
794
<div class="variablelist"><table border="0" class="variablelist">
861
796
<col align="left" valign="top">
863
800
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
864
801
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
875
812
is being played, goes to the start of the stream if possible. If seeking is
876
813
not possible, plays the previous entry in the playlist.
878
<div class="variablelist"><table border="0">
815
<div class="variablelist"><table border="0" class="variablelist">
879
817
<col align="left" valign="top">
881
821
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
882
822
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
1153
1126
If Totem's not fullscreened, this toggles the state of the "Show Controls"
1154
1127
menu entry, and consequently shows or hides the controls in the UI.
1156
<div class="variablelist"><table border="0">
1129
<div class="variablelist"><table border="0" class="variablelist">
1157
1131
<col align="left" valign="top">
1159
1135
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1160
1136
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
1346
1343
<div class="refsect2">
1347
1344
<a name="totem-object-get-main-window"></a><h3>totem_object_get_main_window ()</h3>
1348
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkWindow.html"><span class="returnvalue">GtkWindow</span></a> * totem_object_get_main_window (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1345
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkWindow.html"><span class="returnvalue">GtkWindow</span></a> * totem_object_get_main_window (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1350
1347
Gets Totem's main window and increments its reference count.
1352
<div class="variablelist"><table border="0">
1349
<div class="variablelist"><table border="0" class="variablelist">
1353
1351
<col align="left" valign="top">
1356
1356
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1369
1369
<div class="refsect2">
1370
1370
<a name="totem-object-get-ui-manager"></a><h3>totem_object_get_ui_manager ()</h3>
1371
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkUIManager.html"><span class="returnvalue">GtkUIManager</span></a> * totem_object_get_ui_manager (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1371
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkUIManager.html"><span class="returnvalue">GtkUIManager</span></a> * totem_object_get_ui_manager (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1373
1373
Gets Totem's UI manager, but does not change its reference count.
1375
<div class="variablelist"><table border="0">
1375
<div class="variablelist"><table border="0" class="variablelist">
1376
1377
<col align="left" valign="top">
1379
1382
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1392
1395
<div class="refsect2">
1393
<a name="totem-get-video-widget"></a><h3>totem_get_video_widget ()</h3>
1394
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * totem_get_video_widget (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1396
Gets Totem's video widget and increments its reference count.
1398
<div class="variablelist"><table border="0">
1399
<col align="left" valign="top">
1402
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1403
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
1407
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1408
<td>Totem's video widget. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1415
<div class="refsect2">
1416
<a name="totem-get-video-widget-backend-name"></a><h3>totem_get_video_widget_backend_name ()</h3>
1417
<pre class="programlisting"><span class="returnvalue">char</span> * totem_get_video_widget_backend_name (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1419
Gets the name string of the backend video widget, typically the video library's
1420
version string (e.g. what's returned by <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-Gst.html#gst-version-string"><code class="function">gst_version_string()</code></a>). Free with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
1422
<div class="variablelist"><table border="0">
1423
<col align="left" valign="top">
1426
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1427
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
1431
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1432
<td>a newly-allocated string of the name of the backend video widget</td>
1438
<div class="refsect2">
1439
1396
<a name="totem-object-get-current-mrl"></a><h3>totem_object_get_current_mrl ()</h3>
1440
1397
<pre class="programlisting"><span class="returnvalue">char</span> * totem_object_get_current_mrl (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1442
1399
Get the MRL of the current stream, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if nothing's playing.
1443
1400
Free with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
1445
<div class="variablelist"><table border="0">
1402
<div class="variablelist"><table border="0" class="variablelist">
1446
1404
<col align="left" valign="top">
1449
1409
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1461
1421
<div class="refsect2">
1422
<a name="totem-object-get-video-widget"></a><h3>totem_object_get_video_widget ()</h3>
1423
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * totem_object_get_video_widget (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1425
Gets Totem's video widget and increments its reference count.
1427
<div class="variablelist"><table border="0" class="variablelist">
1429
<col align="left" valign="top">
1434
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1435
<td>a <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a>
1439
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1440
<td>Totem's video widget. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1447
<div class="refsect2">
1462
1448
<a name="totem-get-current-time"></a><h3>totem_get_current_time ()</h3>
1463
1449
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a> totem_get_current_time (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>);</pre>
1465
1451
Gets the current position's time in the stream as a gint64.
1467
<div class="variablelist"><table border="0">
1453
<div class="variablelist"><table border="0" class="variablelist">
1468
1455
<col align="left" valign="top">
1471
1460
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1644
1654
<pre class="programlisting"><span class="returnvalue">void</span> totem_object_add_sidebar_page (<em class="parameter"><code><a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem</code></em>,
1645
1655
<em class="parameter"><code>const <span class="type">char</span> *page_id</code></em>,
1646
1656
<em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
1647
<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *main_widget</code></em>);</pre>
1657
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="type">GtkWidget</span></a> *main_widget</code></em>);</pre>
1649
1659
Adds a sidebar page to Totem's sidebar with the given <em class="parameter"><code>page_id</code></em>.
1650
1660
<em class="parameter"><code>main_widget</code></em> is added into the page and shown automatically, while
1651
1661
<em class="parameter"><code>title</code></em> is displayed as the page's title in the tab bar.
1653
<div class="variablelist"><table border="0">
1663
<div class="variablelist"><table border="0" class="variablelist">
1654
1665
<col align="left" valign="top">
1657
1670
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1738
1760
<div class="refsect1">
1739
1761
<a name="TotemObject.property-details"></a><h2>Property Details</h2>
1740
1762
<div class="refsect2">
1763
<a name="TotemObject--current-content-type"></a><h3>The <code class="literal">"current-content-type"</code> property</h3>
1764
<pre class="programlisting"> "current-content-type" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
1766
The content-type of the current stream.
1768
<p>Default value: NULL</p>
1771
<div class="refsect2">
1772
<a name="TotemObject--current-display-name"></a><h3>The <code class="literal">"current-display-name"</code> property</h3>
1773
<pre class="programlisting"> "current-display-name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
1775
The display name of the current stream.
1777
<p>Default value: NULL</p>
1780
<div class="refsect2">
1741
1781
<a name="TotemObject--current-mrl"></a><h3>The <code class="literal">"current-mrl"</code> property</h3>
1742
1782
<pre class="programlisting"> "current-mrl" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
1810
1850
The <a class="link" href="TotemObject.html#TotemObject-file-closed" title='The "file-closed" signal'><span class="type">"file-closed"</span></a> signal is emitted when Totem closes a stream.
1812
<div class="variablelist"><table border="0">
1813
<col align="left" valign="top">
1816
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1817
<td>the <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> which received the signal</td>
1852
<div class="variablelist"><table border="0" class="variablelist">
1854
<col align="left" valign="top">
1859
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1860
<td>the <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> which received the signal</td>
1863
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1864
<td>user data set when the signal handler was connected.</td>
1870
<div class="refsect2">
1871
<a name="TotemObject-file-has-played"></a><h3>The <code class="literal">"file-has-played"</code> signal</h3>
1872
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem,
1873
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mrl,
1874
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1876
The <a class="link" href="TotemObject.html#TotemObject-file-has-played" title='The "file-has-played" signal'><span class="type">"file-has-played"</span></a> signal is emitted when a new stream has started playing in Totem.
1878
<div class="variablelist"><table border="0" class="variablelist">
1880
<col align="left" valign="top">
1885
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1886
<td>the <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> which received the signal</td>
1889
<td><p><span class="term"><em class="parameter"><code>mrl</code></em> :</span></p></td>
1890
<td>the MRL of the opened stream</td>
1820
1893
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1854
1930
<div class="refsect2">
1855
1931
<a name="TotemObject-get-text-subtitle"></a><h3>The <code class="literal">"get-text-subtitle"</code> signal</h3>
1856
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* user_function (<a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totemobject,
1857
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg1,
1858
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1932
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* user_function (<a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem,
1933
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mrl,
1934
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1936
The <a class="link" href="TotemObject.html#TotemObject-get-text-subtitle" title='The "get-text-subtitle" signal'><span class="type">"get-text-subtitle"</span></a> signal is emitted before opening a stream, so that plugins
1937
have the opportunity to detect or download text subtitles for the stream if necessary.
1939
<div class="variablelist"><table border="0" class="variablelist">
1941
<col align="left" valign="top">
1946
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1947
<td>the <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> which received the signal</td>
1950
<td><p><span class="term"><em class="parameter"><code>mrl</code></em> :</span></p></td>
1951
<td>the MRL of the opened stream</td>
1954
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1955
<td>user data set when the signal handler was connected.</td>
1958
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1959
<td>allocated string representing the URI of the subtitle to use for <em class="parameter"><code>mrl</code></em>
1861
1966
<div class="refsect2">
1862
1967
<a name="TotemObject-get-user-agent"></a><h3>The <code class="literal">"get-user-agent"</code> signal</h3>
1863
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* user_function (<a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totemobject,
1864
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *arg1,
1865
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1968
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>* user_function (<a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> *totem,
1969
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mrl,
1970
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
1972
The <a class="link" href="TotemObject.html#TotemObject-get-user-agent" title='The "get-user-agent" signal'><span class="type">"get-user-agent"</span></a> signal is emitted before opening a stream, so that plugins
1973
have the opportunity to return the user-agent to be set.
1975
<div class="variablelist"><table border="0" class="variablelist">
1977
<col align="left" valign="top">
1982
<td><p><span class="term"><em class="parameter"><code>totem</code></em> :</span></p></td>
1983
<td>the <a class="link" href="TotemObject.html" title="TotemObject"><span class="type">TotemObject</span></a> which received the signal</td>
1986
<td><p><span class="term"><em class="parameter"><code>mrl</code></em> :</span></p></td>
1987
<td>the MRL of the opened stream</td>
1990
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1991
<td>user data set when the signal handler was connected.</td>
1994
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1995
<td>allocated string representing the user-agent to use for <em class="parameter"><code>mrl</code></em>
1868
2002
<div class="refsect2">