aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--airtunes2.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/airtunes2.rst b/airtunes2.rst
index f82f558..3f07651 100644
--- a/airtunes2.rst
+++ b/airtunes2.rst
@@ -96,6 +96,26 @@ The audio data is encapsulated in an RTP packet (see RFC3550 Section 5.1)
#. Increase timestamp by number of frames in this audio packet
+Suspending Audio Transmission
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+#. Send a ``FLUSH`` RTSP request
+#. Stop sending audio packets
+#. If the audio transmission is suspsending for too long (iTunes defines
+ "too long" as being equal to 2 seconds), send an RTSP ``TEARDOWN`` request.
+
+
+Resuming Audio Transmission
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+#. If a ``TEARDOWN`` request has been sent, the RTSP connection has to be
+ recreated, so the steps described in ``Connect`` have to be replayed
+ (the ``OPTIONS`` step can be omitted)
+#. Start sending audio as if it was a new audio stream even if the
+ ``Connect`` steps weren't replayed. This means the transmission will
+ start with a SyncPacket marked as a "first" packet, and it will be
+ followed by an Audio packet with the "first" marker too.
+
Disconnect
~~~~~~~~~~