I'm looking for a best way to deal with text that moves from right to left.
So, I have this working code:
// write text for simulation view
File.WriteAllText("text1.txt", textBox1.Text, Encoding.UTF8);
// delete temporary processed video with overlayed text
ProcessFileOperations.deleteFile("text1.avi");
ProcessFileOperations.overlayText(text1ColorButton.BackColor.Name, filePath, 0);
mediaPlayer.URL = "text1.avi";
mediaPlayer.Ctlcontrols.play();
This creates a video with overlayed scrolling text and instantly plays it as simulation. The problem arrives when I write text it fast windowmediaplayer is "going down" for a while - black image. How can let to user to put text and update media files with some delay or pause NOT to "freeze" main thread?