Skip to main content
SMIL specifies how MMS media files are laid out in MMS. Telnyx generates SMIL automatically based on media_urls and text fields. Advanced users can add a smil_template parameter to the MMS message request. This template will then be used to generate a customized SMIL. Example of SMIL template:
Note that the template has parameters enclosed in double braces {{ }}. During the construction of SMIL these parameters will be automatically replaced with locations of text and media contents. In case of media, {{ 0 }} will be replaced with the location of the first URL in the media_urls list, {{ 1 }} will be replaced with the location of the second URL in the media_urls list, and so on. {{ text }} will be replaced with the location of the text content. The SMIL template must be set in smil_template parameter of the MMS request. It must be properly JSON-escaped:
Please note that many modern handsets (most notably iPhones) ignore SMIL and use their own layout algorithm.