Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MediaEngine" /> class.
 /// </summary>
 /// <param name="parent">The associated parent object.</param>
 /// <param name="connector">The parent implementing connector methods.</param>
 /// <exception cref="InvalidOperationException">Thrown when the static Initialize method has not been called.</exception>
 public MediaEngine(object parent, IMediaConnector connector)
 {
     // Associate the parent as the media connector that implements the callbacks
     Parent    = parent;
     Connector = connector;
     Commands  = new CommandManager(this);
     State     = new MediaEngineState(this);
     Timing    = new TimingController(this);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MediaEngine" /> class.
 /// </summary>
 /// <param name="parent">The associated parent object.</param>
 /// <param name="connector">The parent implementing connector methods.</param>
 /// <exception cref="InvalidOperationException">Thrown when the static Initialize method has not been called.</exception>
 public MediaEngine()
 {
     State = new MediaEngineState(this);
     Frames[MediaType.Audio] = new MediaFrameBuffer(25, MediaType.Audio);
     Frames[MediaType.Video] = new MediaFrameBuffer(25, MediaType.Video);
 }