@@ -1000,7 +1000,7 @@ private void HandleDescribeResponse(RtspResponse message)
10001000
10011001 // Add SETUP message to list of mesages to send
10021002 _setupMessages . Enqueue ( setupMessage ) ;
1003- NewVideoStream ? . Invoke ( this , new NewStreamEventArgs ( payloadName , streamConfigurationData ) ) ;
1003+ NewVideoStream ? . Invoke ( this , new NewStreamEventArgs ( media . PayloadType , payloadName , streamConfigurationData ) ) ;
10041004 }
10051005 break ;
10061006 }
@@ -1097,7 +1097,7 @@ private void HandleDescribeResponse(RtspResponse message)
10971097 }
10981098 // Add SETUP message to list of mesages to send
10991099 _setupMessages . Enqueue ( setupMessage ) ;
1100- NewAudioStream ? . Invoke ( this , new NewStreamEventArgs ( _audioCodec , streamConfigurationData ) ) ;
1100+ NewAudioStream ? . Invoke ( this , new NewStreamEventArgs ( media . PayloadType , _audioCodec , streamConfigurationData ) ) ;
11011101 }
11021102 break ;
11031103 }
@@ -1234,12 +1234,14 @@ public void Dispose()
12341234
12351235 public class NewStreamEventArgs : EventArgs
12361236 {
1237- public NewStreamEventArgs ( string streamType , IStreamConfigurationData streamConfigurationData )
1237+ public NewStreamEventArgs ( int payloadType , string streamType , IStreamConfigurationData streamConfigurationData )
12381238 {
1239+ PayloadType = payloadType ;
12391240 StreamType = streamType ;
12401241 StreamConfigurationData = streamConfigurationData ;
12411242 }
12421243
1244+ public int PayloadType { get ; }
12431245 public string StreamType { get ; }
12441246 public IStreamConfigurationData StreamConfigurationData { get ; }
12451247
0 commit comments