-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
105 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as React from 'react'; | ||
import { SVGProps } from 'react'; | ||
const SvgOpenCaptionIcon = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg width="24px" height="24px" viewBox="0 0 18 14" fill="currentColor" xmlns="http://www.w3.org/2000/svg" {...props}> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M4.635.333h8.73a3.968 3.968 0 0 1 3.968 3.969v4.761a3.968 3.968 0 0 1-3.968 3.969h-8.73A3.968 3.968 0 0 1 .667 9.063V4.302A3.968 3.968 0 0 1 4.635.333ZM1.857 4.302a2.778 2.778 0 0 1 2.778-2.778h8.73a2.778 2.778 0 0 1 2.778 2.778v4.761a2.778 2.778 0 0 1-2.778 2.778h-8.73a2.778 2.778 0 0 1-2.778-2.778V4.302Z" | ||
/> | ||
<path d="M6.153 9.46c-.564 0-1.049-.118-1.454-.354a2.41 2.41 0 0 1-.93-.977c-.217-.418-.325-.899-.325-1.443 0-.546.11-1.029.332-1.447a2.4 2.4 0 0 1 .934-.98c.405-.236.884-.354 1.436-.354.458 0 .864.08 1.218.241.355.16.639.385.85.676.21.29.33.629.36 1.016H7.301a1.144 1.144 0 0 0-.368-.648c-.191-.175-.448-.262-.77-.262-.271 0-.51.07-.717.21a1.357 1.357 0 0 0-.482.595c-.113.26-.17.57-.17.932 0 .367.057.682.17.946.113.261.271.463.475.606.206.14.448.21.725.21.196 0 .372-.035.526-.105.157-.073.288-.176.394-.312.105-.135.178-.3.217-.494h1.273c-.032.38-.15.718-.353 1.013-.204.291-.48.52-.832.686-.35.164-.763.245-1.236.245ZM12.134 9.46c-.564 0-1.049-.118-1.454-.354a2.41 2.41 0 0 1-.93-.977c-.217-.418-.325-.899-.325-1.443 0-.546.11-1.029.332-1.447a2.4 2.4 0 0 1 .934-.98c.405-.236.884-.354 1.436-.354.458 0 .864.08 1.218.241.355.16.639.385.85.676.21.29.331.629.36 1.016h-1.273a1.144 1.144 0 0 0-.368-.648c-.191-.175-.448-.262-.769-.262-.272 0-.511.07-.718.21a1.357 1.357 0 0 0-.482.595c-.113.26-.169.57-.169.932 0 .367.056.682.17.946.112.261.27.463.474.606.206.14.448.21.725.21.196 0 .372-.035.526-.105.157-.073.289-.176.394-.312.106-.135.178-.3.217-.494h1.273c-.031.38-.15.718-.353 1.013-.204.291-.48.52-.832.686-.35.164-.762.245-1.236.245Z" /> | ||
</svg> | ||
); | ||
export default SvgOpenCaptionIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/roomkit-react/src/Prebuilt/components/HMSVideo/HLSCaptionSelector.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { ClosedCaptionIcon, OpenCaptionIcon } from '@100mslive/react-icons'; | ||
import { IconButton } from '../../../'; | ||
|
||
export function HLSCaptionSelector({ isEnabled, onClick }: { isEnabled: boolean; onClick: () => void }) { | ||
return ( | ||
<IconButton css={{ p: '$2' }} onClick={() => onClick()}> | ||
{isEnabled ? <ClosedCaptionIcon width="20" height="20px" /> : <OpenCaptionIcon width="20" height="20px" />} | ||
</IconButton> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.