private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (!(bool)PlayerRun.IsChecked) { PlayServer.CloseAll(); } }
private void BtnClose_Click(object sender, RoutedEventArgs e) { if (!(bool)PlayerRun.IsChecked) { PlayServer.CloseAll(); } }
private void BtnPlay_Click(object sender, RoutedEventArgs e) { //初始化解码器 PlayServer.Initialize(); //播放 PlayServer.Play(TbUrl.Text); }
public GameManager() { playServer = new PlayServer(Constants.NetworkPort); if (!Settings.Current.ServerBuild) { logServer = new LogServer(Constants.LogPort); } }
private void BtnPlay_Click(object sender, RoutedEventArgs e) { if ((bool)PlayerMINI.IsChecked) { PlayServer.PlayerType = PlayerType.MN; } else { PlayServer.PlayerType = PlayerType.XL; } //初始化解码器 PlayServer.Initialize(); //播放 PlayServer.Play(TbUrl.Text); }
private void SliderVolume_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { PlayServer.SetVolume((int)SliderVolume.Value); }
private void BtnClose_Click(object sender, RoutedEventArgs e) { PlayServer.CloseAll(); }