diff --git a/front/apps/mobile/package.json b/front/apps/mobile/package.json
index 1d9dd8e5..cc7be89c 100644
--- a/front/apps/mobile/package.json
+++ b/front/apps/mobile/package.json
@@ -45,6 +45,7 @@
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.20.0",
"react-native-svg": "13.4.0",
+ "react-native-uuid": "^2.0.1",
"react-native-video": "^6.0.0-alpha.5",
"yoshiki": "1.2.2"
},
diff --git a/front/packages/ui/package.json b/front/packages/ui/package.json
index 57e1e824..fdd8e71d 100644
--- a/front/packages/ui/package.json
+++ b/front/packages/ui/package.json
@@ -10,6 +10,7 @@
"devDependencies": {
"@shopify/flash-list": "^1.4.1",
"@types/react": "^18.0.28",
+ "react-native-uuid": "^2.0.1",
"typescript": "^4.9.5"
},
"peerDependencies": {
diff --git a/front/packages/ui/src/player/state.tsx b/front/packages/ui/src/player/state.tsx
index ff61d7f9..d1b5ad28 100644
--- a/front/packages/ui/src/player/state.tsx
+++ b/front/packages/ui/src/player/state.tsx
@@ -18,11 +18,12 @@
* along with Kyoo. If not, see .
*/
-import { Track, WatchItem, Font } from "@kyoo/models";
+import { Track, WatchItem, Font, getToken } from "@kyoo/models";
import { atom, useAtom, useAtomValue, useSetAtom } from "jotai";
import { ElementRef, memo, useEffect, useLayoutEffect, useRef, useState } from "react";
import NativeVideo, { VideoProperties as VideoProps } from "./video";
import { Platform } from "react-native";
+import uuid from "react-native-uuid";
export const playAtom = atom(true);
export const loadAtom = atom(false);
@@ -74,6 +75,8 @@ const privateFullscreen = atom(false);
export const subtitleAtom = atom