[Red5devs] Response to an old post: "Live streaming without swf"
Posco, TSO Fung Po
posco.tso at gmail.com
Thu Jul 31 02:52:31 PDT 2008
Hi there,
With response to "Live streaming without swf"
http://osflash.org/pipermail/red5devs_osflash.org/2008-May/003582.html.
I traced the video and I found the problem was caused by lost of Time
Stamp info. And I solved by just adding few lines of code:
if (IoConstants.TYPE_METADATA == dataType)
msg.setBody(new Notify(frame));
else if (IoConstants.TYPE_VIDEO == dataType)
{
//msg.setBody(new VideoData(frame));
VideoData videoData = new VideoData(frame);
videoData.setTimestamp(tag.getTimestamp());
msg.setBody(videoData);
}
else if (IoConstants.TYPE_AUDIO == dataType)
{
AudioData audioData = new AudioData(frame);
audioData.setTimestamp(tag.getTimestamp());
msg.setBody(audioData);
//msg.setBody(new AudioData(frame));
}
else
logger.debug("Unknown data type: " + dataType);
publishStreamData(streamId, msg);
Now you can publish live stream from java client to Red5 server. (not
tested with adobe fms yet)
--
Cheers,
Posco
Richard M. Nixon - "It is necessary for me to establish a winner
image. Therefore, I have to beat somebody."
More information about the Red5devs
mailing list