circumflex
07-17-2003, 11:45 AM
Hi!
I set up a stream object on the server using:
application.myStream = Stream.get("foo");
if (application.myStream){
application.myStream.play("sample_video");
}
Now i have no idea how to access the stream at the client side.
I understand the NetStream object opens a own streaming connection... right?
With NetStream I can do that:
nc = new NetConnection();
nc.onStatus = function(info) {
startStreamSubscribe();
};
startStreamSubscribe = function () {
sub_ns = new NetStream(nc);
sub_ns.setBufferTime(20);
my_video.attachVideo(sub_ns);
sub_ns.play("sample_video");
};
nc.connect("rtmp://server/app_test");
But when a new user connect to the app he should not see the video from the beginning! So i have to set up a stream that constantly streams from the server again and again...
Puhhh, it's heavy stuff for an autodidact... :)
Regands
circumflex
I set up a stream object on the server using:
application.myStream = Stream.get("foo");
if (application.myStream){
application.myStream.play("sample_video");
}
Now i have no idea how to access the stream at the client side.
I understand the NetStream object opens a own streaming connection... right?
With NetStream I can do that:
nc = new NetConnection();
nc.onStatus = function(info) {
startStreamSubscribe();
};
startStreamSubscribe = function () {
sub_ns = new NetStream(nc);
sub_ns.setBufferTime(20);
my_video.attachVideo(sub_ns);
sub_ns.play("sample_video");
};
nc.connect("rtmp://server/app_test");
But when a new user connect to the app he should not see the video from the beginning! So i have to set up a stream that constantly streams from the server again and again...
Puhhh, it's heavy stuff for an autodidact... :)
Regands
circumflex