-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
396376d
commit 5e8c617
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import * as React from 'react'; | ||
import { Video } from '@dailybruin/lux'; | ||
import ReactPlayer from 'react-player' | ||
|
||
export interface VideoProps { | ||
/** The id of the YouTube video. */ | ||
videoId: string | ||
} | ||
|
||
export default function CustomVideo(props: VideoProps) { | ||
console.log("Video " + props.videoId) | ||
return <div style={{ | ||
margin: "0px 0px 25px 0px", | ||
}}> | ||
<Video videoId={props.videoId} /> | ||
<ReactPlayer width="100%" url={`https://youtube.com/watch?v=${props.videoId}`} /> | ||
</div> | ||
|
||
} |