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
Lit enablement #272
Lit enablement #272
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
LGTM! Only some totally optional ideas
playsInline | ||
muted={muted} | ||
crossOrigin={ | ||
allowCrossOriginCredentials ? 'use-credentials' : 'anonymous' |
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.
Is anonymous the default? Either way, what happens if we set it as undefined
instead to leave it for the browser to decide the default?
xhrSetup(xhr, _url) { | ||
xhr.withCredentials = Boolean(allowCrossOriginCredentials); | ||
}, |
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.
WDYT of only setting this if the prop is set?
xhrSetup(xhr, _url) { | |
xhr.withCredentials = Boolean(allowCrossOriginCredentials); | |
}, | |
xhrSetup: !allowCrossOriginCredentials : undefined : (xhr, _url) => { | |
xhr.withCredentials = true | |
}, |
@@ -154,6 +160,9 @@ export const VideoPlayer = React.forwardRef<HTMLVideoElement, VideoPlayerProps>( | |||
muted={muted} | |||
poster={typeof poster === 'string' ? poster : undefined} | |||
preload={priority ? 'auto' : 'metadata'} | |||
crossOrigin={ | |||
allowCrossOriginCredentials ? 'use-credentials' : 'anonymous' |
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.
Same (low pri) comment about the default
Description
Added features for WIP Lit protocol integration.