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: Fix encryption detection to work around broken platforms #4169

Merged

Conversation

valotvince
Copy link
Contributor

@valotvince valotvince commented Apr 27, 2022

Fixes an issue where non-encrypted content were unable to playback due to encryption detection done with this.video.mediaKeys. It seems we could set MediaKeys even though the content is not encrypted, therefore trying & failing to add information in the init segment and resulting into a CONTENT_TRANSFORMATION_FAILED.

I am still unsure why this is happening exactly but I think it could be a side-effect of #3776 . I'll keep looking for the real cause of the issue, but I think this is a reasonable fix to rely on stream info

I'll test different versions of Tizens we have because I think this workaround isn't needed on all of the versions

Copy link
Member

@joeyparrish joeyparrish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good to me, but you have tests failing on all platforms:

Cannot read properties of undefined (reading 'length')

You may need to update some tests (if they are unrealistic and stream.drmInfos is undefined).

@joeyparrish joeyparrish changed the title fix: correctly detect encryption for workaround broken platforms fix: Fix encryption detection to work around broken platforms Apr 28, 2022
@joeyparrish joeyparrish merged commit c5f474e into shaka-project:main Apr 28, 2022
@valotvince valotvince deleted the fix-encrypted-broken-platforms branch April 28, 2022 21:31
@valotvince
Copy link
Contributor Author

Thanks for merging :)

@avelad avelad added this to the v4.0 milestone May 4, 2022
joeyparrish pushed a commit that referenced this pull request May 17, 2022
Fixes an issue where non-encrypted content were unable to playback due to encryption detection done with `this.video.mediaKeys`. It seems we could set MediaKeys even though the content is not encrypted, therefore trying & failing to add information in the init segment and resulting into a `CONTENT_TRANSFORMATION_FAILED`.

I am still unsure why this is happening exactly but I think it could be a side-effect of #3776 . I'll keep looking for the real cause of the issue, but I think this is a reasonable fix to rely on stream info

I'll test different versions of Tizens we have because I think this workaround isn't needed on all of the versions
joeyparrish pushed a commit that referenced this pull request May 17, 2022
Fixes an issue where non-encrypted content were unable to playback due to encryption detection done with `this.video.mediaKeys`. It seems we could set MediaKeys even though the content is not encrypted, therefore trying & failing to add information in the init segment and resulting into a `CONTENT_TRANSFORMATION_FAILED`.

I am still unsure why this is happening exactly but I think it could be a side-effect of #3776 . I'll keep looking for the real cause of the issue, but I think this is a reasonable fix to rely on stream info

I'll test different versions of Tizens we have because I think this workaround isn't needed on all of the versions
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants