コード例 #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();
        }
コード例 #2
0
 public AudioFormatEventArgs(Packets.AudioFormat format)
 {
     Format = format;
 }