Compare commits

...

1 Commits

Author SHA1 Message Date
Borewit
a445c18979 Show error details in case it is not a 'NotSupportedError' error. 2019-10-07 19:03:14 +02:00

View File

@@ -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