Skip to content
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

Merged
merged 12 commits into from
Dec 21, 2022
Merged

feat(Player): add options menu #311

merged 12 commits into from
Dec 21, 2022

Conversation

tymmesyde
Copy link
Member

No description provided.

Copy link
Collaborator

@nklhtv nklhtv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2022-11-02 at 12 24 52-fullpage
Is that expected UX?

optionsMenuOpen ?
<OptionsMenu
className={classnames(styles['layer'], styles['menu-layer'])}
stream={videoState.stream}
Copy link
Collaborator

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh okay !

@tymmesyde tymmesyde marked this pull request as ready for review November 28, 2022 12:38
toast.show({
type: 'error',
title: 'Error',
message: 'Failed to copy stream link. Try to enable your browser permission.',
Copy link
Collaborator

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 ?
Copy link
Collaborator

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

@elpiel elpiel requested a review from nklhtv December 21, 2022 13:20
@jaruba jaruba merged commit 9a52f3c into development Dec 21, 2022
@elpiel elpiel deleted the feat/player-options-menu branch December 22, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants