Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
deepch committed Aug 25, 2023
1 parent 5a989a5 commit 9d21d05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions format/rtspv2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,12 @@ func Dial(options RTSPClientOptions) (*RTSPClient, error) {
if err != nil {
return nil, err
}

for _, i2 := range client.mediaSDP {
if (i2.AVType != VIDEO && i2.AVType != AUDIO) || (client.options.DisableAudio && i2.AVType == AUDIO) {
//TODO check it
if strings.Contains(string(client.SDPRaw), "LaunchDigital") {
client.chTMP += 2
}
continue
}
err = client.request(SETUP, map[string]string{"Transport": "RTP/AVP/TCP;unicast;interleaved=" + strconv.Itoa(client.chTMP) + "-" + strconv.Itoa(client.chTMP+1)}, client.ControlTrack(i2.Control), false, false)
Expand Down Expand Up @@ -945,14 +948,14 @@ func (client *RTSPClient) CodecUpdateVPS(val []byte) {

}

//Println mini logging functions
// Println mini logging functions
func (client *RTSPClient) Println(v ...interface{}) {
if client.options.Debug {
log.Println(v)
}
}

//binSize
// binSize
func binSize(val int) []byte {
buf := make([]byte, 4)
binary.BigEndian.PutUint32(buf, uint32(val))
Expand Down

0 comments on commit 9d21d05

Please sign in to comment.