public async Task OpenMediaAsync(Media item) { this.Item = item; TitleText.Text = Item.Title; TitleText.ToolTip = Item.Title; PositionText.Text = ""; playerBusiness = new WmpPlayerBusiness(new WmpPlayerController(Player)); playerBusiness.PositionChanged += playerBusiness_PositionChanged; playerBusiness.Show(); await playerBusiness.PlayVideoAsync(Item, false); }
public async Task OpenMediaAsync(Media item) { this.Item = item; TitleText.Text = Item.Title; TitleText.ToolTip = Item.Title; PositionText.Text = ""; playerWindow = WmpPlayerWindow.Instance(); playerBusiness = new WmpPlayerBusiness(new WmpPlayerController(playerWindow.Player, playerWindow)); playerBusiness.AllowClose = true; playerBusiness.Closed += playerBusiness_Closed; playerBusiness.PositionChanged += playerBusiness_PositionChanged; playerBusiness.Show(); await playerBusiness.PlayVideoAsync(Item, false); }