Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
mpbiehn #1
No video from FMS stream
Hello,
I'm unable to stream a stored flv on Flash Media Server.
I created a sample folder in the applications directory. Added main.asc and
video2.flv.
I created a fla locally with a video object (named sample_video) and the
following code on the first frame of the main timeline.
var nc:NetConnection = new NetConnection();
nc.onStatus = function(info){
trace1("NetConnection.onStatus called: ("+getTimer()+" ms)");
for (var prop in info) {
trace1("\t"+prop+":\t"+info[prop]);
}
trace1("");
}
nc.connect("rtmp://servername.com/sample"); \\where servername
is the actual name of our server.
var ns:NetStream = new NetStream(nc);
var sample_video:Video;
ns.setBufferTime(0);
sample_video.attachVideo(ns);
ns.play("video2.flv");
ns.onStatus = function(info){
trace1("NetStream.onStatus called: ("+getTimer()+" ms)");
for (var prop in info) {
trace1("\t"+prop+":\t"+info[prop]);
}
trace1("");
}
Here's the output:
NetConnection.onStatus called: (150 ms)
description: Connection succeeded.
code: NetConnection.Connect.Success
level: status
NetStream.onStatus called: (165 ms)
clientid: 89429232
details: video2.flv
description: Playing and resetting video2.flv.
code: NetStream.Play.Reset
level: status
NetStream.onStatus called: (165 ms)
clientid: 89429232
details: video2.flv
description: Started playing video2.flv.
code: NetStream.Play.Start
level: status
Looks like everything is okay but I don't get any video in my output. Also,
the fms2_console says that it is playing live video2.flv. How do I change this
to "stored".
Any help would be greatly appreciated as I have search the web for a full day
and no luck getting this to work. The examples are geared more towards live
streaming, haven't found one yet for streaming just a plain old flv.
mpbiehn Guest
-
How to stream video from FCS/FMS on Flex 2.0?
Has anyone figured out how to stream video from FCS/FMS on Flex 2.0? I've been working with all the sample code I can find, especially the FLEX... -
Editing video stream on the fly
Hi, Is it possible to edit a video stream on the client side before it comes to the server? I want to add some graphics (vectors) to the video... -
Can I attach video from one stream to another?
Hi! How can I something like: a = new NetStream(nc1); a.play(); ...... b = new NetStream(nc2); b.attachVideo(a); b.publish() The following... -
video capture card for Flash live video stream
Hi! I just brought a new video capture card - Osprey-210, When I try to stream the live video, I can see the card in flash player's setting box,... -
How to hide Video stream URL ?
I need to hide my video streaming source URL such as mms:\\123.11.123.24\test.wmv I know how to hide image source using another ASP at the <img...



Reply With Quote

