Giter VIP home page Giter VIP logo

Comments (5)

kidsit avatar kidsit commented on August 22, 2024

So, can you explain when the video-contrib-hls will register HlsSourceHandler to html5 tech a little bit?
The issue is clear: contrib-hls will not register rightly its hls source handler to html5 tech, so videojs can not find a capable source handling m3u8, that will cause 'VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media' error. If we have some glue on when and how contrib-hls register its hls source handler, we can fix it or workaround it.
thanks~!

from http-streaming.

mjneil avatar mjneil commented on August 22, 2024

You should be able to just require the package and not the dist file, import 'videojs-contrib-hls';

from http-streaming.

kidsit avatar kidsit commented on August 22, 2024

@mjneil , thanks for quick response. no luck yet with
In following code, videojs.Hls is undefined. Maybe that SHOULD be the root cause of failure of use in chrome with webpack build. How can i fix it or how can i go to workaround it?
Thanks!

`import 'video.js/dist/video-js.css'

import videojs from 'video.js'

window.videojs = videojs

import 'videojs-contrib-hls'

console.log(videojs.Hls)`

from http-streaming.

svrakata avatar svrakata commented on August 22, 2024

@kidsit I had the same problem. Just delete "node_modules" folder, package.lock or yarn.lock and reinstall with npm install or yarn install.
Thanks, @mjneil! Everything works great.

from http-streaming.

welcome avatar welcome commented on August 22, 2024

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

from http-streaming.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.