Ejemplo n.º 1
0
 protected override MessageBase CopyImpl(MessageBase clone)
 {
     // Instantiate the clone, if a derived type hasn't already.
     if (clone == null)
     {
         clone = new ResetMessage();
     }
     return(base.CopyImpl(clone));
 }
Ejemplo n.º 2
0
		/// <summary>
		/// Send reset message
		/// </summary>
		private void SendReset() {
			if (_isPullMode) {
				Ping ping1 = new Ping();
				ping1.PingType = (short)Ping.RecordedStream;
				ping1.Value2 = this.StreamId;

				RtmpMessage ping1Msg = new RtmpMessage();
				ping1Msg.body = ping1;
				DoPushMessage(ping1Msg);
			}

			Ping ping2 = new Ping();
			ping2.PingType = (short)Ping.StreamBegin;
			ping2.Value2 = this.StreamId;

			RtmpMessage ping2Msg = new RtmpMessage();
			ping2Msg.body = ping2;
			DoPushMessage(ping2Msg);

			ResetMessage reset = new ResetMessage();
			DoPushMessage(reset);
		}
Ejemplo n.º 3
0
		protected override MessageBase CopyImpl(MessageBase clone) {
			// Instantiate the clone, if a derived type hasn't already.
			if (clone == null)
				clone = new ResetMessage();
			return base.CopyImpl(clone);
		}