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

fix(PS4): Fix serverCertificate defaulted to null #6716

Merged

Conversation

tykus160
Copy link
Member

@tykus160 tykus160 commented May 31, 2024

For some reason on PS4, the check val.buffer.constructor == ArrayBuffer returns false when it should be true which causes the object cloning to return null instead of the array buffer.

Modifying this to val.buffer instanceof ArrayBuffer now returns true which fixes the issue. This should work across devices.
Original author: @nick-michael

…d to null (shaka-project#300)

* Fix an issue on PS4 where serverCertificate is incorrectly defaulted to null

* PR Comment
@avelad avelad requested a review from joeyparrish May 31, 2024 07:25
@avelad avelad added type: bug Something isn't working correctly platform: Playstation 4 Issues affecting Playstation 4 labels May 31, 2024
@avelad avelad added this to the v4.10 milestone May 31, 2024
@avelad avelad added the priority: P2 Smaller impact or easy workaround label May 31, 2024
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@joeyparrish joeyparrish changed the title fix: Fix PS4 issue where serverCertificate is incorrectly defaulted to null fix(PS4): Fix serverCertificate defaulted to null May 31, 2024
@joeyparrish joeyparrish merged commit 6f84e41 into shaka-project:main May 31, 2024
20 of 21 checks passed
@joeyparrish
Copy link
Member

Thank you for your contribution!

joeyparrish pushed a commit that referenced this pull request May 31, 2024
For some reason on PS4, the check `val.buffer.constructor == ArrayBuffer` returns `false` when it should be `true` which causes the object cloning to return `null` instead of the array buffer.

Modifying this to `val.buffer instanceof ArrayBuffer` now returns true which fixes the issue. This should work across devices.
Original author: @nick-michael

Co-authored-by: Nick Michael <nick-michael@users.noreply.github.com>
joeyparrish pushed a commit that referenced this pull request May 31, 2024
For some reason on PS4, the check `val.buffer.constructor == ArrayBuffer` returns `false` when it should be `true` which causes the object cloning to return `null` instead of the array buffer.

Modifying this to `val.buffer instanceof ArrayBuffer` now returns true which fixes the issue. This should work across devices.
Original author: @nick-michael

Co-authored-by: Nick Michael <nick-michael@users.noreply.github.com>
joeyparrish pushed a commit that referenced this pull request May 31, 2024
For some reason on PS4, the check `val.buffer.constructor == ArrayBuffer` returns `false` when it should be `true` which causes the object cloning to return `null` instead of the array buffer.

Modifying this to `val.buffer instanceof ArrayBuffer` now returns true which fixes the issue. This should work across devices.
Original author: @nick-michael

Co-authored-by: Nick Michael <nick-michael@users.noreply.github.com>
joeyparrish pushed a commit that referenced this pull request May 31, 2024
For some reason on PS4, the check `val.buffer.constructor == ArrayBuffer` returns `false` when it should be `true` which causes the object cloning to return `null` instead of the array buffer.

Modifying this to `val.buffer instanceof ArrayBuffer` now returns true which fixes the issue. This should work across devices.
Original author: @nick-michael

Co-authored-by: Nick Michael <nick-michael@users.noreply.github.com>
tykus160 added a commit to sky-hugolima/shaka-player-contrib that referenced this pull request Jun 3, 2024
For some reason on PS4, the check `val.buffer.constructor == ArrayBuffer` returns `false` when it should be `true` which causes the object cloning to return `null` instead of the array buffer.

Modifying this to `val.buffer instanceof ArrayBuffer` now returns true which fixes the issue. This should work across devices.
Original author: @nick-michael

Co-authored-by: Nick Michael <nick-michael@users.noreply.github.com>
@tykus160 tykus160 deleted the wt-array-buffer-fix-upstream branch June 5, 2024 11:06
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Jul 30, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: Playstation 4 Issues affecting Playstation 4 priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants