private void Player_ItemStarted(object sender, PlayerItemEventArgs e) { this.NextPlayItem = null; this.CurrentPlayItem = (PlayItemWrapper)e.PlayerItem; this.CurrentPlayItem.OnStarted(); }
private void Player_ItemLoaded(object sender, PlayerItemEventArgs e) { this.NextPlayItem = (PlayItemWrapper)e.PlayerItem; this.NextPlayItem.OnLoaded(); }
private void Player_ItemStopped(object sender, PlayerItemEventArgs e) { this.CurrentPlayItem.OnStopped(); this.CurrentPlayItem = null; }