Skip to content

Commit 9c8f4e6

Browse files
committed
test new placement of cookie-attr
1 parent 68eac3e commit 9c8f4e6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/_common/qbrick-video/QbrickVideo.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ export const QbrickVideo = (props: QbrickVideoProps) => {
4242
: getMediaUrl(poster, !!editorView, contentLanguage);
4343

4444
return (
45-
<div className={style.wrapper} data-qplayer-analytics="off">
45+
<div className={style.wrapper}>
4646
<Script
47-
src={'https://play2.qbrick.com/qplayer-beta/loader/qplayer-loader.js'}
47+
// src={'https://play2.qbrick.com/qplayer-beta/loader/qplayer-loader.js'}
48+
src={'https://play2.qbrick.com/qbrick-player/framework/GoBrain.min.js'}
4849
async={true}
4950
onError={(error) => {
5051
logger.error(`Failed to load QBrick player script - ${error}`);
@@ -100,6 +101,7 @@ export const QbrickVideo = (props: QbrickVideoProps) => {
100101
className={classNames(style.macroVideo, playerState !== 'ready' && style.hidden)}
101102
id={videoContainerId}
102103
title={title}
104+
data-qplayer-analytics="off"
103105
/>
104106
</div>
105107
);

src/components/_common/qbrick-video/useQbrickPlayerState.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const createAndStart = (
9898
language,
9999
autoplay: true,
100100
widgetId,
101+
[`data-qplayer-analytics`]: 'off',
101102
})
102103
.on('ready', () => {
103104
setPlayerState('ready');

0 commit comments

Comments
 (0)