Abstract

This chapter describes how to exchange QuickTime Lists (QTLists) back and forth with a server in a two-way fashion. QuickTime provides a way, called exchanging lists, to send a QTList to a server and then receive a QTList back in an asynchronous response. “Asynchronous” means that instead of having to pause and wait for the server to respond, a movie can continue with its activities until the server response has arrived. It is crucial that it works this way; otherwise the movie will hang up for a while, especially if there is a slow network connection or if the server is down. Once the server response has arrived, a List Received event is triggered. There are two ways to exchange list data with a server: either the QueryListServer action and specify the kListQueryWantCallBack flag or the ExchangeList action can be used. The ExchangeList action is simple to use. It just takes a URL and a path to the QTList. ExchangeList sends the QTList data as an XML string in the same way that QueryListServer does when using the kListQuerySendListAsXML flag. It encodes the XML in the URL with a “qtlist" key. After sending the data, QuickTime starts a background process that constantly checks for a response to be returned from the server. When the server replies, QuickTime tries to parse the response as XML. If successful, it executes the List Received event.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.