saveToDevice(...)

saveToDevice(url : string) : void;

Opens a dialog that saves the media file at the specified URL to the user's device. Images (JPEG and PNG) and compatible videos are supported.

While this function returns immediately, it may take a short amount of time for the save dialog to appear.

The following video specification works well across a large range of devices:

  • H.264 MP4 Baseline profile
  • Optimized for streaming
  • Keep resolution low (recommended maximum of 640 x 480)
  • Max bitrate of 350 kbps

Parameters

Parameter Type Description
url string The URL of the media file to save.
zapcode branded_zapcode i