Handle unsupported video codec (e.g. H.265)
This commit is contained in:
@@ -129,6 +129,9 @@ function renderMedia (state) {
|
||||
if (video.webkitVideoDecodedByteCount > 0 &&
|
||||
video.webkitAudioDecodedByteCount === 0) {
|
||||
dispatch('mediaError', 'Audio codec unsupported')
|
||||
} else if (state.playing.type === 'video' &&
|
||||
video.webkitVideoDecodedByteCount === 0) {
|
||||
dispatch('mediaError', 'Video codec unsupported')
|
||||
} else {
|
||||
video.play()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user