add 'audio' render mode check
This commit is contained in:
parent
508db2d38a
commit
94168605b7
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ export const makeSelectFileRenderModeForUri = (uri: string) =>
|
|||
if (mediaType === 'video' || FORCE_CONTENT_TYPE_PLAYER.includes(contentType)) {
|
||||
return RENDER_MODES.VIDEO;
|
||||
}
|
||||
if (mediaType === 'audio') {
|
||||
return RENDER_MODES.AUDIO;
|
||||
}
|
||||
if (mediaType === 'image') {
|
||||
return RENDER_MODES.IMAGE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue