README
@nvest/trade-strean-videoplayer
This Is The Trade Stream Videoplayer Sidebar
Props To Pass
videoShow
The Object Pass To The Video Player The Object May Containimage
,videoUrl
,title
,desc
as properties and set null or false to hidesetVideoShow
Function To Set The Value Of videoShownavbar
Navbar Id To Get The Video List Inside
Example Implementation
import React, { useContext, useEffect, useState } from "react";
import VidPlayer from "@nvest/trade-strean-videoplayer";
import { BankContext } from "../../context/Context";
function VideoPlayer() {
const { videoShow, setVideoShow } = useContext(BankContext);
return (
<VidPlayer
videoShow={videoShow}
setVideoShow={setVideoShow}
navbar="5fb318108efdfb791cb29ce5"
/>
);
}
export default VideoPlayer;