async def play_url(self, url, position=<NUM_LIT:0>):
headers = {'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:Content-Type>': '<STR_LIT>'}<EOL>body = {'<STR_LIT>': url, '<STR_LIT>': position}<EOL>address = self._url(self.port, '<STR_LIT>')<EOL>_LOGGER.debug('<STR_LIT>', url, address)<EOL>resp = None<EOL>try:<EOL><INDENT>resp = await self.session.post(<EOL>address, headers=headers,<EOL>data=plistlib.dumps(body, fmt=plistlib.FMT_BINARY),<EOL>timeout=TIMEOUT)<EOL>await self._wait_for_media_to_end()<EOL><DEDENT>finally:<EOL><INDENT>if resp is not None:<EOL><INDENT>resp.close()<EOL><DEDENT><DEDENT>
Play media from an URL on the device.