Skip to content

saveToDevice(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

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
ParameterTypeDescription
urlstringThe URL of the media file to save.