mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:09:45 +00:00
19 lines
504 B
React
19 lines
504 B
React
// import { useEffect } from "react";
|
|
|
|
function VKvideo({ video }) {
|
|
video.url = `https://vk.com/video_ext.php?id=${video.id}&oid=${video.oid}`;
|
|
|
|
return (
|
|
<iframe
|
|
title="vkvideo"
|
|
class="vkvideo"
|
|
src={video.url}
|
|
width={video.width}
|
|
height={video.height}
|
|
allow="autoplay; encrypted-media; fullscreen; picture-in-picture;" frameborder="0"
|
|
allowfullscreen>
|
|
</iframe>
|
|
);
|
|
}
|
|
|
|
export default VKvideo; |