Question
Streaming stored content with FMS2... Please help.
Hello,
I am running the free FMS2 server for development purposes, hoping
that it proves well enough to buy a licensed product before we launch
our product to assist in streaming videos and mp3s (we might even
implement some other applications in Flash 8 Pro given that we already
bought a copy of Flash 8 Pro for this task alone).
Current, I am only able to stream live events with FMS 2.0.4 r79. The
next part of my project adds the availabilty of stored content (aka
on-demand; from what I understand). However, all of my attempts at
streaming .flv files from FMS2 by using either FLVPlayback component
with a contentPath set to
rmtp://x.x.x.x/test/streams/cafe_townsend_chef
I have omitted my server's public IP address.
In another test, I tried adding the .flv file extension to
contentPath. My clients fail to connect with either format.
I have also used the stage and actionscript to test the stream with,
it still fails, but here is a sample of my code with tracing:
connection_nc = new NetConnectio();
connect_nc.onStatus = function(info){
trace("level is: " + info.level + "\n" + "code is: " + info.code";)
}
connection_nc.connect"(rtmp:/x.x.x.x/test/streams");
var play_ns:NetStream = new NetStream(connection_nc);
theVideo.attachVideo(play_ns);
play_ns.play("cafe_townsend_chef.flv");
play_ns.onStatus = function(info) {
trace("level is: " + info.code);
trace("description is: " + info.description);
trace("details are: " + info.details);
}
In this .fla, I have "Video 1" on the stage with the name property set
to theVideo.
When I "Control->Test Movie" in Flash Pro 8, that produces these
results (no videos or audio plays):
level is: status
code is: NetConnection.Connect.Success
level is: NetStream.Play.Reset
description is: Playing and resetting cafe_townsend_chef.flv.
details are: cafe_townsend_chef.flv
level is: NetStream.Play.Start
description is: Started playing cafe_townsend_chef.flv.
details are: cafe_townsend_chef.flv
At this point, fms2_console.swf "View Applications" is showing a
connection to "test" app, with "stream" as an instance. I show one
client using rtmp with 6213/6813 bytes in/out, a recent Connection
Time, and 2/4 messages in/out.
I am using port 1935 by default and ability to be resource efficient
with applications, which has been opened on the firewalls protecting
our server which can be seen by the NetConnection.Connect.Success
statement from what I have read. I am able to stream live events from
this server during development and they work.
During testing for stored content (what I am trying to accomplish
now), I have also turned off apache, which normally binds to port 80
and added the following lines to my conf/_defaultRoot_/Adaptor.xml
defined inside <HostPortList></HostPortList> directives:
<!-- <HostPort name="edge1" ctl_channel=":19350">${ADAPTOR.HOSTPORT}</HostPort> -->
<HostPort name="edge1" ctl_channel=":19350">:1935</HostPort>
<!-- Ready for testing when Apache is turned off -->
<HostPort name="edge2" ctl_channel=":19351">:80</HostPort>
After restarting FMS2, this only produces a slightly different result
when using http instead of rmtp in any/all of the code above. In
firefox, the status bar just keeps a "Waiting for x.x.x.x...", but
never loads content in the player and doesn't show. In IE, I get a box
to click on to play content, after clicking, it just reports "Done" on
the status bar.
I thought this was a Flash Pro 8 issue regarding my code (since this
is my first project using Adobe's products), but I have tried several
examples around Adobe's site (tutorials, live docs, FMS2 development
pdf provided with the server package), plus some off-site ones found
by googling. I opened a case with Adobe's Flash Pro 8 Customer Service
team and they say it's an FMS2 problem after running some tests
against my server.
I have also traded out the .flv used for testing to verify it is not
the source of my problems.
Does anyone know my problem and have a fix or just have some advice on
where to go from here?
Hopefully Adobe staff can shed some light on this.
Let me know if there are blanks I still need to fill in.
Thanks.
I am running the free FMS2 server for development purposes, hoping
that it proves well enough to buy a licensed product before we launch
our product to assist in streaming videos and mp3s (we might even
implement some other applications in Flash 8 Pro given that we already
bought a copy of Flash 8 Pro for this task alone).
Current, I am only able to stream live events with FMS 2.0.4 r79. The
next part of my project adds the availabilty of stored content (aka
on-demand; from what I understand). However, all of my attempts at
streaming .flv files from FMS2 by using either FLVPlayback component
with a contentPath set to
rmtp://x.x.x.x/test/streams/cafe_townsend_chef
I have omitted my server's public IP address.
In another test, I tried adding the .flv file extension to
contentPath. My clients fail to connect with either format.
I have also used the stage and actionscript to test the stream with,
it still fails, but here is a sample of my code with tracing:
connection_nc = new NetConnectio();
connect_nc.onStatus = function(info){
trace("level is: " + info.level + "\n" + "code is: " + info.code";)
}
connection_nc.connect"(rtmp:/x.x.x.x/test/streams");
var play_ns:NetStream = new NetStream(connection_nc);
theVideo.attachVideo(play_ns);
play_ns.play("cafe_townsend_chef.flv");
play_ns.onStatus = function(info) {
trace("level is: " + info.code);
trace("description is: " + info.description);
trace("details are: " + info.details);
}
In this .fla, I have "Video 1" on the stage with the name property set
to theVideo.
When I "Control->Test Movie" in Flash Pro 8, that produces these
results (no videos or audio plays):
level is: status
code is: NetConnection.Connect.Success
level is: NetStream.Play.Reset
description is: Playing and resetting cafe_townsend_chef.flv.
details are: cafe_townsend_chef.flv
level is: NetStream.Play.Start
description is: Started playing cafe_townsend_chef.flv.
details are: cafe_townsend_chef.flv
At this point, fms2_console.swf "View Applications" is showing a
connection to "test" app, with "stream" as an instance. I show one
client using rtmp with 6213/6813 bytes in/out, a recent Connection
Time, and 2/4 messages in/out.
I am using port 1935 by default and ability to be resource efficient
with applications, which has been opened on the firewalls protecting
our server which can be seen by the NetConnection.Connect.Success
statement from what I have read. I am able to stream live events from
this server during development and they work.
During testing for stored content (what I am trying to accomplish
now), I have also turned off apache, which normally binds to port 80
and added the following lines to my conf/_defaultRoot_/Adaptor.xml
defined inside <HostPortList></HostPortList> directives:
<!-- <HostPort name="edge1" ctl_channel=":19350">${ADAPTOR.HOSTPORT}</HostPort> -->
<HostPort name="edge1" ctl_channel=":19350">:1935</HostPort>
<!-- Ready for testing when Apache is turned off -->
<HostPort name="edge2" ctl_channel=":19351">:80</HostPort>
After restarting FMS2, this only produces a slightly different result
when using http instead of rmtp in any/all of the code above. In
firefox, the status bar just keeps a "Waiting for x.x.x.x...", but
never loads content in the player and doesn't show. In IE, I get a box
to click on to play content, after clicking, it just reports "Done" on
the status bar.
I thought this was a Flash Pro 8 issue regarding my code (since this
is my first project using Adobe's products), but I have tried several
examples around Adobe's site (tutorials, live docs, FMS2 development
pdf provided with the server package), plus some off-site ones found
by googling. I opened a case with Adobe's Flash Pro 8 Customer Service
team and they say it's an FMS2 problem after running some tests
against my server.
I have also traded out the .flv used for testing to verify it is not
the source of my problems.
Does anyone know my problem and have a fix or just have some advice on
where to go from here?
Hopefully Adobe staff can shed some light on this.
Let me know if there are blanks I still need to fill in.
Thanks.
