Note that there are some explanatory texts on larger screens.

plurals
  1. POStream a video using Flash
    text
    copied!<p>I just spent all day on this problem and I'm afraid I'm missing something.</p> <p>I have a simple mov/mp4 file on my S3 server with AVC encoding, and I have a swf file that should play it. I Found 2 ways to do that, as described <a href="http://flashascript.wordpress.com/2010/11/08/flash-custom-video-player-tutorial-part-3/" rel="nofollow noreferrer">here</a>.</p> <p>The first one is:</p> <pre><code>nc.connect(null); var ns:NetStream = new NetStream(nc); ns.play("http://url.path/movie.mov"); </code></pre> <p>This works, but it looks like it download the video and once finished it would start playing it.</p> <p>In order to use it for video streaming it says to use this:</p> <pre><code>nc.connect("http://url.path/"); var ns:NetStream = new NetStream(nc); ns.play("movie.mov"); </code></pre> <p>This code fails for me in the NetStream ctor: </p> <blockquote> <p>ArgumentError: Error #2126: NetConnection object must be connected.</p> </blockquote> <p>Questions:</p> <ol> <li>Is this the right way of doing this or am I missing something in the code?</li> <li>I found <a href="https://stackoverflow.com/questions/1541211/is-it-possible-to-do-flash-pseudo-streaming-with-s3">this thread</a> that makes me very sad, but I built some HTML video player that plays the streaming video from S#, how is this?</li> <li>Read a bit and saw that it might be because of the h264 format, that sends the metadata only in the end. Is this right? Is converting it to another format gonna solve it?</li> <li>All the flash-streaming tutorials assume I store my video with RTMP protocol, read about it a bit and seen that I can use <a href="http://www.adobe.com/products/amazon-web-services.html" rel="nofollow noreferrer">Adobe Media Server 5 on Amazon Web Services</a>. Do I have to? Is there a free solution for that or flash can only stream this protocol?</li> </ol> <p>Thx.</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