File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
webrtc/src/track/track_remote Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ use crate::api::media_engine::MediaEngine;
2
2
use crate :: error:: { Error , Result } ;
3
3
use crate :: rtp_transceiver:: rtp_codec:: { RTCRtpCodecParameters , RTCRtpParameters , RTPCodecType } ;
4
4
use crate :: rtp_transceiver:: { PayloadType , SSRC } ;
5
- use crate :: RECEIVE_MTU ;
6
5
7
6
use crate :: rtp_transceiver:: rtp_receiver:: RTPReceiverInternal ;
8
7
@@ -286,20 +285,6 @@ impl TrackRemote {
286
285
Ok ( ( r, attributes) )
287
286
}
288
287
289
- /// determine_payload_type blocks and reads a single packet to determine the PayloadType for this Track
290
- /// this is useful because we can't announce it to the user until we know the payload_type
291
- pub ( crate ) async fn determine_payload_type ( & self ) -> Result < ( ) > {
292
- let mut b = vec ! [ 0u8 ; RECEIVE_MTU ] ;
293
- let ( n, _) = self . peek ( & mut b) . await ?;
294
-
295
- let mut buf = & b[ ..n] ;
296
- let r = rtp:: packet:: Packet :: unmarshal ( & mut buf) ?;
297
- self . payload_type
298
- . store ( r. header . payload_type , Ordering :: SeqCst ) ;
299
-
300
- Ok ( ( ) )
301
- }
302
-
303
288
/// peek is like Read, but it doesn't discard the packet read
304
289
pub ( crate ) async fn peek ( & self , b : & mut [ u8 ] ) -> Result < ( usize , Attributes ) > {
305
290
let ( n, a) = self . read ( b) . await ?;
You can’t perform that action at this time.
0 commit comments