## OGMRipPlayer OGMRipPlayer — Simple video player |

## Synopsis

    #include <ogmrip-player.h>

    struct              OGMRipPlayer;
    struct              OGMRipPlayerClass;
    OGMRipPlayer *      ogmrip_player_new                   (void);
    void                ogmrip_player_set_title             (OGMRipPlayer *player,
                                                             OGMDvdTitle *title);
    void                ogmrip_player_set_audio_file        (OGMRipPlayer *player,
                                                             OGMRipFile *file);
    void                ogmrip_player_set_audio_stream      (OGMRipPlayer *player,
                                                             OGMDvdAudioStream *stream);
    void                ogmrip_player_set_subp_file         (OGMRipPlayer *player,
                                                             OGMRipFile *file);
    void                ogmrip_player_set_subp_stream       (OGMRipPlayer *player,
                                                             OGMDvdSubpStream *stream);
    void                ogmrip_player_set_chapters          (OGMRipPlayer *player,
                                                             guint start,
                                                             gint end);
    gboolean            ogmrip_player_play                  (OGMRipPlayer *player,
                                                             GError **error);
    void                ogmrip_player_stop                  (OGMRipPlayer *player);

## Description

## Details

### struct OGMRipPlayer

    struct OGMRipPlayer {
      GObject parent_instance;

      OGMRipPlayerPriv *priv;
    };

### struct OGMRipPlayerClass

    struct OGMRipPlayerClass {
      GObjectClass parent_class;

      void (* play) (OGMRipPlayer *player);
      void (* stop) (OGMRipPlayer *player);
    };

### ogmrip_player_new ()

    OGMRipPlayer *      ogmrip_player_new                   (void);

Creates a new OGMRipPlayer

Returns : | the new OGMRipPlayer

### ogmrip_player_set_title ()

    void                ogmrip_player_set_title             (OGMRipPlayer *player,
                                                             OGMDvdTitle *title);

Sets the DVD title to play

`player` : | an OGMRipPlayer
`title` : | an OGMDvdTitle

### ogmrip_player_set_audio_file ()

    void                ogmrip_player_set_audio_file        (OGMRipPlayer *player,
                                                             OGMRipFile *file);

Sets the audio file to play

`player` : | an OGMRipPlayer
`file` : | an OGMRipFile

### ogmrip_player_set_audio_stream ()

    void                ogmrip_player_set_audio_stream      (OGMRipPlayer *player,
                                                             OGMDvdAudioStream *stream);

Sets the audio stream to play

`player` : | an OGMRipPlayer
`stream` : | an OGMDvdAudioStream

### ogmrip_player_set_subp_file ()

    void                ogmrip_player_set_subp_file         (OGMRipPlayer *player,
                                                             OGMRipFile *file);

Sets the subtitle file to play

`player` : | an OGMRipPlayer
`file` : | an OGMRipFile

### ogmrip_player_set_subp_stream ()

    void                ogmrip_player_set_subp_stream       (OGMRipPlayer *player,
                                                             OGMDvdSubpStream *stream);

Sets the subtitle stream to play

`player` : | an OGMRipPlayer
`stream` : | an OGMDvdSubpStream

### ogmrip_player_set_chapters ()

    void                ogmrip_player_set_chapters          (OGMRipPlayer *player,
                                                             guint start,
                                                             gint end);

Sets the chapters to play

`player` : | an OGMRipPlayer
`start` : | the chapter to start playing at
`end` : | the chapter to stop playing at, or -1

### ogmrip_player_play ()

    gboolean            ogmrip_player_play                  (OGMRipPlayer *player,
                                                             GError **error);

Plays the selected title, streams and chapters

`player` : | an OGMRipPlayer
`error` : | return location for error
Returns : | `TRUE` on success, `FALSE` if an error was set

### ogmrip_player_stop ()

    void                ogmrip_player_stop                  (OGMRipPlayer *player);

Stops playing the title

`player` : | an OGMRipPlayer