Skip to content

If the source's media type is known, src is not removed. #1855

Description

@reasonset

Current Behavior:

If the media type of the relevant src is not ? when the src is changed, the source element is added but the value of the src attribute is not removed, so the media source is not actually changed.

Expected Behavior:

If src is changed, the source is set to the specified source regardless of whether the source's media type is known or not.

Steps To Reproduce:

  1. Set the source to have the specified type using the HEAD fallback or an explicit {src, type} declaration
  2. Switch the src to a different source
  3. Switch the src to the source specified in step 1
  4. Play the content

repro: https://codeberg.org/reasonset-tiny/repro-vidstack-update-src

Environment:

  • Framework: Vanilla
  • Meta Framework: None
  • Node: None
  • Device: PC, Android
  • OS: Linux, ColorOS16

Anything Else?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions