Video in in-app messages
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).
To use a local video asset, be sure to include this file when uploading assets to your campaign.
To support iOS devices, you must include the playsinline
attribute since full screen playback is not supported at this time.
iOS does not support autoplay by default. To update this default option, you can modify the ABKInAppMessageHTMLViewController
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.
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>
Full screen videos will not render correctly on iOS and are not supported at this time. You must include the playsinline
attribute to show the video within the HTML message instead.