Question
FLVPlayback component doesn't stream files
Guys,
I'm trying to stream or even download flv files from Flash Media Server. The FMS is located at localhost.
I'm using a FLVPlayback component to do it. I set 'my_FLVPlybk 'as instance name.
The script is just like this:
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.playing = function(eventObject:Object) {
trace("The isLive property is " + my_FLVPlybk.isLive);
};
my_FLVPlybk.addEventListener("playing", listenerObject);
my_FLVPlybk.contentPath=" http://www.myserver.com/default.flv";
//end
>> For the contentPath i just used the following strings:
my_FLVPlybk.contentPath="rtmp://localhost/myAppName/fileName"
or
my_FLVPlybk.contentPath="rtmp="//localhost/myAppName/fileName.flv"
I also tried to use the IP address instead of localhost and it just does not work as well.
In FMS application folder , inside myAppName/streams/_definst_ folder there's a file called main.asc and its content is:
load("components");
What else can I do?
Is there something else thet i should write in the main.asc file or even in the swf file that contains FLVPlayBack component ?
If so, please help me to solve this issue.
Thanks a lot.
I'm trying to stream or even download flv files from Flash Media Server. The FMS is located at localhost.
I'm using a FLVPlayback component to do it. I set 'my_FLVPlybk 'as instance name.
The script is just like this:
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.playing = function(eventObject:Object) {
trace("The isLive property is " + my_FLVPlybk.isLive);
};
my_FLVPlybk.addEventListener("playing", listenerObject);
my_FLVPlybk.contentPath=" http://www.myserver.com/default.flv";
//end
>> For the contentPath i just used the following strings:
my_FLVPlybk.contentPath="rtmp://localhost/myAppName/fileName"
or
my_FLVPlybk.contentPath="rtmp="//localhost/myAppName/fileName.flv"
I also tried to use the IP address instead of localhost and it just does not work as well.
In FMS application folder , inside myAppName/streams/_definst_ folder there's a file called main.asc and its content is:
load("components");
What else can I do?
Is there something else thet i should write in the main.asc file or even in the swf file that contains FLVPlayBack component ?
If so, please help me to solve this issue.
Thanks a lot.
