Note that there are some explanatory texts on larger screens.

plurals
  1. POExpression Encoder 4 live stream consumed by HTML 5 <video>
    text
    copied!<p>I'm trying to serve up a live stream (ie. completely buffered in memory, cannot access the past) and am having trouble with Expression Encoder 4. </p> <p>Ideally, I'd like to just stream a bare H.264 byte stream to the client consumed by:</p> <pre><code> &lt;video id="mainVideoWindow"&gt; &lt;source src='http://localhost/path/to/my/stream.mp4' type='video/mp4' /&gt; &lt;/video&gt; </code></pre> <p>I figured I could stream it to the client just like any other byte stream over HTTP. However, I'm having trouble figuring out the appropriate code required to do (first day with Expression Encoder, not sure how to go about getting the raw byte stream) so nor do I know if it would work in the first place.</p> <p>An alternate was to use IIS Live Streaming server:</p> <pre><code> var source = job.AddDeviceSource(device, null); job.ActivateSource(source); job.ApplyPreset(LivePresets.VC1IISSmoothStreaming720pWidescreen); var format = new PushBroadcastPublishFormat(); format.PublishingPoint = new Uri("http://localhost/test.isml"); job.PublishFormats.Add(format); job.StartEncoding(); // Let's listen for a keypress or error message to know when to stop encoding while (Console.ReadKey(true).Key != ConsoleKey.X) ; // Stop our encoding Console.WriteLine("Encoding stopped."); job.StopEncoding(); </code></pre> <p>However, I'm having trouble getting the client side markup to want to display the video on Chrome and I haven't seen anything to indicate that it'd work on Chrome (though <a href="http://learn.iis.net/page.aspx/854/apple-http-live-streaming-with-iis-media-services" rel="nofollow">http://learn.iis.net/page.aspx/854/apple-http-live-streaming-with-iis-media-services</a> indicates how it would work with an iOS device).</p> <p>Anyone have any insights?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload