is possible to use RecordingListener from a client connection

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

is possible to use RecordingListener from a client connection

Gunaratnam Kuhajeyan
is possible to use RecordingListener from a client connection? 

my code like follows fails because i can not get IScope from RTMPConnection


client.connect(sourceHost, sourcePort, defParams, new IPendingServiceCallback() {
 
public void resultReceived(IPendingServiceCall call) {
 
System.out.println("connectCallback");
 
ObjectMap<?, ?> map = (ObjectMap<?, ?>) call.getResult();
 
String code = (String) map.get("code");
 
if ("NetConnection.Connect.Rejected".equals(code)) {
 
System.out.printf("Rejected: %s\n", map.get("description"));
 client
.disconnect();
 
}
 
else if ("NetConnection.Connect.Success".equals(code)) {
 
// 1. Wait for onBWDone
 client
.createStream(new CreateStreamCallback());
 
Object result = call.getResult();
 
System.out.println("Red5ClientTest.main()");
 
}
 
else {
 
System.out.printf("Unhandled response code: %s\n", code);
 
}
 
}
 
});
 
RTMPConnection connection = client.getConnection();
 
 
RecordingListener listner = new RecordingListener();
 listner
.init(connection, name, true);

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.