🖼️ Animated Image (GIF)
VideoPlayer, GIF kaynaklarını otomatik algılayıp minimal görüntü modunda açar.
import React, { useState } from 'react' import { AudioPlayer } from '../src/components/AudioPlayer' import { VideoPlayer } from '../src/components/VideoPlayer' import type { SubtitleTrack } from '../src/types' import './App.css' function App() { const [videoUrl, setVideoUrl] = useState('') const [useDemo, setUseDemo] = useState(true) const [subtitleStyleEditorEnabled, setSubtitleStyleEditorEnabled] = useState(true) // Demo video URLs (you can replace with your own) const demoVideoUrl = '/player/ses.mp4' const demoPoster = '/player/poster.svg' const demoGifUrl = 'https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif' const demoAudioUrl = 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3' const demoSubtitles: SubtitleTrack[] = [ { src: '/player/ses.srt', lang: 'tr', label: 'Türkçe', default: true, }, ] const currentVideoUrl = useDemo ? demoVideoUrl : videoUrl return (
A feature-rich, modern video player built with React
Enter a video URL or use the demo video
Yeni medya tiplerinin player içinde nasıl göründüğünü burada test edebilirsiniz.
VideoPlayer, GIF kaynaklarını otomatik algılayıp minimal görüntü modunda açar.
MP3/WAV gibi ses dosyaları için ayrı AudioPlayer görünümü.