-
Hello guys, I‘ve found many snippets like : if ivfErr = videoTrack.WriteSample(media.Sample{Data: frame, Duration: time.Second}); ivfErr != nil {
panic(ivfErr)
} in examples,but not sure the role of Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
Sean-Der
Nov 8, 2021
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
luxi78
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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