Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private MemoryStream video = new MemoryStream();
- private void OutputDataHandler(object sendingProcess, DataReceivedEventArgs outLine)
- {
- // Collect the net view command output.
- if (!String.IsNullOrEmpty(outLine.Data))
- {
- byte [] bytes = new byte[outLine.Data.Length];
- System.Buffer.BlockCopy(outLine.Data.ToCharArray(), 0, bytes, 0, bytes.Length);
- video.Write(bytes, 0, bytes.Length);
- }
- }
- File.WriteAllBytes(@"C:\temp\test\test2.webm", video.ToArray()); // this results in a webm chrome opens but its blank small doesnt play
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement