# AS2 RTMP problems

**URL:** <https://forum.kirupa.com/t/as2-rtmp-problems/289800>\
**Category:** flash\
**Created:** [June 4, 2009, 9:24pm UTC](https://forum.kirupa.com/t/as2-rtmp-problems/289800 "2009-06-04T21:24:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greetification](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@greetification](https://forum.kirupa.com/u/greetification)\
**Post date:** [June 4, 2009, 9:24pm UTC](https://forum.kirupa.com/t/as2-rtmp-problems/289800/1 "2009-06-04T21:24:27Z")

</div>

Hi, I’ve been trying to make my a simple RTMP player test. It seems to be getting the link, but not actually playing the video.

Here is the code:

```auto

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect("rtmp://video.njspeakup.com/vod/ppd");
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);

stream_ns.play("NJDHSS_SpeakUp_Ad");

stream_ns.onStatus = function(infoObject:Object) {
        trace("NetStream.onStatus called: ("+getTimer()+" ms)");
        for (var prop in infoObject) {
            trace("	"+prop+":	"+infoObject[prop]);
        }
        trace("");
};

stream_ns.onMetaData = function(infoObject:Object) {
    for (var propName:String in infoObject) {
        trace(propName + " = " + infoObject[propName]);
    }
};

```

The onStatus is tracing back info, but like I said, nothing is playing. I have a videoPlayer on the stage with the name my\_video. The FLA is attached. (CS3)

Any help would be greatly appreciated.

Thanks!
