@nvest/trade-strean-videoplayer

Live Demo

Usage no npm install needed!

<script type="module">
  import nvestTradeStreanVideoplayer from 'https://cdn.skypack.dev/@nvest/trade-strean-videoplayer';
</script>

README

@nvest/trade-strean-videoplayer

Live Demo

This Is The Trade Stream Videoplayer Sidebar

Props To Pass

  • videoShow The Object Pass To The Video Player The Object May Contain image,videoUrl,title,desc as properties and set null or false to hide
  • setVideoShow Function To Set The Value Of videoShow
  • navbar 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;