I'm trying to use Microsoft Expression Encoder 4.0 in my application. The first problem I'm facing is that I need to catch the streamed video from the url in c#, but in the sample of the library, they used WPF and it only has this code to show the streaming video
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Show Broadcast" Height="350" Width="525">
<Grid>
<MediaElement Name="VideoControl" Source="http://localhost:8080" />
</Grid>
</Window>
How would I convert this code to c# code so I can show the streaming video in a pictureBox?
In winforms? The most similar equivalent would be to embed a media player control. In the sample in the question, the WPF engine is offloading all the work of decoding to
MediaElement
- there is a lot involved in most video streaming protocols, and similar effort in handing the data to the UI subsystems. You really don't want to do that yourself.