Cloud hosted multimedia file handling on mobile devices
A method for handling a cloud hosted multimedia file on mobile devices includes receiving a message with a link to multimedia file, extracting the link and determining an address of multimedia server, contacting the multimedia server to determine a file type and determining whether the file type is supported.
1. A method for handling a cloud hosted multimedia file on mobile devices comprising:
receiving a message with a link to multimedia file;
extracting the link and determining an address of multimedia server;
contacting the multimedia server to determine a file type using a HEAD command;
determining whether the file type is supported; and
determining that the message is spam by detecting that a file size of the multimedia file as reported in a response to the HEAD command is not within a predetermined range for the file type as reported in the response to the HEAD command.
2. The method of claim 1 further comprising displaying the link in response to determining that the file type is not supported.
3. The method of claim 1 further comprising determining whether the multimedia file is oversized.
4. The method of claim 1 further comprising downloading the multimedia file as a thumbnail in response to determining that the file type is supported.
5. The method of claim 1 further comprising displaying playback controls for an audio multimedia file in response to determining that the file type is supported.
6. The method of claim 1 further comprising:
receiving a user request via a tap on icon; and
displaying the multimedia file.
7. The method of claim 1 further comprising determining that the message is spam by detecting that an ETag of the multimedia file as reported in a response to the HEAD command is being used in an attempt to repeatedly send the multimedia file with different URLs.
8. A non-transitory computer readable storage medium for storing thereon computer readable instructions for a method for:
receiving a message with a link to multimedia file;
extracting the link and determining an address of multimedia server;
contacting the multimedia server to determine a file type using a HEAD command;
determining whether the file type is supported; and
determining that the message is spam by detecting that a file size of the multimedia file as reported in a response to the HEAD command is not within a predetermined range for the file type as reported in the response to the HEAD command.
9. The non-transitory computer readable storage medium of claim 8 , further comprising computer readable instructions for a method for:
displaying the link in response to determining that the file type is not supported.
10. The non-transitory computer readable storage medium of claim 8 , further comprising computer readable instructions for a method for:
determining whether the multimedia file is oversized.
11. The non-transitory computer readable storage medium of claim 8 , further comprising computer readable instructions for a method for:
downloading the multimedia file as a thumbnail in response to determining that the file type is supported.
12. The non-transitory computer readable storage medium of claim 8 , further comprising computer readable instructions for a method for:
displaying playback controls for an audio multimedia file in response to determining that the file type is supported.
13. The non-transitory computer readable storage medium of claim 8 , further comprising computer readable instructions for a method for:
receiving a user request via a tap on icon; and
displaying the multimedia file.
14. The non-transitory computer readable storage medium of claim 10 , further comprising computer readable instructions for a method for:
determining that the message is spam by detecting that an ETag of the multimedia file as reported in a response to the HEAD command is being used in an attempt to repeatedly send the multimedia file with different URLs.