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

In Safari, when source file is m3u8 I get an Error: no playable sources found #195

Open
kshoell opened this issue Mar 11, 2022 · 1 comment

Comments

@kshoell
Copy link

kshoell commented Mar 11, 2022

I do not see this issue in Chrome or other browsers with the same .m3u8 files.

If I set the file to be an .mp4, it loads successfully.

@kshoell
Copy link
Author

kshoell commented Mar 11, 2022

I found a work around for this. When creating sources I have to add a second source that does not include the type attribute. This appears to work on Safari now.

const sources = [
        // without type, this fails to load in Chrome in my http dev environment
        {
            file: fileUrl,
            type: mimeType,
        },
        // Setting the type on Safari causes the .m3u8 file to fail to load properly
        // This second source will be loaded if the first one fails
        {
            file: fileUrl,
        },
    ]

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

No branches or pull requests

1 participant