mediaError

A user-specified callback function that executes when there is an error in media functions.

function(error) {
    // Handle the error
}

Parameters

  • error: The error returned by the device. (MediaError)