PHP 8.2.31
Preview: VideoPlayer.jsx Size: 775 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Launch/components/VideoPlayer.jsx

import { useRef, useState } from 'react';

export const VideoPlayer = ({ path, poster, className = null }) => {
	const videoRef = useRef();
	const [playing, setPlaying] = useState(false);
	return (
		<div
			className={`relative ${className}`}
			style={{
				backgroundImage: !playing ? `url(${poster})` : 'none',
				backgroundSize: 'contain',
				backgroundPosition: 'center',
				backgroundRepeat: 'no-repeat',
			}}
		>
			<video
				ref={videoRef}
				id="video-player"
				className="h-auto max-h-[min(50vh,400px)] w-full object-contain"
				playsInline
				muted
				autoPlay
				poster={poster}
				loop
				onPlay={() => setPlaying(true)}
			>
				<source src={path} type="video/webm" />
				Your browser does not support the video tag.
			</video>
		</div>
	);
};

Directory Contents

Dirs: 3 × Files: 15

Name Size Perms Modified Actions
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
- drwxr-xr-x 2026-04-28 02:40:02
Edit Download
1.50 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
1.47 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
1.34 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
188 B lrw-r--r-- 2023-11-14 08:13:36
Edit Download
354 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download
11.59 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
8.13 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
1.03 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
400 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download
2.60 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
6.71 KB lrw-r--r-- 2026-02-27 04:48:52
Edit Download
581 B lrw-r--r-- 2024-07-16 23:59:12
Edit Download
7.53 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
416 B lrw-r--r-- 2024-10-08 14:19:28
Edit Download
775 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).