diff --git a/client/package.json b/client/package.json index d2c72c09f..435bed13f 100644 --- a/client/package.json +++ b/client/package.json @@ -38,6 +38,7 @@ "mapbox-gl": "^3.22.0", "maplibre-gl": "^5.24.0", "marked": "^18.0.0", + "plyr": "^3.8.4", "react": "^19.2.6", "react-dom": "^19.2.6", "react-dropzone": "^14.4.1", diff --git a/client/src/components/Journey/VideoPlayer.tsx b/client/src/components/Journey/VideoPlayer.tsx index 3bf5342fc..98a643161 100644 --- a/client/src/components/Journey/VideoPlayer.tsx +++ b/client/src/components/Journey/VideoPlayer.tsx @@ -1,11 +1,13 @@ -import React from 'react' +import React, { useEffect, useRef } from 'react' +import Plyr from 'plyr' +import 'plyr/dist/plyr.css' /** - * Lightweight video player for gallery/lightbox playback (#823). Uses the native - *