Add stream buffer policy. There is only 2 policy now.
The first one is policy none which do nothing when buffer.
The second one is ring buffer policy. It will remove earliest frames when total memory of the buffer exceed the limit.
Application can set this policy and memory limit by using options.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Add stream buffer policy. There is only 2 policy now.
The first one is policy none which do nothing when buffer.
The second one is ring buffer policy. It will remove earliest frames when total memory of the buffer exceed the limit. Application can set this policy and memory limit by using options.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.