Skip to content

Missing AirPlay button when used HLS source #1522

@pvm1987

Description

@pvm1987

Current Behavior:

Missing AirPlay button when played HLS video after the player has been relaoded.

Expected Behavior:

AirPlay button to be shown as it was on the first player load.

Steps To Reproduce:

  1. Open your demo page on Safari (for example 17.1). https://vidstack.io/player/demo/?framework=react&view=player
  2. Switch to HLS source
  3. Refresh the page
  4. Observe AirPlay button is there
  5. Change something in the code on the right. For example remove "," sign from "playsInline": true, and re-add it.
  6. Play again the video

Reproduction Link: How to create a repro?

Environment:

Browser: Safari@17.1
OS: macOS@12.7.1

Also you can see the issue if you load the library statically as shown in the documentation:

import HLS from 'hls.js'; 

onProviderChange={(provider: MediaProviderAdapter | null, nativeEvent: MediaProviderChangeEvent) => 
    if (isHLSProvider(provider)) {
        provider.library = HLS;
    }
}

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