I see in Trac you applied the patch to the current code. To get it, will I have to build the latest code, or will there be a patch to 0.5? I tried to apply the patch to the code I have, but patch didn't like it.
Steven Gong <[EMAIL PROTECTED]> wrote:
On 8/2/06, Jim Wallace <[EMAIL PROTECTED]> wrote:Here's my modified sample that creates a playlist of three items. It works but is very choppy, pausing for several seconds serveral times.
Questions:
1) Is there anything I can do to get it to stream smoothly? I can't use it if it can't do one stream to one client.
We have got one patch from our users on Trac - #104. I am currently reviewing it. This patch can solve this jerky issue.2) Is 0.4 just too soon to try to run high volumes of video output through.
3) Am I posting to the right list? No one has ever replied. Or am I off topic?
It's not at all off topic. This IS the right list to post your questions as well as problems. But if you have an issue that you are sure is a bug, please feel free to submit it to Trac so that we won't forget it. :-)TIA,
jmw
--------------------
package org.red5.server.webapp.test;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.stream.IPlayItem ;
import org.red5.server.api.stream.IServerStream;
import org.red5.server.api.stream.IStreamCapableConnection;
import org.red5.server.api.stream.support.SimpleBandwidthConfigure;
import org.red5.server.api.stream.support.SimplePlayItem;
import org.red5.server.api.stream.support.StreamUtils;
public class Application extends ApplicationAdapter {
private IServerStream serverStream;
private IScope appScope;
@Override
public boolean appStart(IScope app) {
appScope = app;
serverStream = StreamUtils.createServerStream (appScope, "liveX");
SimplePlayItem item = new SimplePlayItem();
item.setStart(0);
item.setLength(10000);
item.setName("on2_flash8_w_audio");
serverStream.addItem(item);
item = new SimplePlayItem();
item.setStart(0);
item.setLength(10000);
item.setName("cort1");
serverStream.addItem(item);
item = new SimplePlayItem();
item.setStart(0);
item.setLength(10000);
item.setName("golfers");
serverStream.addItem(item);
serverStream.start();
return true;
}
@Override
public boolean appConnect(IConnection conn, Object[] params) {
// Trigger calling of "onBWDone", required for some FLV players
measureBandwidth(conn);
if (conn instanceof IStreamCapableConnection) {
IStreamCapableConnection streamConn = (IStreamCapableConnection) conn;
SimpleBandwidthConfigure sbc = new SimpleBandwidthConfigure();
sbc.setMaxBurst(8*1024*1024);
sbc.setBurst(8*1024*1024);
sbc.setOverallBandwidth(2*1024*1024);
streamConn.setBandwidthConfigure(sbc);
}
}
@Override
public void appDisconnect(IConnection conn) {
if (appScope == conn.getScope()) {
serverStream.close();
}
super.appDisconnect(conn);
}
public String test(String val){
log.debug("test called on: "+getName());
return val + val;
}
public Double add(Double a, Double b){
return a + b;
}
public Double subtract(Double a, Double b){
return a - b;
}
}
How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
Best Regards
Steven Gong _______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
