Skip to content

Add a default 0 value for start and end in the media_element entity time ranges #1428

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

Merged

Conversation

matus-tomlein
Copy link
Contributor

This PR aims to prevent a schema validation error occurs for some mobile browsers which seem to be omitting the end value in timeranges within the seekable property in the media_element entity schema.

I couldn't reproduce this unfortunately but assume it is some type of browser bug, so the best I can think of doing is to add a default 0 value to the start and end properties within the time ranges.

If you have some better ideas, please let me know!

The majority of failed events for the customer have the following value for the seekable property:

"seekable": [
  {
    "start": 0
  }
]

@matus-tomlein matus-tomlein requested review from jethron and igneel64 May 5, 2025 13:50
Copy link
Contributor

@jethron jethron left a comment

Choose a reason for hiding this comment

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

LGTM!

@matus-tomlein matus-tomlein changed the base branch from master to release/4.6.1 May 6, 2025 08:10
@matus-tomlein matus-tomlein merged commit bb9c433 into release/4.6.1 May 6, 2025
0 of 2 checks passed
@matus-tomlein matus-tomlein deleted the issue/fix_missing_end_in_seekable_property branch May 6, 2025 12:34
@matus-tomlein matus-tomlein mentioned this pull request May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants