AEMaaCS: Mobile devices show two play buttons in Dynamic Media videos
Dynamic Media videos in Adobe Experience Manager (AEM) as a Cloud Service show two overlapping play buttons when viewed on mobile devices. To fix this, update Viewer Preset settings, inspect initialization scripts, and ensure consistency across environments.
Description description
Environment
- Product: Adobe Experience Manager (AEM) as a Cloud Service – Sites
- Feature: Dynamic Media Viewer Presets
- Instance: Production
- Platform: Observed on physical mobile devices (for example, iPhones)
Issue/Symptoms
- Dynamic Media videos display two overlapping play buttons when viewed on mobile devices.
- This issue doesn’t occur in desktop browsers, simulated mobile environments, or staging environments.
- The duplicate play buttons are rendered with different
topproperty values in the DOM.
Resolution resolution
Follow these steps to eliminate duplicate play buttons in mobile environments:
-
Modify the Viewer Preset configuration to disable custom overlay play buttons so only the browser’s native play button appears.
- Go to Assets
>Viewer Presets in AEM. - Edit the relevant Viewer Preset.
- Disable any options related to custom overlay controls for mobile devices.
- Go to Assets
-
Check if the video player initialization script runs multiple times, which can create duplicate DOM elements.
- Use browser developer tools to monitor calls to
s7viewers.VideoVieweror similar functions. - Add diagnostic logging to track when and how often these scripts are triggered
- Use browser developer tools to monitor calls to
-
Make sure CSS and JavaScript files tied to the Viewer Preset are consistent across environments.
- Compare loaded assets using browser network tools.
- Verify that no extra scripts or styles modify
.s7iconeffector related classes.
-
If the issue affects only specific users, clear the browser cache or test in incognito/private mode.
-
Republish both the affected video assets and updated Viewer Presets to replace cached versions.
-
Note: This is an optional step.
You can apply conditional CSS rules for mobile devices to suppress custom overlays. Use:
code language-none @media (max-width: 767px) { .s7playbutton { display: none !important; } } -
Validate changes in a lower environment before deploying to production.
- Test on physical devices instead of simulators/emulators.
- Refresh pages multiple times to confirm consistent behavior.