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

feat: add feature-flag to insert fake encryption in init segments on broken platforms #5561

Merged
merged 3 commits into from Aug 30, 2023

Conversation

valotvince
Copy link
Contributor

When controlling the content we're playing from one end to another, we don't need to do the extra check for working around broken platforms (parsing mp4 boxes to find encryption, insert one if there isn't if the content is encrypted).

On a Tizen 5.0, the check without having to append the fake encryption takes between 5 to 10ms to complete. Time that is added to the launch time, or the time needed to seek if there is a downgrade for seeking.

That's not much, but when having a start time of 1000ms, that's still at best 1% we can shave off 😅

Tests

I did the tests by adding a bit of code, taking care to remove any logs in MP4Parser that are taking a huge time (with logs, we're more on a 100~200ms scale).

test-sample

Screenshot 2023-08-30 at 18 01 03

externs/shaka/player.js Outdated Show resolved Hide resolved
@avelad avelad added type: enhancement New feature or request priority: P3 Useful but not urgent labels Aug 30, 2023
@avelad avelad added this to the v4.4 milestone Aug 30, 2023
@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@joeyparrish joeyparrish merged commit f14f295 into shaka-project:main Aug 30, 2023
14 of 15 checks passed
@valotvince valotvince deleted the feat-fake-encryption-ff branch August 31, 2023 07:39
@valotvince
Copy link
Contributor Author

Thanks @avelad @joeyparrish :)

@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Oct 29, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P3 Useful but not urgent status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants