protected override void Initialize(libvlc_media_track_info_t *mediaTrack) { base.Initialize(mediaTrack); Height = mediaTrack->video.i_height; Width = mediaTrack->video.i_width; }
protected virtual void Initialize(libvlc_media_track_info_t *mediaTrack) { Codec = mediaTrack->i_codec; Id = mediaTrack->i_id; Type = (TrackType)mediaTrack->i_type; Profile = mediaTrack->i_profile; Level = mediaTrack->i_level; }
/// <summary> /// Create a media track from a pointer, it will distinguish type of media track auto. /// </summary> /// <param name="pointer">pointer of media track</param> /// <returns>a audio track, video track, subtitle track or unknown track</returns> public static MediaTrackInfo CreateFromPointer(libvlc_media_track_info_t *pointer) { switch ((TrackType)pointer->i_type) { case TrackType.Audio: return(new AudioTrackInfo(pointer)); case TrackType.Video: return(new VideoTrackInfo(pointer)); default: return(new UnknownTrackInfo(pointer)); } }
internal VideoTrackInfo(libvlc_media_track_info_t *mediaTrack) : base(mediaTrack) { }
protected override void Initialize(libvlc_media_track_info_t *mediaTrack) { base.Initialize(mediaTrack); Channels = mediaTrack->audio.i_channels; Rate = mediaTrack->audio.i_rate; }
protected MediaTrackInfo(libvlc_media_track_info_t *mediaTrack) { Initialize(mediaTrack); }
internal UnknownTrackInfo(libvlc_media_track_info_t *mediaTrack) : base(mediaTrack) { }