🖼️ Animated Image (GIF)
+VideoPlayer, GIF kaynaklarını otomatik algılayıp minimal görüntü modunda açar.
+diff --git a/examples/App.css b/examples/App.css index 8cc886d..a62e1f7 100644 --- a/examples/App.css +++ b/examples/App.css @@ -140,6 +140,55 @@ body { accent-color: #ef4444; } +.media-test-section { + max-width: 1200px; + margin: 2rem auto 0; +} + +.media-test-section h2 { + font-size: 1.8rem; + color: #ef4444; + margin-bottom: 0.35rem; +} + +.media-test-subtitle { + color: #94a3b8; + margin-bottom: 1.3rem; +} + +.media-test-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); + gap: 1.25rem; +} + +.media-test-card { + background-color: #1e293b; + border: 1px solid #334155; + border-radius: 12px; + padding: 1rem; +} + +.media-test-card h3 { + color: #f1f5f9; + margin-bottom: 0.45rem; +} + +.media-test-card p { + color: #cbd5e1; + font-size: 0.95rem; + margin-bottom: 0.85rem; +} + +.media-test-player { + border-radius: 10px; + overflow: hidden; +} + +.media-test-player-gif { + max-width: 320px; +} + .features-section { margin-top: 4rem; } @@ -217,6 +266,14 @@ kbd { flex-direction: column; } + .media-test-grid { + grid-template-columns: 1fr; + } + + .media-test-player-gif { + max-width: 100%; + } + .features-grid { grid-template-columns: 1fr; } diff --git a/examples/App.tsx b/examples/App.tsx index a157cf3..5ebdb25 100644 --- a/examples/App.tsx +++ b/examples/App.tsx @@ -1,4 +1,5 @@ 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' @@ -11,6 +12,8 @@ function App() { // 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[] = [ { @@ -90,6 +93,48 @@ function App() { +
+ 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ü.
+