# Class: MediaServices

## Constructor

#### new MediaServices(audioInterface, videoInterface, mediaServicesService)

  MediaServices class provides functionality of the audio and video management.
  It allows to access to either the audio interface or the video interface.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `audioInterface` | AvayaClientServices.Base.AudioInterface |
  `videoInterface` | AvayaClientServices.Base.VideoInterface |
  `mediaServicesService` | AvayaClientServices.Base.MediaServicesService |

## Methods

#### getAudioInterface() → {AvayaClientServices.Base.AudioInterface}

  Returns an object encapsulating audio related functions.

  ##### Returns:

  { AvayaClientServices.Base.AudioInterface }

#### getVideoInterface() → {AvayaClientServices.Base.VideoInterface}

  Returns an object encapsulating video related functions.

  ##### Returns:

  { AvayaClientServices.Base.VideoInterface }

#### start(retrieveDeviceLabelsEnabled) → {AvayaClientServices.Base.Promise}

  Starts media services.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `retrieveDeviceLabelsEnabled` | boolean |

  ##### Returns:

  { AvayaClientServices.Base.Promise }

#### stop() → {AvayaClientServices.Base.Promise.<(undefined|undefined)>}

  Stops media services.

  ##### Returns:

  { AvayaClientServices.Base.Promise.<(undefined|undefined)> }