From 7d72b50b1d831041ef9f23439b570bb2f9e18efa Mon Sep 17 00:00:00 2001 From: RezaAshrafi77 Date: Sat, 9 Oct 2021 16:18:09 +0330 Subject: [PATCH] reza added JOL player --- package.json | 1 + src/components/JolPlayer/index.js | 27 +++++++++++++++++++++++++++ src/views/VideoTube/index.scss | 2 +- src/views/VideoTube/index.tsx | 6 ++++-- yarn.lock | 17 ++++++++++++++++- 5 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 src/components/JolPlayer/index.js diff --git a/package.json b/package.json index a185c62..c584d89 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "jest-circus": "26.6.0", "jest-resolve": "26.6.0", "jest-watch-typeahead": "0.6.1", + "jol-player": "^2.2.0", "mapir-react-component": "^2.0.1", "mini-css-extract-plugin": "0.11.3", "optimize-css-assets-webpack-plugin": "5.0.4", diff --git a/src/components/JolPlayer/index.js b/src/components/JolPlayer/index.js new file mode 100644 index 0000000..ced5873 --- /dev/null +++ b/src/components/JolPlayer/index.js @@ -0,0 +1,27 @@ +import JoLPlayer from "jol-player"; +import file from "../../assets/videos/sea.mp4"; + +const Video = () => { + return ( +
+ +
+ ); +}; + +export default Video; diff --git a/src/views/VideoTube/index.scss b/src/views/VideoTube/index.scss index f6fc647..fadab3f 100644 --- a/src/views/VideoTube/index.scss +++ b/src/views/VideoTube/index.scss @@ -14,10 +14,10 @@ } h1{ color: white; + margin-bottom: 20px; } p{ color: white; - margin-top: 20px; } } &--comments{ diff --git a/src/views/VideoTube/index.tsx b/src/views/VideoTube/index.tsx index 4239c33..bfb1ac9 100644 --- a/src/views/VideoTube/index.tsx +++ b/src/views/VideoTube/index.tsx @@ -6,6 +6,7 @@ import Attachments from "./Attachments/index"; import Book from "./Book/index"; import Comment from "./Comment/index"; import AddComment from "./AddComment/index"; +import Video from '../../components/JolPlayer'; import "./index.scss"; import listIcon from "../../assets/icons/list.png"; @@ -24,9 +25,10 @@ function VodTube({ videoList, getList, list, selectedVideo, comments }: any) {
- */} +