Skip to content

Commit

Permalink
Add Plyr Video Player
Browse files Browse the repository at this point in the history
  • Loading branch information
kaamil-ahamadh committed Nov 18, 2022
1 parent ca4bc0b commit 8416be6
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 3 deletions.
120 changes: 120 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.1.3",
"plyr-react": "^5.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.6.0",
Expand Down
4 changes: 1 addition & 3 deletions src/screens/VideoDetailsScreen.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import React, { useContext, useEffect, useState } from "react";
import React, { useEffect, useState } from "react";
import { useParams } from "react-router-dom";

import GlobalContext from "../context/GlobalContext";
import { youtubeApiVideoDetails } from "../apis/youtubeApi";
import { VideoPlayCard } from "../components";

const VideoDetailsScreen = () => {
const { id, title } = useParams();
const { setLoading } = useContext(GlobalContext);

const [video, setVideo] = useState({});

Expand Down

0 comments on commit 8416be6

Please sign in to comment.