-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add WithRTPTimestamp to set initial RTP timestamp #3112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -69,6 +70,13 @@ func WithPayloader(h func(RTPCodecCapability) (rtp.Payloader, error)) func(*Trac | |||
} | |||
} | |||
|
|||
// WithRTPTimestamp set the initial RTP timestamp for the track. | |||
func WithRTPTimestamp(timestamp uint32) func(*TrackLocalStaticRTP) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the name!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name sounds good to me! I know exactly what it does and I can google 'RTP Timestamp' if I am confused :)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3112 +/- ##
==========================================
+ Coverage 78.72% 78.77% +0.05%
==========================================
Files 91 91
Lines 11373 11383 +10
==========================================
+ Hits 8953 8967 +14
+ Misses 1933 1932 -1
+ Partials 487 484 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e4edd96
to
1d080a4
Compare
Move to the new RTP API newPacketizerWithOptions, add WithRTPTimestamp To make it possible to set the initial RTP timestamp for the track.
1d080a4
to
d6154f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nere
Description
Move to the new RTP API newPacketizerWithOptions, add WithRTPTimestamp To make it possible to set the initial RTP timestamp for the track.
Reference issue
Fixes pion/rtp#111