Ejemplo n.º 1
0
        public MediaCoreConsumer()
        {
            VideoFormat videoFormat = SmartGlassConnection.Instance.VideoFormat;

            _video = new VideoDecoder(MediaFormat.MimetypeVideoAvc,
                                      (int)videoFormat.Width, (int)videoFormat.Height);
            _videoAssembler = new VideoAssembler();

            _audioFormat = SmartGlassConnection.Instance.AudioFormat;
            _audio       = new AudioDecoder(MediaFormat.MimetypeAudioAac,
                                            (int)_audioFormat.SampleRate, (int)_audioFormat.Channels);
            _audioAssembler = new AudioAssembler();
        }
 public AudioFormatEventArgs(Packets.AudioFormat format)
 {
     Format = format;
 }