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:
+8
-1
@@ -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):**
|
||||
|
||||
Reference in New Issue
Block a user