From 425a92324bf7a3927c021ed71330e0dcca441ff6 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 17 Aug 2010 23:32:17 +0200 Subject: describe suspending/resuming the audio stream --- airtunes2.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'airtunes2.rst') 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 ~~~~~~~~~~ -- cgit v1.2.3-59-g8ed1b