コード例 #1
0
ファイル: ResetMessage.cs プロジェクト: hakanaku2009/svn-dump
 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));
 }
コード例 #2
0
ファイル: PlayEngine.cs プロジェクト: GodLesZ/svn-dump
		/// <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);
		}
コード例 #3
0
ファイル: ResetMessage.cs プロジェクト: GodLesZ/svn-dump
		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);
		}