PeerCastStation.FLV.RTMP.RTMPPlayConnection.RTMPContentSink.OnVideo C# (CSharp) Method

OnVideo() public method

public OnVideo ( RTMPMessage msg ) : void
msg RTMPMessage
return void
			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)
        );
			}