Giter Site home page Giter Site logo

Comments (7)

PhilKearney avatar PhilKearney commented on August 19, 2024

+1 I am also experiencing the same issue. Only on Chrome.

from hls.js.

mangui avatar mangui commented on August 19, 2024

your playlist does not reference CODECS :

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
480x270.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=600000
640x360.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=800000
854x480.m3u8

as a consequence hls.js tries to guess audio codec type by parsing audio metadata.
https://github.com/dailymotion/hls.js/blob/master/src/demux/tsdemuxer.js#L537-L555
if sampling rate is less than 24kHz, it tries to use HE-AAC. (mp4a.40.5)
in your case, sampling rate is 8kHz, but it looks like you were using AAC codec... (mp4a.40.2)
=> wrong guess => Chrome fires an error

as you can see, Chrome is quite pedantic about codec definition...
I tried
if you define CODECS in your main manifest, you should be able to playback your stream.

from hls.js.

mangui avatar mangui commented on August 19, 2024

and as you can see, it does not affect Chrome/Android ... different audio/video pipeline

from hls.js.

mhassman avatar mhassman commented on August 19, 2024

Awesome!!
Thank you for the insight.. I'm now explicitly setting codecs and the streams are working in chrome.
Thank you!!!
:-)

from hls.js.

PhilKearney avatar PhilKearney commented on August 19, 2024

Hi there, question. Is there a way to set the codecs in JavaScript code rather than the manifest?

from hls.js.

mangui avatar mangui commented on August 19, 2024

No. Cant you fix your manifest ?

from hls.js.

pkearney13 avatar pkearney13 commented on August 19, 2024

Unfortunately I can't, the stream is being provided by a sports stream provider. If I were to ask them to change it what would I ask them to change? thanks.

from hls.js.

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.