|
|
|
|
@ -2000,6 +2000,10 @@ const App = memo(() => {
|
|
|
|
|
const MEDIA_ERR_SRC_NOT_SUPPORTED = 4; // Test: issue-668-3.20.1.m2ts - NOTE: DEMUXER_ERROR_COULD_NOT_OPEN and DEMUXER_ERROR_NO_SUPPORTED_STREAMS is also 4
|
|
|
|
|
if (!([MEDIA_ERR_SRC_NOT_SUPPORTED, PIPELINE_ERROR_DECODE].includes(error.code) && !usingPreviewFile && filePath)) return;
|
|
|
|
|
|
|
|
|
|
// this error can happen half way into playback if the file has some corruption
|
|
|
|
|
// example: "DEMUXER_ERROR_COULD_NOT_PARSE: FFmpegDemuxer: PTS is not defined 4"
|
|
|
|
|
if (error.code === MEDIA_ERR_SRC_NOT_SUPPORTED && error.message?.startsWith('DEMUXER_ERROR_COULD_NOT_PARSE')) return;
|
|
|
|
|
|
|
|
|
|
if (workingRef.current) return;
|
|
|
|
|
try {
|
|
|
|
|
setWorking(i18n.t('Converting to supported format'));
|
|
|
|
|
|