mpegts.js icon indicating copy to clipboard operation
mpegts.js copied to clipboard

Destroying and re-creating a player with active workers produce errors in console

Open pannal opened this issue 1 year ago • 4 comments

if (player) {
    player.unload();
    if (player._media_element) {
        player.detachMediaElement();
    }
    player.destroy();
    player = null;
}
abe4220e-7606-4074-934d-453779e58c9e:1 [MSEController] > Failed to execute 'abort' on 'SourceBuffer': Worker MediaSource attachment is closing
e.e @ abe4220e-7606-4074-934d-453779e58c9e:1
e.flush @ abe4220e-7606-4074-934d-453779e58c9e:1
E @ abe4220e-7606-4074-934d-453779e58c9e:8
(anonymous) @ abe4220e-7606-4074-934d-453779e58c9e:8
2blob:https://xxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1 [MSEController] > Failed to execute 'removeSourceBuffer' on 'MediaSource': Worker MediaSource attachment is closing
e.e @ blob:https://xxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1
e.shutdown @ blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1
b @ blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:8
(anonymous) @ blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:8
blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1 [MSEController] > Failed to execute 'endOfStream' on 'MediaSource': Worker MediaSource attachment is closing
e.e @ blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1
e.shutdown @ blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1
b @ blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:8
(anonymous) @ blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:8
blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1 Uncaught InvalidStateError: Failed to read the 'buffered' property from 'SourceBuffer': Worker MediaSource attachment is closing
    at e.flush (blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:1:205527)
    at E (blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:8:10190)
    at blob:https://xxxxxxxxxxxxxxx/abe4220e-7606-4074-934d-453779e58c9e:8:11563

pannal avatar Nov 23 '24 21:11 pannal

bump!

pannal avatar Feb 08 '25 22:02 pannal

Do you solve it? I have a same question

UmbraCi avatar May 25 '25 17:05 UmbraCi

Nope, still an issue.

pannal avatar May 26 '25 09:05 pannal

For me, downgrade mpegts version to 1.7.3 resolve that issue

novandikp avatar Jun 09 '25 17:06 novandikp