Rename Ssrc -> SSRC

This capitalization is consistent with other uses in the project,
and matches the Go convention of capitalizing initialisms.

https://github.com/golang/go/wiki/CodeReviewComments#initialisms

Relates to #417
This commit is contained in:
Max Hawkins
2019-02-17 16:37:11 -08:00
committed by Sean DuBois
parent 632b16b852
commit c6592e6c4b
8 changed files with 20 additions and 20 deletions

View File

@@ -83,13 +83,13 @@ func main() {
go func() {
ticker := time.NewTicker(rtcpPLIInterval)
for range ticker.C {
if err := peerConnection.SendRTCP(&rtcp.PictureLossIndication{MediaSSRC: track.Ssrc}); err != nil {
if err := peerConnection.SendRTCP(&rtcp.PictureLossIndication{MediaSSRC: track.SSRC}); err != nil {
fmt.Println(err)
}
}
}()
inboundSSRC <- track.Ssrc
inboundSSRC <- track.SSRC
inboundPayloadType <- track.PayloadType
for {
@@ -122,7 +122,7 @@ func main() {
// Get the LocalDescription and take it to base64 so we can paste in browser
fmt.Println(util.Encode(answer))
outboundSsrc := <-inboundSSRC
outboundSSRC := <-inboundSSRC
outboundPayloadType := <-inboundPayloadType
for {
fmt.Println("")
@@ -136,7 +136,7 @@ func main() {
util.Check(err)
// Create a single VP8 Track to send videa
vp8Track, err := peerConnection.NewRawRTPTrack(outboundPayloadType, outboundSsrc, "video", "pion")
vp8Track, err := peerConnection.NewRawRTPTrack(outboundPayloadType, outboundSSRC, "video", "pion")
util.Check(err)
_, err = peerConnection.AddTrack(vp8Track)