Skip to content

HLS.js and RequireJS #904

@rafa8626

Description

@rafa8626

I'm using this awesome library on the oncoming MediaElementJS release. However, while testing some scenarios, I'm having some issues when using RequireJS.

require([/path/to/mediaelement-and-player.min], function() { ... });

throws the next sequence of errors (in that order):
Uncaught ReferenceError: Hls is not defined (https://github.com/johndyer/mediaelement/blob/3.x-dev/src/js/mediaelement-renderer-hls.js#L105)
Uncaught (in promise) DOMException: Failed to load because no supported source was found.
Uncaught Error: Mismatched anonymous define() module (https://github.com/johndyer/mediaelement/blob/3.x-dev/src/js/mediaelement-renderer-hls.js#L60)

I've tried different ways to solve this and still no success.

Any advise you can provide me on how to solve this issue would be greatly appreciated it. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions