Skip to content

Gap skipping policy #429

Description

@mojl

Summary

An optional policy in the jitter buffer for gap skipping, as requested previously in #256.

Motivation

The reason this is needed, is when using the receiver interceptor, the programmer has no access to the jitter buffer methods (unless I am mistaken), and once one packet goes missing the interceptor can stale forever.

This policy will make the receiver interceptor usable.

Some common policies

  • After X amount of packets are waiting to be ordered, jump to the next available packet, simple and easy to implement, leaning toward this.
  • If X time has passed since a packet was received, push that packet into the playback buffer regardless of gaps. FFmpeg does it this way (100 ms), will need invoking time inside the jitter buffer and for every packet.
  • If a packet is about to be overwritten and it is not in the buffer, skip the gap (ideal for recording).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions