Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pannal opened this issue Nov 23, 2024 · 0 comments

Comments

@pannal
Copy link

pannal commented Nov 23, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant