View Full Version : Streaming problem... (strange?)
prougier
10-01-2004, 03:44 PM
well, not very original, as a subject...
So, I try streaming with MX04 pro, using thiscode
_global.ServeurStream="rtmp://10.1.22.22:1935/visionneuse/video";
var netConn:NetConnection = new NetConnection();
netConn.connect(_global.ServeurStream);
var netStream:NetStream = new NetStream(netConn);
netStream.setBufferTime(5);
this.ma_video.attachVideo(netStream);
netConn.onStatus = function(info) {
trace("Level: " + info.level + " Code: " + info.code);
}
netStream.play("MyFile.flv")
in fact, on my FCS console, the following lines appears:
Playing and reseting MyFile.flv
Started Playing MyFile.flv
and the streamed file appears in the stream window...
so , i think it should work!!! :cool:
BUT :mad:
in my swf, no video appears :( the video remains black, the bytes loaded properties too... whatever I do (seeking, pausing....), nothing appears...
any idea?
thanks by advance,
pierre.
ibizconsultants
10-02-2004, 08:39 AM
Hi prougier,
This could be due to two reasons:
1. Incorrect file path
2. You havent installed updater 1 & 2.
1. Incorrect file path:
The FLV file should be in the following path:
<flashcom install directory>/applications/<applicationname>/streams/video/myvideo.flv
2. You havent installed updater 1 & 2
Install it from www.macromedia.com
Please let me know if this helps.
iBizConsultants
Ecommerce Website Design and Development (http://www.ibizconsultants.com)
Internet Marketing Solutions (http://www.ibizconsultants.com)
prougier
10-04-2004, 09:22 AM
Hi,
first, thanks ror your response :)
so... I tried to install the updater for FCS, updater seems to work, but I still have the same problem:
In the app console, I have the following informations:
on the live log:
New NetStream created (stream ID: 1).
Playing and resetting InaEdu005.flv.
Started playing InaEdu005.flv.
on the streams:
InaEdu005.flv 1 21683840 playing live Mon Oct 4 11/04/48 GMT +0200 2004
on the statistics:
# Active 1 uptime: 0/09/19 Bytes per sec 0/
but nothing in the video...
just to be sure:
I connect this : rtmp://10.1.22.98:1935/visionneuse
my flv files are in <flashcom install directory>/visionneuse/streams/video
should I connect
rtmp://10.1.22.98:1935/visionneuse
or
rtmp://10.1.22.98:1935/visionneuse/streams/video
???
thanks by advance,
pierre.
prougier
10-04-2004, 10:18 AM
ok, I found...
the problem was quite easy to resolve...
I had'nt seen than the video had to be in the app/streams/video/ folder and to connets, you must adress app/video/ (which is quite strange, I think, but anyway...
another problem I had: I tryed
netStream.play("MyFile.flv")
in order of
netStream.play("MyFile") (the flv extension musn't be written...)
so, now, it works...
so, in order to resume (for users with the same problem that me:
- put your flv files in
<flashcom install directory>/applications/<applicationname>/streams/video/
-to connect:
_global.ServeurStream="rtmp://<Your ip>:1935/<application name>/video";
var netConn:NetConnection = new NetConnection();
netConn.connect(_global.ServeurStream);
var netStream:NetStream = new NetStream(netConn);
netStream.setBufferTime(5);
this.ma_video.attachVideo(netStream);
netConn.onStatus = function(info) {
trace("Level: " + info.level + " Code: " + info.code);
}
- and to play the flv file:
netStream.play("MyFile")
ok... hope this helps :)
Pierre.
splict
10-04-2004, 11:23 AM
prougier,
Thanks for posting your final results. I'm sure this will be helpful to some, because I know how confusing it was for me the first time I used FCS.
ibizconsultants
10-05-2004, 05:16 AM
oops, forgot to mention that.....
iBizConsultants
Ecommerce website design and development (http://www.ibizconsultants.com)
Internet Marketing Solutions (http://www.ibizconsultants.com)
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.