mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 13:16:16 -08:00
fix(playback): keep mpeg-ts out of unsupported containers
Entire-Checkpoint: f957cd9849e0
This commit is contained in:
1 parent
a0850c1505
commit
eaa9ad3e6b
2 files changed
+14
-1
No files matched your search
@@ -88,6 +88,20 @@ describe('playback diagnostics', () => {
|
||||
expect(issue.container).toBe('x-msvideo');
|
||||
});
|
||||
|
||||
it('does not classify MPEG-TS MIME-only failures as unsupported containers', () => {
|
||||
const issue = classifyNativePlaybackIssue(
|
||||
{ code: 4, message: 'source not supported' },
|
||||
createPlaybackSourceMetadata({
|
||||
url: 'https://example.com/live/stream',
|
||||
mimeType: 'video/mp2t',
|
||||
player: 'videojs',
|
||||
})
|
||||
);
|
||||
|
||||
expect(issue.code).toBe(PlaybackDiagnosticCode.UnsupportedCodec);
|
||||
expect(issue.container).toBe('mp2t');
|
||||
});
|
||||
|
||||
it('classifies HLS network errors without claiming codec incompatibility', () => {
|
||||
const issue = classifyHlsPlaybackIssue(
|
||||
{
|
||||
|
||||
@@ -118,7 +118,6 @@ const UNSUPPORTED_CONTAINER_EXTENSIONS = new Set([
|
||||
const UNSUPPORTED_CONTAINER_NAMES = new Set([
|
||||
...UNSUPPORTED_CONTAINER_EXTENSIONS,
|
||||
'matroska',
|
||||
'mp2t',
|
||||
'quicktime',
|
||||
'x-matroska',
|
||||
'x-msvideo',
|
||||
|
||||
Reference in new issue
Block a user