mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
add connection informations to SDP; fix #10
This commit is contained in:
6
track.go
6
track.go
@@ -140,6 +140,12 @@ func (ts Tracks) Write() []byte {
|
|||||||
AddressType: "IP4",
|
AddressType: "IP4",
|
||||||
UnicastAddress: "127.0.0.1",
|
UnicastAddress: "127.0.0.1",
|
||||||
},
|
},
|
||||||
|
// required by Darwin Streaming Server
|
||||||
|
ConnectionInformation: &sdp.ConnectionInformation{
|
||||||
|
NetworkType: "IN",
|
||||||
|
AddressType: "IP4",
|
||||||
|
Address: &sdp.Address{Address: "0.0.0.0"},
|
||||||
|
},
|
||||||
TimeDescriptions: []sdp.TimeDescription{
|
TimeDescriptions: []sdp.TimeDescription{
|
||||||
{Timing: sdp.Timing{0, 0}},
|
{Timing: sdp.Timing{0, 0}},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user