This commit is contained in:
Alexandru Branza 2023-05-30 17:15:31 +03:00
parent d709f2c741
commit 68b31f995a

View file

@ -3,13 +3,26 @@ const platform = require('./platform');
let options = [{ label: 'Disabled', value: 'internal' }];
if (platform.name === 'ios') {
options = options.concat([{ label: 'VLC', value: 'vlc' }, { label: 'Outplayer', value: 'outplayer' }, { label: 'Infuse', value: 'infuse' }]);
options = options.concat([
{ label: 'VLC', value: 'vlc' },
{ label: 'Outplayer', value: 'outplayer' },
{ label: 'Infuse', value: 'infuse' }
]);
} else if (platform.name === 'android') {
options = options.concat([{ label: 'Allow Choosing', value: 'choose' }, { label: 'VLC', value: 'vlc' }, { label: 'Just Player', value: 'justplayer' },{ label: 'MX Player', value: 'mxplayer' }]);
options = options.concat([
{ label: 'Allow Choosing', value: 'choose' },
{ label: 'VLC', value: 'vlc' },
{ label: 'Just Player', value: 'justplayer' },
{ label: 'MX Player', value: 'mxplayer' }
]);
} else if (['windows', 'macos', 'linux'].includes(platform.name)) {
options = options.concat([{ label: 'VLC', value: 'vlc' }]);
options = options.concat([
{ label: 'VLC', value: 'vlc' }
]);
} else {
options = options.concat([{ label: 'M3U Playlist', value: 'm3u' }]);
options = options.concat([
{ label: 'M3U Playlist', value: 'm3u' }
]);
}
module.exports = options;