|
@@ -1,6 +1,6 @@
|
|
|
import { useState, useEffect } from "react";
|
|
|
import { useParams } from "react-router-dom";
|
|
|
-// import PlyrPlayer from "../components/public/PlyrPlayer";
|
|
|
+import PlyrPlayer from "../components/public/PlyrPlayer";
|
|
|
import VidStackPlayer from "../components/public/VidStackPlayer";
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
import FPlatformEnum from "../utils/enum";
|
|
@@ -84,30 +84,23 @@ export default function VideoPlayer() {
|
|
|
});
|
|
|
}, [fileUrl, platform, t]);
|
|
|
|
|
|
- return (
|
|
|
- <div className="m-0 flex h-screen w-screen items-center justify-center p-0">
|
|
|
- <div className="mx-auto w-full max-w-5xl">
|
|
|
- {/* <div
|
|
|
- className={
|
|
|
- FPlatformEnum.byIndex(platform).isWeb()
|
|
|
- ? 'plyr-wrapper-16-9'
|
|
|
- : 'plyr-wrapper-1-1'
|
|
|
- }>
|
|
|
- </div> */}
|
|
|
- <VidStackPlayer plyrProps={plyrProps} />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- );
|
|
|
// return (
|
|
|
- // <div>
|
|
|
- // <div
|
|
|
- // className={
|
|
|
- // FPlatformEnum.byIndex(platform).isWeb()
|
|
|
- // ? 'plyr-wrapper-16-9'
|
|
|
- // : 'plyr-wrapper-1-1'
|
|
|
- // }>
|
|
|
- // <PlyrPlayer plyrProps={plyrProps} />
|
|
|
+ // <div className="m-0 flex h-screen w-screen items-center justify-center p-0">
|
|
|
+ // <div className="mx-auto w-full max-w-5xl">
|
|
|
+ // <VidStackPlayer plyrProps={plyrProps} />
|
|
|
// </div>
|
|
|
// </div>
|
|
|
// );
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <div
|
|
|
+ className={
|
|
|
+ FPlatformEnum.byIndex(platform).isWeb()
|
|
|
+ ? 'plyr-wrapper-16-9'
|
|
|
+ : 'plyr-wrapper-1-1'
|
|
|
+ }>
|
|
|
+ <PlyrPlayer plyrProps={plyrProps} />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
}
|