public List <MPEGDemuxerTrack> getVideoTracks() { List <MPEGDemuxerTrack> result = new List <MPEGDemuxerTrack>(); foreach (BaseTrack p in streams.Values) { if (MPSUtils.videoStream(p.streamId)) { result.Add(p); } } return(result); }
public override DemuxerTrackMeta getMeta() { return(new DemuxerTrackMeta(MPSUtils.videoStream(streamId) ? DemuxerTrackMeta.Type.VIDEO : (MPSUtils.audioStream(streamId) ? DemuxerTrackMeta.Type.AUDIO : DemuxerTrackMeta.Type.OTHER), null, 0, 0, null)); }