Skip to content

Conversation

@peaBerberian
Copy link
Collaborator

@peaBerberian peaBerberian commented Dec 27, 2024

I saw a very unfortunate typo which seems to prevent the RxPlayer from re-using a MediaKeys instance between contents sometimes (excepted on some identified platforms: xbox, playstation, smart TVs etc.) since the v4.2.0.

I saw that issue while continuing my work on integration tests in the massive #1478 PR.

I thought our linter's strict-boolean-expressions rule protected us against those types of typos but it turns out that for some weird reason the persons implementing that rule thought that numbers, strings and nullable objects were OK (I just learned that, and I cannot understand why they thought it would be a good default behavior for a rule called strict-boolean-expressions with documentation Forbids usage of non-boolean types in expressions where a boolean is expected grrrrr).

So I fixed that rule, and BIM, multiple typos/missed post-refacto issues were all over the code.
Thankfully, it doesn't seem to have created issues other than the aforementioned one.

…nt rule

I saw a very unfortunate typo which seems to prevent the RxPlayer from
re-using a `MediaKeys` instance between contents sometimes (all the
time? to check) since the v4.2.0.

I saw that issue while continuing my work on integration tests in the
massive #1478 PR.

I thought our linter's [strict-boolean-expressions](https://typescript-eslint.io/rules/strict-boolean-expressions/)
protected us against those types of typos but it turns out that for some
weird reason the persons implementing that rule thought that numbers,
strings and nullable object were OK (I just learned that, and I cannot
understand why they thought it would be a good idea for a rule called
**strict-boolean-expressions** grrrrr).

So I fixed that rule, and BIM, multiple typos/missed post-refacto issues
were all over the code.
Thankfully, it doesn't seem to have created issues other than the
aforementioned one.
@peaBerberian peaBerberian added bug This is an RxPlayer issue (unexpected result when comparing to the API) DRM Relative to DRM (EncryptedMediaExtensions) Priority: 0 (Very high) This issue or PR has a very high priority. Efforts should be concentrated on it first. labels Dec 27, 2024
@peaBerberian peaBerberian added this to the 4.3.0 milestone Dec 27, 2024
@peaBerberian peaBerberian merged commit 15941e4 into dev Jan 6, 2025
17 checks passed
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) DRM Relative to DRM (EncryptedMediaExtensions) 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