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(caption): Add caption control #101

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

albuFlaviu17
Copy link
Collaborator

No description provided.

@@ -187,6 +187,13 @@ export interface VideoPlayerProps extends ReactVideoProps {
*/
disableFullscreen?: boolean;

/**
* Show the caption button
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
* Show the caption button
* Hide the caption button

@@ -106,10 +107,12 @@ const AnimatedVideoPlayer = (
const [currentTime, setCurrentTime] = useState(0);
const [error, setError] = useState(false);
const [duration, setDuration] = useState(0);
const [isCaption, setIsCaption] = useState<boolean>(false);
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
const [isCaption, setIsCaption] = useState<boolean>(false);
const [isCaptionEnabled, setIsCaptionEnabled] = useState<boolean>(false);

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.

3 participants