-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Player): add options menu #311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/routes/Player/Player.js
Outdated
optionsMenuOpen ? | ||
<OptionsMenu | ||
className={classnames(styles['layer'], styles['menu-layer'])} | ||
stream={videoState.stream} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
player.selected.stream might be better here, because when the video throws error, videoState.stream will be null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay !
…into feat/player-options-menu
…into feat/player-options-menu
toast.show({ | ||
type: 'error', | ||
title: 'Error', | ||
message: 'Failed to copy stream link. Try to enable your browser permission.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also unclude the streamUrl
into the message
// const { core } = useServices(); | ||
const toast = useToast(); | ||
const streamUrl = React.useMemo(() => { | ||
return stream !== null ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ytId case must also be handled here.
we kind of handle it already in external_player but the url case is not suitable for this feature.
I suggest we refactor stremio-core by adding one more field url
to ExternalPlayerLink which will be the same as href except for this case, then use deepLinks api here
No description provided.