diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2010-08-17 23:32:17 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2010-08-17 23:32:17 +0200 |
commit | 425a92324bf7a3927c021ed71330e0dcca441ff6 (patch) | |
tree | f45822720880c5633604beb59eae133182bb86fa /airtunes2.rst | |
parent | improve description of NTP timestamps (diff) | |
download | Airtunes2-425a92324bf7a3927c021ed71330e0dcca441ff6.tar.xz Airtunes2-425a92324bf7a3927c021ed71330e0dcca441ff6.zip |
describe suspending/resuming the audio stream
Diffstat (limited to 'airtunes2.rst')
-rw-r--r-- | airtunes2.rst | 20 |
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 ~~~~~~~~~~ |