We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents acfe1e6 + f0873c7 commit fdcee45Copy full SHA for fdcee45
src/components/ContentRenderer/components/Video.tsx
@@ -29,9 +29,14 @@ export function Video({ node }: Props) {
29
}
30
}, []);
31
32
- if (!canUseThirdPartyCookie) {
+ if (!canUseThirdPartyCookie && !isPrezlyUrl(node.url)) {
33
return <NoConsentFallback id={`video-${node.uuid}`} entity="video" oembed={node.oembed} />;
34
35
36
return <Elements.Video node={node} onPlay={handlePlay} />;
37
38
+
39
+function isPrezlyUrl(url: string) {
40
+ const { hostname } = new URL(url);
41
+ return hostname.endsWith('.prezly.com');
42
+}
0 commit comments