@@ -6,7 +6,6 @@ import { deepCopy } from '@jwp/ott-common/src/utils/collection';
6
6
import { testId } from '@jwp/ott-common/src/utils/common' ;
7
7
import { logInfo } from '@jwp/ott-common/src/logger' ;
8
8
import useEventCallback from '@jwp/ott-hooks-react/src/useEventCallback' ;
9
- import useOttAnalytics from '@jwp/ott-hooks-react/src/useOttAnalytics' ;
10
9
import { useMediaSources } from '@jwp/ott-hooks-react/src/useMediaSources' ;
11
10
import env from '@jwp/ott-common/src/env' ;
12
11
@@ -64,8 +63,6 @@ const Player: React.FC<Props> = ({
64
63
const startTimeRef = useRef ( startTime ) ;
65
64
const sources = useMediaSources ( { item, baseUrl : env . APP_API_BASE_URL } ) ;
66
65
67
- const setPlayer = useOttAnalytics ( item , feedId ) ;
68
-
69
66
const { settings } = useConfigStore ( ( s ) => s ) ;
70
67
71
68
const playerId = settings . playerId ;
@@ -222,10 +219,8 @@ const Player: React.FC<Props> = ({
222
219
if ( playerLicenseKey ) {
223
220
playerOptions . key = playerLicenseKey ;
224
221
}
225
-
226
222
playerRef . current . setup ( playerOptions ) ;
227
223
228
- setPlayer ( playerRef . current ) ;
229
224
attachEvents ( ) ;
230
225
} ;
231
226
@@ -236,7 +231,7 @@ const Player: React.FC<Props> = ({
236
231
if ( libLoaded ) {
237
232
initializePlayer ( ) ;
238
233
}
239
- } , [ libLoaded , item , detachEvents , attachEvents , playerId , setPlayer , autostart , adsData , playerLicenseKey , sources , feedId ] ) ;
234
+ } , [ libLoaded , item , detachEvents , attachEvents , playerId , autostart , adsData , playerLicenseKey , sources , feedId ] ) ;
240
235
241
236
useEffect ( ( ) => {
242
237
return ( ) => {
0 commit comments