Skip to content

What exactly does 'Duration' of Sample struct do? #2014

Answered by Sean-Der
luxi78 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @luxi78

When the media is packetized in RTP this is used the generate the Timestamp values.

This is used to generate the sample count here which is then passed into pion/rtp.

This then is used here to increment the Timestamp here

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luxi78
Comment options

Answer selected by luxi78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants