public void OnVideo(RTMPMessage msg)
{
if (timestampBase<0 && msg.Timestamp>0) {
timestampBase = msg.Timestamp;
}
this.connection.PostMessage(3,
new RTMPMessage(
msg.MessageType,
msg.Timestamp - Math.Max(timestampBase, 0),
this.connection.StreamId,
msg.Body)
);
}