Video
To play a video in an HTML in-app message, include the following
<video>
element in your HTML, and replace the video names with your file’s name (or the remote asset’s URL). You can find other possible<video>
options on MDN Web Docs.
1
2
3
4
5
<video class="video" autoplay muted playsinline controls>
<source src="https://video-provider.com/YOUR_VIDEO_FILE.mp4" type="video/mp4">
<source src="https://video-provider.com/YOUR_VIDEO_FILE.ogg" type="video/ogg">
Your device does not support playing this video.
</video>
To use a local video asset, be sure to include this file when uploading assets to your campaign.
note:
Video content is only available when the device has a reasonable network speed, unless the video is sourced from the device locally.
Android considerations
To embed video and other HTML5 content in HTML in-app messages on Android, hardware acceleration is required to be enabled in the Activity where the in-app message is displayed. For more information, refer to the Android developer guide.
iOS considerations
To support iOS devices:
- You must include the
playsinline
attribute because full screen playback is not supported at this time. - iOS does not support auto-play by default. To update this default option, you can modify the
ABKInAppMessageHTMLViewController
New Stuff!