NUGU SDK Linux  1.7.6
nugu_player_driver_ops Struct Reference

player driver operations More...

#include <nugu_player.h>

Public Attributes

int(* create )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when player is created. More...
 
void(* destroy )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when player is destroyed. More...
 
int(* get_duration )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when a playback duration is requested. More...
 
int(* get_position )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when a playback position is requested. More...
 
int(* pause )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when player is paused. More...
 
int(* resume )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when player is resumed. More...
 
int(* seek )(NuguPlayerDriver *driver, NuguPlayer *player, int sec)
 Called when playback position is changed by seek. More...
 
int(* set_source )(NuguPlayerDriver *driver, NuguPlayer *player, const char *url)
 Called when set the player source. More...
 
int(* set_volume )(NuguPlayerDriver *driver, NuguPlayer *player, int vol)
 Called when volume is changed. More...
 
int(* start )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when player is started. More...
 
int(* stop )(NuguPlayerDriver *driver, NuguPlayer *player)
 Called when player is stopped. More...
 

Detailed Description

player driver operations

See also
nugu_player_driver_new()

Member Data Documentation

◆ create

int(* nugu_player_driver_ops::create) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when player is created.

See also
nugu_player_new()

◆ destroy

void(* nugu_player_driver_ops::destroy) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when player is destroyed.

See also
nugu_player_free()

◆ set_source

int(* nugu_player_driver_ops::set_source) (NuguPlayerDriver *driver, NuguPlayer *player, const char *url)

Called when set the player source.

See also
nugu_player_set_source()

◆ start

int(* nugu_player_driver_ops::start) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when player is started.

See also
nugu_player_start()

◆ stop

int(* nugu_player_driver_ops::stop) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when player is stopped.

See also
nugu_player_stop()

◆ pause

int(* nugu_player_driver_ops::pause) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when player is paused.

See also
nugu_player_pause()

◆ resume

int(* nugu_player_driver_ops::resume) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when player is resumed.

See also
nugu_player_resume()

◆ seek

int(* nugu_player_driver_ops::seek) (NuguPlayerDriver *driver, NuguPlayer *player, int sec)

Called when playback position is changed by seek.

See also
nugu_player_seek()

◆ set_volume

int(* nugu_player_driver_ops::set_volume) (NuguPlayerDriver *driver, NuguPlayer *player, int vol)

Called when volume is changed.

See also
nugu_player_set_volume()

◆ get_duration

int(* nugu_player_driver_ops::get_duration) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when a playback duration is requested.

See also
nugu_player_get_duration()

◆ get_position

int(* nugu_player_driver_ops::get_position) (NuguPlayerDriver *driver, NuguPlayer *player)

Called when a playback position is requested.

See also
nugu_player_get_position()

The documentation for this struct was generated from the following file: