为什么服务器很容易挂掉啊?
Received(DefaultIoFilterChain.java:434) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(Def
aultIoFilterChain.java:46) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.mes
sageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.jav
a:75) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) [mina-core-
2.0.5.jar:na]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runT
ask(OrderedThreadPoolExecutor.java:780) [mina-core-2.0.5.jar:na]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runT
asks(OrderedThreadPoolExecutor.java:772) [mina-core-2.0.5.jar:na]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(
OrderedThreadPoolExecutor.java:714) [mina-core-2.0.5.jar:na]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_17]
Caused by: java.lang.ClassCastException: org.red5.server.scope.BroadcastScope ca
nnot be cast to org.red5.server.api.scope.IScope
at org.red5.server.scope.Scope.getScope(Scope.java:673) ~[red5.jar:na]
at org.red5.webapps.admin.Application.getRooms(Application.java:168) ~[A
pplication.class:na]
at org.red5.webapps.admin.Application.getScopes(Application.java:144) ~[
Application.class:na]
… 24 common frames omitted
关注一下,不错,谢谢分享。macleo
SayHi内的toStream,怎么填?具体使用麻烦请,指点指点了。。。
比如A客户端发布自己的流名称 myStream 是 abcB客户端发布自己的流名称 myStream 是 bcd那么A客户端播放对方的流名称 toStream就填B客户端的 bcdB客户端的toStream就填A客户端的 abc他们之间就实现了发布自己的流,播放对方的流
博主,再次打扰一下。最近在做一个用到speex的程序,需要实时录音并且播放,网上找到一个例子是把录音文件speex编码后进行OGG封装并写入文件后,再去文件中取得播放。现在我有一个困惑的是,在android上做speex编解码实时录音时,是不是一定要OGG封装呢?把OGG封装去掉是不是也能正常编解码播放?
为什么服务器很容易挂掉啊?
Received(DefaultIoFilterChain.java:434) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(Def
aultIoFilterChain.java:46) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.mes
sageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.jav
a:75) [mina-core-2.0.5.jar:na]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) [mina-core-
2.0.5.jar:na]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runT
ask(OrderedThreadPoolExecutor.java:780) [mina-core-2.0.5.jar:na]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runT
asks(OrderedThreadPoolExecutor.java:772) [mina-core-2.0.5.jar:na]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(
OrderedThreadPoolExecutor.java:714) [mina-core-2.0.5.jar:na]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_17]
Caused by: java.lang.ClassCastException: org.red5.server.scope.BroadcastScope ca
nnot be cast to org.red5.server.api.scope.IScope
at org.red5.server.scope.Scope.getScope(Scope.java:673) ~[red5.jar:na]
at org.red5.webapps.admin.Application.getRooms(Application.java:168) ~[A
pplication.class:na]
at org.red5.webapps.admin.Application.getScopes(Application.java:144) ~[
Application.class:na]
… 24 common frames omitted
[ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object.
有问题,按start闪退
帖个log看看呗
还有,这是很早前研究的了 建议看我最新的实现
谢谢分享