Update MPEG-TS IPTV handling to use native playback
Changed protocol detection for direct .ts IPTV streams from 'hls' to 'native', reflecting that modern browsers can play MPEG-TS streams without a special player. Updated documentation, README, and tests to clarify browser support and recommend requesting .m3u8 links for best compatibility.
This commit is contained in:
@@ -150,9 +150,14 @@ function App() {
|
||||
### IPTV Streaming
|
||||
|
||||
```tsx
|
||||
// Note: Browser support for direct .ts streams is limited
|
||||
// For best compatibility, request .m3u8 (HLS) links from your IPTV provider
|
||||
<VideoPlayer
|
||||
src="http://server.com:8080/live/username/password/12345.ts"
|
||||
poster="http://example.com/channel-logo.png"
|
||||
onError={(error) => {
|
||||
console.error('Stream error - try requesting .m3u8 format:', error)
|
||||
}}
|
||||
/>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user