Skip to content

Conversation

@peaBerberian
Copy link
Collaborator

We recently defined a onmessageerror global callback on the WebWorker-side of the MULTI_THREAD feature, thinking that it was defined, like the onmessage callback, as long as WebWorker were accessible.

Turns out that was not the case at all, and the multithreading mode was breaking on older device. Oops, sorry about that.

As it is not required, we can just access it through our globalScope shortcut to the global object. This way, it will just define a callback which will never be called if it does not exist.

We recently defined a `onmessageerror` global callback on the
WebWorker-side of the `MULTI_THREAD` feature, thinking that it was
defined, like the `onmessage` callback, as long as WebWorker were
accessible.

Turns out that was not the case at all, and the multithreading mode was
breaking on older device. Oops, sorry about that.

As it is not required, we can just access it through our `globalScope`
shortcut to the global object. This way, it will just define a callback
which will never be called if it does not exist.
@peaBerberian peaBerberian added bug This is an RxPlayer issue (unexpected result when comparing to the API) Priority: 0 (Very high) This issue or PR has a very high priority. Efforts should be concentrated on it first. labels Oct 23, 2024
@peaBerberian peaBerberian added this to the 4.3.0 milestone Oct 23, 2024
@Florent-Bouisset Florent-Bouisset merged commit d5d1787 into dev Oct 23, 2024
14 checks passed
@peaBerberian peaBerberian mentioned this pull request Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This is an RxPlayer issue (unexpected result when comparing to the API) Priority: 0 (Very high) This issue or PR has a very high priority. Efforts should be concentrated on it first.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants