Code Monkey home page Code Monkey logo

Comments (6)

winshining avatar winshining commented on May 22, 2024

hls不是流式的,无法支持。

from nginx-http-flv-module.

typeface-cn avatar typeface-cn commented on May 22, 2024

虽然hls不是流式的,但是也是可以支持的嘛。

from nginx-http-flv-module.

winshining avatar winshining commented on May 22, 2024

正因为hls不是流式的,请求一个分段的http请求可能是短连接,下载完一个分段或者几个分段连接就断开了,pull连接跟着就断开,再退一步说,就算用长连接,请求hls的请求触发pull,这需要时间,hls延迟本来就让人无法接受,还加个1~2秒的等待,更让人无法忍受!

from nginx-http-flv-module.

typeface-cn avatar typeface-cn commented on May 22, 2024

短连接 hls 的请求触发 pull,pull 持续时间可以参考 hls_playlist_length;多人通过 hls 观看时,只有第一人出现触发延迟,后来者不会出现多余的时间等待。

from nginx-http-flv-module.

winshining avatar winshining commented on May 22, 2024

按照你说的,pull持续时间hls_playlist_length,然后就断开了,这之后就不会生成hls分段了,hls请求完了已经生成的分段,需要再次触发pull,这中间有个间隔时间,造成媒体流不连续,怎么办?

from nginx-http-flv-module.

typeface-cn avatar typeface-cn commented on May 22, 2024

pull 持续时间可以参考 hls_playlist_length,不必等同,比如可以是它的2倍;多次请求 hls,pull 断开的时间相应的延后,媒体流就延续了。

from nginx-http-flv-module.

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.