Video wroking

This commit is contained in:
Kakabay 2023-03-02 12:46:17 +05:00
parent 52be43193b
commit e28d0c83eb
1 changed files with 9 additions and 5 deletions

View File

@ -20,9 +20,9 @@ const Home = ({ lang, setPostId }) => {
useEffect(() => {
// Video fetch
// const VideoApi = new Api('https://tmex.gov.tm:8765/api/video', videoData, setVideoData).get({
// 'X-Localization': lang,
// });
const VideoApi = new Api('https://tmex.gov.tm:8765/api/video', videoData, setVideoData).get({
'X-Localization': lang,
});
// News fetch
const NewsApi = new Api('https://tmex.gov.tm:8765/api/news', newsData, setNewsData).get({
@ -123,8 +123,12 @@ const Home = ({ lang, setPostId }) => {
) : null}
<div className="about-right">
{/* {videoData ? <VideoPlayer videoUrl={videoData.data.video} /> : null} */}
<VideoPlayer videoUrl={'https://www.exchange.gov.tm/page/normative-base?lang=ru'} />
{videoData ? <VideoPlayer videoUrl={videoData.data.video} /> : null}
{/* <VideoPlayer
videoUrl={
'https://tmex.gov.tm:8765/uploads/videos/b9ae49ed43c7ca9483eddc0d6c43ecb5.mp4'
}
/> */}
</div>
</div>
</div>