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:
@@ -20,4 +20,10 @@ export default defineConfig({
|
||||
],
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'flv.js': new URL('./src/test/mocks/flv.mock.ts', import.meta.url).pathname,
|
||||
'hls.js': new URL('./src/test/mocks/hls.mock.ts', import.meta.url).pathname,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user