NUGU SDK Linux  1.7.6
Media player driver

Media player driver. More...

+ Collaboration diagram for Media player driver:

Classes

struct  nugu_player_driver_ops
 player driver operations More...
 

Typedefs

typedef struct _nugu_player_driver NuguPlayerDriver
 player driver object
 

Functions

NUGU_API NuguPlayerDrivernugu_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 NuguPlayerDrivernugu_player_driver_get_default (void)
 Get the default player driver. More...
 
NUGU_API NuguPlayerDrivernugu_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...
 

Detailed Description

Media player driver.

Manage player drivers that can play media content. The player must support various protocols (http, https, hls, file, etc.).

Function Documentation

◆ nugu_player_driver_new()

NUGU_API NuguPlayerDriver* nugu_player_driver_new ( const char *  name,
struct nugu_player_driver_ops ops 
)

Create new player driver object.

Parameters
[in]namedriver name
[in]opsoperation table
Returns
player driver object

◆ nugu_player_driver_free()

NUGU_API int nugu_player_driver_free ( NuguPlayerDriver driver)

Destroy the player driver object.

Parameters
[in]driverplayer driver
Returns
result
Return values
0success
-1failure

◆ nugu_player_driver_register()

NUGU_API int nugu_player_driver_register ( NuguPlayerDriver driver)

Register the driver to driver list.

Parameters
[in]driverplayer driver
Returns
result
Return values
0success
-1failure

◆ nugu_player_driver_remove()

NUGU_API int nugu_player_driver_remove ( NuguPlayerDriver driver)

Remove the driver from driver list.

Parameters
[in]driverplayer driver
Returns
result
Return values
0success
-1failure

◆ nugu_player_driver_set_default()

NUGU_API int nugu_player_driver_set_default ( NuguPlayerDriver driver)

Set the default player driver.

Parameters
[in]driverplayer driver
Returns
result
Return values
0success
-1failure

◆ nugu_player_driver_get_default()

NUGU_API NuguPlayerDriver* nugu_player_driver_get_default ( void  )

Get the default player driver.

Returns
player driver

◆ nugu_player_driver_find()

NUGU_API NuguPlayerDriver* nugu_player_driver_find ( const char *  name)

Find a driver by name in the driver list.

Parameters
[in]nameplayer driver name
Returns
player driver