Home
last modified time | relevance | path

Searched refs:TrackType (Results 1 – 2 of 2) sorted by relevance

/xiu/protocol/rtsp/src/
H A Drtsp_track.rs18 pub enum TrackType { enum
37 pub track_type: TrackType,
48 pub fn new(track_type: TrackType, codec_info: RtspCodecInfo, media_control: String) -> Self { in new() argument
/xiu/protocol/rtsp/src/session/
H A Dmod.rs17 use crate::rtsp_track::TrackType;
67 tracks: HashMap<TrackType, RtspTrack>,
490 if let Some(audio_track) = self.tracks.get_mut(&TrackType::Audio) { in handle_play()
503 if let Some(video_track) = self.tracks.get_mut(&TrackType::Video) { in handle_play()
615 let track = RtspTrack::new(TrackType::Audio, codec_info, media_control); in new_tracks()
616 self.tracks.insert(TrackType::Audio, track); in new_tracks()
629 let track = RtspTrack::new(TrackType::Video, codec_info, media_control); in new_tracks()
630 self.tracks.insert(TrackType::Video, track); in new_tracks()