这是我的问题, 我正在尝试将我的Android应用程序连接到red5服务器, 这是我的代码
import com.al.rtmp.client.RtmpClient;
import com.al.rtmp.client.RtmpStream;
import com.al.rtmp.client.RtmpStreamFactory;
import com.al.rtmp.client.data.MetaData;
import com.al.rtmp.client.data.RTMPData;
import com.al.rtmp.client.data.VideoCodec;
import com.al.rtmp.message.Metadata;
...
public class MainActivity extends Activity{
RtmpStream stream = null;
String server = "rtmp://192.168.0.168/red5test/";
...
public void mytestfunction(){
.
.
.
stream = RtmpStreamFactory.getRtmpStream();
stream.setClient(this);
stream.connect(server);
.
.
.
}
}
Eclipse没有显示错误,但是应用程序在stream.connect(server)
崩溃运行时
在log cat上,错误显示为
Android Runtime at yes.x.g(Unknown source)
Android RUntime at yes.x.connect(Unknown source);
提前致谢