From b5367007191a40ccf0fe81596cfa32733e073152 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 7 May 2019 21:32:58 -0400 Subject: [PATCH] fix: use old player for audio/video in electron --- src/ui/component/fileViewer/internal/player.jsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ui/component/fileViewer/internal/player.jsx b/src/ui/component/fileViewer/internal/player.jsx index 18d6f74eb..9c6575a35 100644 --- a/src/ui/component/fileViewer/internal/player.jsx +++ b/src/ui/component/fileViewer/internal/player.jsx @@ -39,7 +39,18 @@ type State = { class MediaPlayer extends React.PureComponent { static SANDBOX_TYPES = ['application/x-lbry', 'application/x-ext-lbry']; - static FILE_MEDIA_TYPES = ['text', 'script', 'e-book', 'comic-book', 'document', '3D-file', 'video', 'audio']; + static FILE_MEDIA_TYPES = [ + 'text', + 'script', + 'e-book', + 'comic-book', + 'document', + '3D-file', + // @if TARGET='web' + 'video', + 'audio', + // @endif + ]; static SANDBOX_SET_BASE_URL = 'http://localhost:5278/set/'; static SANDBOX_CONTENT_BASE_URL = 'http://localhost:5278';