public async Task <IOptions> receiveOptions(NetworkStream stream) { var bufferSize = stream.ReadByte(); var buffer = new byte[bufferSize]; var message = new StringBuilder(); await stream.ReadAsync(buffer, 0, buffer.Length); message.AppendFormat("{0}", Encoding.ASCII.GetString(buffer)); var ffmpegops = new FfmpegOptions(); ffmpegops.add(message.ToString()); return(ffmpegops); }
private void btnFfmpeg_Click(object sender, RoutedEventArgs e) { FfmpegOptions ffmpegOptions = new FfmpegOptions(this); ffmpegOptions.ShowDialog(); }