Question
Streaming Video trouble
Hello all,
I have a fairly basic problem. I am attempting to stream a single FLV video file. The audio is all that I am able to get to play at this point. The video controls have no effect on the audio playback. Not many people seem to be having this problem from what I have read, so I am sure I am making a simple mistake, but I am stumped. Here is my code.
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://server_IP/testapp/dyn/");
var my_ns:NetStream = new NetStream(my_nc);
myVideo.attachVideo(my_ns);
my_ns.play("testapp"); // When I add .flv to testapp, the audio stops working too
stop();
The FLV is named "testapp.FLV" The video playback compenent has the instance name of "myVideo." The FLV is in the applications folder under testapp/streams/dyn/. When I test the swf in flash, it outputs this message: "1000: Unable to make connection to server or to find FLV on server." However, when I go into the fms2_console, I can see the instance is activated, and the FLV is "playing live."
The samples all had a main.asc file in their apps folder. So I decided to try it as well.
I put main.asc in the testapp folder that contained the code: load( "components.asc" );
In the swf file, I had load("main.asc"); on the first line. I was guessing when I did this, but it had no effect anyway.
Does anyone have any ideas? Much appreciated...
I have a fairly basic problem. I am attempting to stream a single FLV video file. The audio is all that I am able to get to play at this point. The video controls have no effect on the audio playback. Not many people seem to be having this problem from what I have read, so I am sure I am making a simple mistake, but I am stumped. Here is my code.
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://server_IP/testapp/dyn/");
var my_ns:NetStream = new NetStream(my_nc);
myVideo.attachVideo(my_ns);
my_ns.play("testapp"); // When I add .flv to testapp, the audio stops working too
stop();
The FLV is named "testapp.FLV" The video playback compenent has the instance name of "myVideo." The FLV is in the applications folder under testapp/streams/dyn/. When I test the swf in flash, it outputs this message: "1000: Unable to make connection to server or to find FLV on server." However, when I go into the fms2_console, I can see the instance is activated, and the FLV is "playing live."
The samples all had a main.asc file in their apps folder. So I decided to try it as well.
I put main.asc in the testapp folder that contained the code: load( "components.asc" );
In the swf file, I had load("main.asc"); on the first line. I was guessing when I did this, but it had no effect anyway.
Does anyone have any ideas? Much appreciated...