djvergad / dash

An MPEG/DASH client-server module for simulating rate adaptation mechanisms over HTTP/TCP.
GNU General Public License v2.0
46 stars 21 forks source link

Total buffer capacity #18

Closed ghost closed 5 years ago

ghost commented 5 years ago

hey,issues again :D how to set the total buffer capacity? buffer is infinite?can i set an upper limit to buffer? i didn't see the restrict of buffer in mpeg-play. another: how can i run the dash in variable bandwidth condition?

djvergad commented 5 years ago

The total buffer capacity is considered unlimited in the current version of the simulator, but it shouldn't be too difficult to change it to have a maximum capacity if that is what you need.

Regarding the variable bandwidth situation, have a look at issue #16, where someone has linked a way to achieve something similar to what you are asking.

I plan to implement both features at some point if a find the time, in the meantime if you implement them yourself please submit a pull request so that others can also benefit from the changes.

djvergad commented 5 years ago

Buffer capacity has been implemented in commit f3d0de8d3bee4cd1bf95d3fd8e8a23d6b065f420.

Bandwidth fluctuation example may be found at https://github.com/djvergad/dash/blob/master/examples/link-example.cc