RygelPlaybinRenderer

RygelPlaybinRenderer — A UPnP renderer that uses a GStreamer Playbin2 element.

Synopsis

#define             RYGEL_PLAYBIN_TYPE_RENDERER
RygelPlaybinRenderer * rygel_playbin_renderer_new       (const gchar *title);
RygelPlaybinRenderer * rygel_playbin_renderer_new_wrap  (GstElement *pipeline,
                                                         const gchar *title);
struct              RygelPlaybinRenderer;
struct              RygelPlaybinRendererClass;

Object Hierarchy

  GObject
   +----RygelMediaDevice
         +----RygelPlaybinRenderer

Description

Using GstPlayBin2 as a model, it reflects any changes done externally, such as changing the currently played URI, volume, pause/play etc., to UPnP.

Likewise, the playbin can be modified externally using UPnP.

You can retrieve the GstPlayBin2 by calling rygel_playbin_player_get_playbin() on the default player - see rygel_playbin_player_get_default(). You should then set the "video-sink" and "audio-sink" properties of the playbin.

Call rygel_media_device_add_interface() on the Renderer to allow it to be controlled by a control point and to retrieve data streams via that network interface.

See the standalone-renderer.c example.

Details

RYGEL_PLAYBIN_TYPE_RENDERER

#define RYGEL_PLAYBIN_TYPE_RENDERER (rygel_playbin_renderer_get_type ())

The type for RygelPlaybinRenderer.


rygel_playbin_renderer_new ()

RygelPlaybinRenderer * rygel_playbin_renderer_new       (const gchar *title);

Create a new instance of Renderer.

Renderer will instantiate its own instance of GstPlayBin2. The GstPlayBin2 can be accessed by using rygel_playbin_player_get_playbin().

title :

Friendly name of the new UPnP renderer on the network. [in]

rygel_playbin_renderer_new_wrap ()

RygelPlaybinRenderer * rygel_playbin_renderer_new_wrap  (GstElement *pipeline,
                                                         const gchar *title);

Create a new instance of Renderer, wrapping an existing GstPlayBin2 instance.

pipeline :

Instance of GstPlayBin2 to wrap. [in]

title :

Friendly name of the new UPnP renderer on the network. [in]

struct RygelPlaybinRenderer

struct RygelPlaybinRenderer;

A UPnP renderer that uses a GStreamer Playbin2 element.

Using GstPlayBin2 as a model, it reflects any changes done externally, such as changing the currently played URI, volume, pause/play etc., to UPnP.

Likewise, the playbin can be modified externally using UPnP.

You can retrieve the GstPlayBin2 by calling rygel_playbin_player_get_playbin() on the default player - see rygel_playbin_player_get_default(). You should then set the "video-sink" and "audio-sink" properties of the playbin.

Call rygel_media_device_add_interface() on the Renderer to allow it to be controlled by a control point and to retrieve data streams via that network interface.

See the standalone-renderer.c example.


struct RygelPlaybinRendererClass

struct RygelPlaybinRendererClass {
	RygelMediaDeviceClass parent_class;
};

The class structure for RYGEL_PLAYBIN_TYPE_RENDERER. All the fields in this structure are private and should never be accessed directly.

RygelMediaDeviceClass parent_class;

the parent class structure