Show error details in case it is not a 'NotSupportedError' error.
This commit is contained in:
@@ -56,7 +56,7 @@ function renderMedia (state) {
|
|||||||
mediaElement.play()
|
mediaElement.play()
|
||||||
.then(
|
.then(
|
||||||
() => dispatch('mediaSuccess'),
|
() => dispatch('mediaSuccess'),
|
||||||
() => dispatch('mediaError', 'Codec unsupported')
|
err => dispatch('mediaError', err.name === 'NotSupportedError' ? 'Codec unsupported' : `${err.name}: ${err.message}`)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
// When the user clicks or drags on the progress bar, jump to that position
|
// When the user clicks or drags on the progress bar, jump to that position
|
||||||
|
|||||||
Reference in New Issue
Block a user