MildenhallMediaOverlay

MildenhallMediaOverlay — An overlay that can be placed on top of video. It includes a play/pause button and text.

Stability Level

Stable, unless otherwise indicated

Functions

Properties

gchar * overlay-text Read / Write
gboolean play-state Read / Write
gfloat scale Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── ClutterActor
            ╰── MildenhallMediaOverlay

Implemented Interfaces

MildenhallMediaOverlay implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.

Description

MildenhallMediaOverlay uses a transparent icon, which changes play and pause with a property change and used in Media based applications.

Freeing the widget

Call g_object_unref() to free the widget.

Sample C Code

1
2
3
4
5
6
MildenhallMediaOverlay *overlay = NULL;

overlay = mildenhall_media_overlay_new (150, 50, FALSE);
g_object_set (overlay, "play-state", TRUE,
		"overlay-text", "currently playing ...", NULL);
clutter_actor_add_child (stage, overlay);

Functions

mildenhall_media_overlay_new ()

MildenhallMediaOverlay *
mildenhall_media_overlay_new (gfloat width,
                              gfloat height,
                              gboolean needTitleRect);

Creates a new media overlay

Parameters

width

width for the overlay

 

height

height for the overlay

 

needTitleRect

if TRUE, will add the title to the overlay widget. FALSE otherwise

 

Returns

The new MildenhallMediaOverlay object.

[nullable][transfer full]

Types and Values

struct MildenhallMediaOverlay

struct MildenhallMediaOverlay;

The contents of this structure are private and should only be accessed through the public API.


struct MildenhallMediaOverlayClass

struct MildenhallMediaOverlayClass {
	ClutterActorClass parent;
	ClutterActor *mediaOverlay;
};

The MildenhallMediaOverlayClass struct contains only private data.

Property Details

The “overlay-text” property

  “overlay-text”             gchar *

To set the text at bottom

Flags: Read / Write

Default value: NULL


The “play-state” property

  “play-state”               gboolean

To set the play state as TRUE/FLASE

Flags: Read / Write

Default value: FALSE


The “scale” property

  “scale”                    gfloat

To set scale value for the object

Flags: Read / Write

Default value: 0

See Also

MildenhallOverlay