NUGU SDK Linux
1.7.6
|
Media player driver. More...
Classes | |
struct | nugu_player_driver_ops |
player driver operations More... | |
Typedefs | |
typedef struct _nugu_player_driver | NuguPlayerDriver |
player driver object | |
Functions | |
NUGU_API NuguPlayerDriver * | nugu_player_driver_find (const char *name) |
Find a driver by name in the driver list. More... | |
NUGU_API int | nugu_player_driver_free (NuguPlayerDriver *driver) |
Destroy the player driver object. More... | |
NUGU_API NuguPlayerDriver * | nugu_player_driver_get_default (void) |
Get the default player driver. More... | |
NUGU_API NuguPlayerDriver * | nugu_player_driver_new (const char *name, struct nugu_player_driver_ops *ops) |
Create new player driver object. More... | |
NUGU_API int | nugu_player_driver_register (NuguPlayerDriver *driver) |
Register the driver to driver list. More... | |
NUGU_API int | nugu_player_driver_remove (NuguPlayerDriver *driver) |
Remove the driver from driver list. More... | |
NUGU_API int | nugu_player_driver_set_default (NuguPlayerDriver *driver) |
Set the default player driver. More... | |
Media player driver.
Manage player drivers that can play media content. The player must support various protocols (http, https, hls, file, etc.).
NUGU_API NuguPlayerDriver* nugu_player_driver_new | ( | const char * | name, |
struct nugu_player_driver_ops * | ops | ||
) |
Create new player driver object.
[in] | name | driver name |
[in] | ops | operation table |
NUGU_API int nugu_player_driver_free | ( | NuguPlayerDriver * | driver | ) |
Destroy the player driver object.
[in] | driver | player driver |
0 | success |
-1 | failure |
NUGU_API int nugu_player_driver_register | ( | NuguPlayerDriver * | driver | ) |
Register the driver to driver list.
[in] | driver | player driver |
0 | success |
-1 | failure |
NUGU_API int nugu_player_driver_remove | ( | NuguPlayerDriver * | driver | ) |
Remove the driver from driver list.
[in] | driver | player driver |
0 | success |
-1 | failure |
NUGU_API int nugu_player_driver_set_default | ( | NuguPlayerDriver * | driver | ) |
Set the default player driver.
[in] | driver | player driver |
0 | success |
-1 | failure |
NUGU_API NuguPlayerDriver* nugu_player_driver_get_default | ( | void | ) |
Get the default player driver.
NUGU_API NuguPlayerDriver* nugu_player_driver_find | ( | const char * | name | ) |
Find a driver by name in the driver list.
[in] | name | player driver name |