I found it:

Manolo R.G. escribió:
> Can someone tell me why the code above returns nothing (not even an 
> error), or how can i get the published streams names?
> (sorry for my english and thanks)
>
> JAVA CODE:
>
> import java.util.Iterator;    
> import org.red5.server.adapter.ApplicationAdapter;
>     
> public class Application extends ApplicationAdapter {
>     public Iterator<String> getStreams(){
>         return getBroadcastStreamNames();
>     }
> }
>
> FLASH CODE:
>
> webcam = Camera.get(0);
> video.attachVideo(webcam);
>
> nc = new NetConnection();
> nc.connect("rtmp://localhost/cam");
> nc.onStatus = function(info) {
>     trace(info.code);
> }
> ns = new NetStream(nc);
> ns.attachVideo(webcam);
> ns.publish("webcam","live");
> ns.onStatus = function(info){
>     trace(info.code);
>     nc.call("getStreams",nc);
> }
>
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   
I have to get results throurgh flash client onResult function not onStatus

nc.onResult = function(info) {
    for (var i=0; i<info.length; i++) {
        trace(info[i]);
    }
}

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to