Skip to content

hls.js fails to load on Safari iOS #2262

Description

@realeyes-matthew

What version of Hls.js are you using?

Local build off master as of June 5 2019

What browser and OS are you using?

iOS Safari

Test stream:

N/A

Checklist

  • [x ] The stream has correct Access-Control-Allow-Origin headers (CORS)
  • [x ] There are no network errors such as 404s in the browser console when trying to play the stream

Steps to reproduce

  1. Please provide clear steps to reproduce your problem

Go to https://hls-js-latest.netlify.com/demo and inspect the console logs using Safari remote debugger.

  1. If the bug is intermittent, give a rough frequency

Always

Expected behavior

hls.js demo page will load

Actual behavior

The errors below are thrown and no errors are shown in the error logger on the demo page.

Console output

[Error] ReferenceError: Can't find variable: MediaSource
	getMediaSource (hls.js:8994)
	./src/hls.ts (hls.js:9047)
	__webpack_require__ (hls.js:31)
	(anonymous function) (hls.js:95)
	(anonymous function) (hls.js:96)
	webpackUniversalModuleDefinition (hls.js:10)
	Global Code (hls.js:11)
[Error] ReferenceError: Can't find variable: Hls
	(anonymous function) (hls-demo.js:237:105)
	j (jquery.min.js:2:26917)
	fireWith (jquery.min.js:2:27726)
	ready (jquery.min.js:2:29530)
	I (jquery.min.js:2:29715)
For media errors reported on Chrome browser, please also paste the output of chrome://media-internals 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions