golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
384 B
20 lines
384 B
package webrtc |
|
|
|
import ( |
|
"github.com/pion/rtp" |
|
) |
|
|
|
// TrackWrapper provides ClockRate() and PTSEqualsDTS() to WebRTC tracks. |
|
type TrackWrapper struct { |
|
ClockRat int |
|
} |
|
|
|
// ClockRate returns the clock rate. |
|
func (w TrackWrapper) ClockRate() int { |
|
return w.ClockRat |
|
} |
|
|
|
// PTSEqualsDTS returns whether PTS equals DTS. |
|
func (TrackWrapper) PTSEqualsDTS(*rtp.Packet) bool { |
|
return true |
|
}
|
|
|