mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
add vlc as an external player on mac
This commit is contained in:
parent
785f2be91a
commit
61793524f3
2 changed files with 4 additions and 3 deletions
|
|
@ -19,7 +19,8 @@ if (platform.name === 'ios') {
|
|||
} else if (platform.name === 'macos') {
|
||||
options = options.concat([
|
||||
{ label: 'IINA', value: 'iina' },
|
||||
{ label: 'mpv', value: 'mpv' }
|
||||
{ label: 'mpv', value: 'mpv' },
|
||||
{ label: 'VLC', value: 'vlc' }
|
||||
]);
|
||||
} else if (['windows', 'linux'].includes(platform.name)) {
|
||||
options = options.concat([
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ const Stream = ({ className, videoId, videoReleased, addonName, name, descriptio
|
|||
const toast = useToast();
|
||||
const href = React.useMemo(() => {
|
||||
if (!deepLinks) return null;
|
||||
|
||||
|
||||
if (profile.settings.playerType && profile.settings.playerType !== 'internal') {
|
||||
return (deepLinks.externalPlayer.openPlayer || {})[platform.name] || deepLinks.externalPlayer.href;
|
||||
}
|
||||
|
||||
|
||||
return typeof deepLinks.player === 'string' ? deepLinks.player : null;
|
||||
}, [deepLinks, profile, streamingServer]);
|
||||
const markVideoAsWatched = React.useCallback(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue