Video playback switches to fallback with MEDIA_ELEMENT_ERROR in AEM Screens

Adobe Experience Manager (AEM) Screens may switch video playback to a fallback thumbnail when the player can’t load or interpret the video, resulting in MEDIA_ELEMENT_ERROR: Format error. This may occur because of format compatibility, caching, network connectivity, or file access issues. To resolve the issue, clear the device cache, verify video compatibility and asset access, and monitor for recurrence.

Description description

Environment

Adobe Experience Manager (AEM) Screens (all versions)

Issue/Symptoms

  • A display device intermittently switches to fallback playback for a video asset.

  • The video appears valid and accessible, but playback fails at the start and displays a fallback thumbnail.

  • Logs contain errors similar to:

    [ Playback] onError(): Error occurred on video with src: [ video asset URL] The video source could not be loaded or is in a format not understood by the player.: MEDIA_ELEMENT_ERROR: Format error. Video current time when error occurred: 0
    [ Playback] onError(): Switching to fallback thumbnail. Thumbnail: [ thumbnail URL] for video with src: [ video asset URL]

  • Clearing the device cache temporarily resolves the issue, but the issue may recur.

Root cause

The error occurs when the video player can’t load or interpret the video file. Possible causes include format incompatibility, caching issues, or transient network or file access problems. Clearing the cache may temporarily resolve the issue, but underlying compatibility or access issues should be investigated if the problem persists.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Clear the device cache:

    • Remove cached video assets and thumbnails from the affected device.
    • Restart the device and test video playback again.
  2. Validate video format compatibility:

    • Ensure that the video is encoded in a format supported by the playback device and browser, for example, H.264-encoded MP4.
    • Play the video directly in a browser using the asset URL to confirm compatibility.
  3. Check for network or file access issues:

    • Verify that the device can access the video asset URL without interruption.
    • Ensure that there are no intermittent connectivity issues or file permission problems.
  4. Monitor for recurrence. If the issue occurs again after clearing the cache, collect updated logs and asset details for further investigation.

  5. Verify that the video plays as expected without switching to the fallback thumbnail.

recommendation-more-help
experience-cloud-kcs-help-kbarticles