add TrackLPCM and client-publish-codec-lpcm example

This commit is contained in:
aler9
2022-11-14 22:46:23 +01:00
parent cb05e71b46
commit f07fad893f
13 changed files with 332 additions and 10 deletions

View File

@@ -14,7 +14,8 @@ type TrackPCMU struct {
func newTrackPCMUFromMediaDescription(
control string,
clock string) (*TrackPCMU, error,
clock string,
) (*TrackPCMU, error,
) {
tmp := strings.SplitN(clock, "/", 2)
if len(tmp) == 2 && tmp[1] != "1" {