Exemplo n.º 1
0
        /// <summary>
        /// Adds the specified stream for playback.
        /// </summary>
        /// <param name="stream">The stream.</param>
        public void Add(ICaptureStream stream)
        {
            if (!stream.CanRead)
            {
                throw new Exception("Cannot read from stream");
            }

            _Captures.Add(stream);

            //check we have all of the required codec's loaded

            foreach (var codec in stream.Codecs)
            {
                if (this.StateResolver.Find(codec) == null)
                {
                    //not found, need to acquire it
                    OnCodecRequired(new CodecRequiredEventArgs(codec));
                }
            }
        }
 public void Initialise(ICaptureStream captureStream)
 {
     this.CaptureStream = captureStream;
 }