Code Monkey home page Code Monkey logo

Comments (2)

mrlika avatar mrlika commented on September 13, 2024 1

bufferedSegmentsCount (P2P core)

It defines how many segments ahead of the current segment in the current track are taken into consideration by P2P algorithm to be downloaded (preferable via P2P) ahead of playhead position. For example VOD stream can contain 1000 segments but only limited by the parameter count of segments will be downloaded ahead of playhead position.

cachedSegmentsCount (P2P core)

The maximum number of downloaded segments (with payload) a peer keeps in the memory to share with others over P2P. The parameter limits memory usage.

forwardSegmentCount (Shaka Player specific)

It defines how many segments details ahead of the current segment we get using Shaka Player Manifest and pass to P2P algorithm. In most cases should be equal to bufferedSegmentsCount.

maxHistorySegments (Shaka Player specific)

It is not possible (or very hard) in shaka.net.NetworkingEngine determine by URL (and byte range) to what segment (and to what track) it belongs.
That is why when Shaka Player resolves next segment we store its details (URL, byte range, track etc.) in the cache - segments history.
Once Shaka Player requests the segment in shaka.net.NetworkingEngine we search for the segment by URL (and byte range) in this cache and recover its details.
The parameter defines the maximum number of segments in the cache to store to limit its size.

from p2p-media-loader.

nodegin avatar nodegin commented on September 13, 2024

@mrlika Thank you so much for the explanation!

from p2p-media-loader.

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.