コード例 #1
0
        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);
        }
コード例 #2
0
        private void btnFfmpeg_Click(object sender, RoutedEventArgs e)
        {
            FfmpegOptions ffmpegOptions = new FfmpegOptions(this);

            ffmpegOptions.ShowDialog();
        }