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

Playback on PlayStation 5 #3582

Closed
Beraliv opened this issue Aug 17, 2021 · 7 comments · Fixed by #3808
Closed

Playback on PlayStation 5 #3582

Beraliv opened this issue Aug 17, 2021 · 7 comments · Fixed by #3808
Labels
platform: Playstation 5 Issues affecting Playstation 5 priority: P4 Nice to have / wishful thinking status: archived Archived and locked; will not be updated type: enhancement New feature or request
Milestone

Comments

@Beraliv
Copy link

Beraliv commented Aug 17, 2021

Hey!

Have you read the FAQ and checked for duplicate open issues?

Yes

Is your feature request related to a problem? Please describe.

Currently I'm testing shaka-player on PS5 and I see SHAKA_PLAYER_LICENSE_RESPONSE_REJECTED which probably happens because PS5 doesn't implement MediaCapabilities.decodingInfo which shaka tries to use and fails at some point (it's also discussed here – #2179 (comment))

I checked several streams on https://shaka-player-demo.appspot.com/demo, none of them were working for me

Describe the solution you'd like

I want to use shaka-player on PS5

PS5 supports:

  • DASH manifests
  • PS5 supports playready DRM

Describe alternatives you've considered

There are several alternatives: hls.js, native API, maybe something else (I didn't dive it too much)

Additional context

@MilosRasic
Copy link
Contributor

Shaka works fine on PS5.

We've had a similar problem and it turned out to be due to PS5 PlayReady implementation rejecting licenses from one of our DRM servers when Shaka is set to use temporary licenses.

This fixed the problem for us:

	drm: {
		advanced: {
			'com.microsoft.playready': {
					distinctiveIdentifierRequired: true,
					sessionType: 'persistent-license',
			},
		},
	},

@Beraliv
Copy link
Author

Beraliv commented Aug 17, 2021

Shaka works fine on PS5.

We've had a similar problem and it turned out to be due to PS5 PlayReady implementation rejecting licenses from one of our DRM servers when Shaka is set to use temporary licenses.

This fixed the problem for us:

	drm: {
		advanced: {
			'com.microsoft.playready': {
					distinctiveIdentifierRequired: true,
					sessionType: 'persistent-license',
			},
		},
	},

Ah, okay, I used distinctiveIdentifierRequired, but not sessionType

Let me try it tomorrow

@Beraliv
Copy link
Author

Beraliv commented Aug 20, 2021

@MilosRasic I checked it and seems it's still not working for us

I will have a detailed debugging session on Tuesday, so will leave comments here (as also probably ask for more details from Sony side if needed)

@Beraliv
Copy link
Author

Beraliv commented Aug 24, 2021

@MilosRasic Based on what Sony wrote last year, probably that's not enough to make it working

First, we checked it for [email protected] but it wasn't working because of MediaCapabilities.decodingInfo which is incorrectly polyfilled.

Then we switched to [email protected]. We activated all logs and looks like everything's fine until Updating session where it throws the error Shaka Error DRM.LICENSE_RESPONSE_REJECTED with or without distinctiveIdentifierRequired and sessionType

We checked EME request and response and it looks valid from our perspective (as least it's not different from other platforms where we also use DASH + Playready)

@theodab theodab added platform: TV/STB Issues affecting smart TV or set-top box platforms priority: P4 Nice to have / wishful thinking type: enhancement New feature or request labels Sep 29, 2021
@shaka-bot shaka-bot added this to the Backlog milestone Sep 29, 2021
@agajassi
Copy link
Contributor

agajassi commented Nov 9, 2021

First, we checked it for [email protected] but it wasn't working because of MediaCapabilities.decodingInfo which is incorrectly polyfilled.

On PS5 I noticed that issue as well and it is same both with 3.2.0 and 3.2.1. mediaCapabilities.decodeInfo function does not exist on PS5.

Does anybody know if there is a workaround for this? I am curious if it is a known issue or needs a separate ticket.

@velopeshoys
Copy link

Using Shaka 3.1.0 and setting persistent-license as sessionType seems to fix the problem partially, however when the session is updated the following error is thrown Shaka Error DRM.LICENSE_RESPONSE_REJECTED.

@diogoazevedos
Copy link
Contributor

After an extensive investigation, we found that PS5 doesn't support PlayReady license acknowledge, which causes the CDM to reject the license response. However, by removing the TrasactionId from the license response, it should work fine.

joeyparrish pushed a commit that referenced this issue Dec 16, 2021
Add Playstation 5 detection to the Media Capabilities Polyfill install method.

Fixes #3582

Co-authored-by: Dan Sparacio <[email protected]>
joeyparrish pushed a commit that referenced this issue Jan 5, 2022
Add Playstation 5 detection to the Media Capabilities Polyfill install method.

Fixes #3582

Co-authored-by: Dan Sparacio <[email protected]>
Change-Id: If7ab3bda07f80c73fbb567a2d252f9174bdef732
joeyparrish pushed a commit that referenced this issue Jan 5, 2022
Add Playstation 5 detection to the Media Capabilities Polyfill install method.

Fixes #3582

Co-authored-by: Dan Sparacio <[email protected]>
Change-Id: Ied871f73f0ad4f2d1f95f91158907179ee52ddea
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Feb 14, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2022
@avelad avelad modified the milestones: Backlog, v3.3 May 4, 2022
@avelad avelad added platform: Playstation 5 Issues affecting Playstation 5 and removed platform: TV/STB Issues affecting smart TV or set-top box platforms labels Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: Playstation 5 Issues affecting Playstation 5 priority: P4 Nice to have / wishful thinking status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants