Add IPTV (.ts) stream support and tests

Introduced detection and support for MPEG-TS (.ts) IPTV streams in videoProtocol, updated documentation and examples to reflect IPTV support, and added comprehensive tests for protocol detection. Mock implementations for flv.js and hls.js were added for testing, and vitest config now aliases these libraries to their mocks.
This commit is contained in:
hibna
2025-11-04 05:24:21 +03:00
parent e3b2d396e1
commit becc9efc7f
9 changed files with 204 additions and 4 deletions
+8 -1
View File
@@ -501,13 +501,14 @@ https://cdn.jsdelivr.net/npm/hls.js@1.5.13
- Media hataları → HLS instance yeniden başlatma
- Fatal hataları → Error state'e düşme
#### 3. RTMP/FLV Streaming
#### 3. RTMP/FLV/IPTV Streaming
**Desteklenen Protokoller:**
- RTMP (rtmp://)
- RTMPS (rtmps://)
- RTMPT (rtmpt://)
- HTTP-FLV (.flv veya flv? query)
- MPEG-TS (.ts) - IPTV streams
**Kütüphane:** flv.js (opsiyonel, lazy-loaded)
@@ -537,6 +538,12 @@ https://cdn.jsdelivr.net/npm/flv.js@1.6.2
// RTMP (HTTP-FLV proxy gerektirir)
<VideoPlayer src="rtmp://example.com/live/stream" />
// IPTV (MPEG-TS)
<VideoPlayer
src="http://favoritv65.xyz:8080/live/username/password/98925.ts"
poster="http://example.com/channel-logo.png"
/>
```
**HTTP-FLV Proxy Örneği (Node.js):**