npm ImageVideo all caption

install
npm i react-video-all-caption
import
import { ReactVideoPlayer } from "react-video-all-caption";
use
< ReactVideoPlayer >

videopath="https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4"
autoplay = {true}
captionurl= "/srtCaption.srt" // ./sbvCaption.sbv // ./vttCaption.vtt
embedurl= ""
loop= {true}
muted= {true}
playPause= {true}
type= "videoPath"
control= {true}

< /ReactVideoPlayer >

Vanilla JavaScript / Web Component
<script src="https://unpkg.com/react-video-all-caption/dist/video-all-caption.min.js"></script>
Single Caption
<video-all-caption src="video.mp4" controls caption="captions.srt" caption-label="English" caption-lang="en" ></video-all-caption>
Multiple Captions
< video-all-caption src="video.mp4" controls > <video-caption src="english.srt" label="English" lang="en" default > </video-caption > <video-caption src="persian.sbv" label="فارسی" lang="fa" > </video-caption > </video-all-caption >

videopath="https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4"
autoplay = {true}
captionurl= "/srtCaption.srt" // ./sbvCaption.sbv // ./vttCaption.vtt
embedurl= ""
loop= {true}
muted= {true}
playPause= {true}
type= "videoPath"
control= {true}

< /video-all-caption >