[Red5devs] please help on "writeObject caught NoSuchFieldException"
Posco, TSO Fung Po
posco.tso at gmail.com
Tue Jul 22 03:12:54 PDT 2008
Hi there,
I want to publish a video clip say, IronMan.flv, to a Red5 server as
an emulated realtime streaming service. But after running
client.invoke("publishStreamData",param,this); I got a :
17:54:26.218 [AnonymousIoService-4] DEBUG org.red5.io.amf.Output -
writeObject caught NoSuchFieldException,
I am very new to Red5 so I have no idea about this exception, could
anyone help? and why client.publishStreamData(streamId, videoMsg);
does not work (that's why I use
client.invoke("publishStreamData",param,this); )
here is the piece of code:
File file = new File("IronMan.flv");
FLVReader reader;
try {
reader = new FLVReader(file);
while(reader.hasMoreTags()) {
ITag tag = reader.readTag();
ByteBuffer frame = tag.getBody();
VideoData videodata = new VideoData(frame);
RTMPMessage videoMsg = new RTMPMessage();
videoMsg.setBody(videodata);
Object[] param = {streamId,videoMsg};
//client.publishStreamData(streamId, videoMsg);
client.invoke("publishStreamData",param,this);
}
} catch (IOException e) {
e.printStackTrace();
}//end catch
Cheers,
Posco
More information about the Red5devs
mailing list