static void
xplayer_movie_properties_plugin_file_closed (XplayerObject *xplayer,
					   XplayerMoviePropertiesPlugin *plugin)
{
        /* Reset the properties and wait for the signal*/
        bacon_video_widget_properties_reset
		(BACON_VIDEO_WIDGET_PROPERTIES (plugin->priv->props));
	gtk_widget_set_sensitive (plugin->priv->props, FALSE);
}
static void
xplayer_movie_properties_plugin_file_opened (XplayerObject *xplayer,
					   const char *mrl,
					   XplayerMoviePropertiesPlugin *plugin)
{
	GtkWidget *bvw;

	bvw = xplayer_get_video_widget (xplayer);
	update_properties_from_bvw
		(BACON_VIDEO_WIDGET_PROPERTIES (plugin->priv->props), bvw);
	g_object_unref (bvw);
	gtk_widget_set_sensitive (plugin->priv->props, TRUE);
}
示例#3
0
static void
totem_movie_properties_plugin_file_opened (TotemObject *totem,
					   const char *mrl,
					   TotemMoviePropertiesPlugin *plugin)
{
	GtkWidget *bvw;

	bvw = totem_get_video_widget (totem);
	update_properties_from_bvw
		(BACON_VIDEO_WIDGET_PROPERTIES (plugin->priv->props), bvw);
	g_object_unref (bvw);
	gtk_widget_set_sensitive (plugin->priv->props, TRUE);
}
static void
xplayer_movie_properties_plugin_metadata_updated (XplayerObject *xplayer,
						const char *artist, 
						const char *title, 
						const char *album,
						guint track_num,
						XplayerMoviePropertiesPlugin *plugin)
{
	GtkWidget *bvw;

	bvw = xplayer_get_video_widget (xplayer);
	update_properties_from_bvw
		(BACON_VIDEO_WIDGET_PROPERTIES (plugin->priv->props), bvw);
	g_object_unref (bvw);
}
static void
stream_length_notify_cb (XplayerObject *xplayer,
			 GParamSpec *arg1,
			 XplayerMoviePropertiesPlugin *plugin)
{
	gint64 stream_length;

	g_object_get (G_OBJECT (xplayer),
		      "stream-length", &stream_length,
		      NULL);

	bacon_video_widget_properties_set_duration
		(BACON_VIDEO_WIDGET_PROPERTIES (plugin->priv->props),
		 stream_length);
}
示例#6
0
static void
totem_movie_properties_plugin_metadata_updated (TotemObject *totem,
						const char *artist, 
						const char *title, 
						const char *album,
						guint track_num,
						TotemMoviePropertiesPlugin *plugin)
{
	GtkWidget *bvw;

	bvw = totem_get_video_widget (totem);
	update_properties_from_bvw
		(BACON_VIDEO_WIDGET_PROPERTIES (plugin->priv->props), bvw);
	g_object_unref (bvw);
}