public BufferingState(VideoNodeStateFactory factory, IVideoNode context) : base(factory, context) { }
protected VideoNodeState(VideoNodeStateFactory factory, IVideoNode context) { Factory = factory; Context = context; }
public StoppedState(VideoNodeStateFactory factory, IVideoNode context) : base(factory, context) { }
public PausedState(VideoNodeStateFactory factory, IVideoNode context) : base(factory, context) { }
private void InitializeState() { var factory = new VideoNodeStateFactory(); var first = new OpeningState(factory, this); CurrentState = factory.GetOrCreate(delegate { return first; }); }