| Clutter Gst 1.3.3 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
enum ClutterGstSeekFlags; ClutterGstVideoTexture; ClutterGstVideoTextureClass; ClutterActor * clutter_gst_video_texture_new (void); GstElement * clutter_gst_video_texture_get_pipeline (ClutterGstVideoTexture *texture); CoglHandle clutter_gst_video_texture_get_idle_material (ClutterGstVideoTexture *texture); void clutter_gst_video_texture_set_idle_material (ClutterGstVideoTexture *texture,CoglHandle material); gchar * clutter_gst_video_texture_get_user_agent (ClutterGstVideoTexture *texture); void clutter_gst_video_texture_set_user_agent (ClutterGstVideoTexture *texture,const gchar *user_agent); void clutter_gst_video_texture_set_seek_flags (ClutterGstVideoTexture *texture,ClutterGstSeekFlags flags); ClutterGstSeekFlags clutter_gst_video_texture_get_seek_flags (ClutterGstVideoTexture *texture);
GObject +----GInitiallyUnowned +----ClutterActor +----ClutterTexture +----ClutterGstVideoTexture
ClutterGstVideoTexture implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface and ClutterMedia.
"idle-material" CoglHandle* : Read / Write "seek-flags" ClutterGstSeekFlags : Read / Write "user-agent" gchar* : Read / Write
typedef enum _ClutterGstSeekFlags
{
CLUTTER_GST_SEEK_FLAG_NONE = 0,
CLUTTER_GST_SEEK_FLAG_ACCURATE = 1 << 0
} ClutterGstSeekFlags;
Flags that can be given to clutter_gst_video_texture_set_seek_flags().
| Fast seeks (key frame boundaries, default) | |
| Accurate seeks (potentially slower) |
Since 1.4
typedef struct _ClutterGstVideoTexture ClutterGstVideoTexture;
Subclass of ClutterTexture that displays videos using GStreamer.
The ClutterGstVideoTexture structure contains only private data and should not be accessed directly.
typedef struct {
} ClutterGstVideoTextureClass;
Base class for ClutterGstVideoTexture.
ClutterActor * clutter_gst_video_texture_new (void);
Creates a video texture.
Returns : |
the newly created video texture actor |
GstElement * clutter_gst_video_texture_get_pipeline
(ClutterGstVideoTexture *texture);
Retrieves the GstPipeline used by the texture, for direct use with
GStreamer API.
|
a ClutterGstVideoTexture |
Returns : |
the pipeline element used by the video texture |
CoglHandle clutter_gst_video_texture_get_idle_material
(ClutterGstVideoTexture *texture);
Retrieves the material used to draw when no media is being played.
|
a ClutterGstVideoTexture |
Returns : |
the CoglHandle of the idle material |
Since 1.2
void clutter_gst_video_texture_set_idle_material (ClutterGstVideoTexture *texture,CoglHandle material);
Sets a material to use to draw when no media is being played. The
ClutterGstVideoTexture holds a reference of the material.
The default idle material will paint the ClutterGstVideoTexture in black.
If COGL_INVALID_HANDLE is given as material to this function, this
default idle material will be used.
|
a ClutterGstVideoTexture |
|
the handle of a Cogl material |
Since 1.2
gchar * clutter_gst_video_texture_get_user_agent
(ClutterGstVideoTexture *texture);
Retrieves the user agent used when streaming.
|
a ClutterGstVideoTexture |
Returns : |
the user agent used. The returned string has to be freed with
g_free()
|
Since 1.2
void clutter_gst_video_texture_set_user_agent (ClutterGstVideoTexture *texture,const gchar *user_agent);
Sets the user agent to use when streaming.
When streaming content, you might want to set a custom user agent, eg. to promote your software, make it appear in statistics or because the server requires a special user agent you want to impersonate.
|
a ClutterGstVideoTexture |
|
the user agent |
Since 1.2
void clutter_gst_video_texture_set_seek_flags (ClutterGstVideoTexture *texture,ClutterGstSeekFlags flags);
Seeking can be done with several trade-offs. Clutter-gst defaults
to CLUTTER_GST_SEEK_FLAG_NONE.
|
a ClutterGstVideoTexture |
|
a combination of ClutterGstSeekFlags |
Since 1.4
ClutterGstSeekFlags clutter_gst_video_texture_get_seek_flags
(ClutterGstVideoTexture *texture);
Get the current value of the seek-flags property.
|
a ClutterGstVideoTexture |
Returns : |
a combination of ClutterGstSeekFlags |
Since 1.4
"idle-material" property"idle-material" CoglHandle* : Read / Write
Material to use for drawing when not playing.
"seek-flags" property"seek-flags" ClutterGstSeekFlags : Read / Write
Flags to use when seeking.
"user-agent" property"user-agent" gchar* : Read / Write
User Agent used with network protocols.
Default value: NULL