--- title: "Media Libraries" slug: "guide-media-libraries" description: "Learn how to organize and deliver media content to mobile app users using Eleos Media Libraries. This guide details library structure and content configuration, optional API configuration, and media engagement." tags: ["Media"] updated: 2026-10-13T13:47:46Z published: 2026-10-13T13:47:46Z canonical: "docs.eleostech.com/guide-media-libraries" excludeFromExternalSearch: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.eleostech.com/llms.txt > Use this file to discover all available pages before exploring further. # Media Libraries ## Overview Media Libraries allow you to organize and display media content including: videos, PDFs and images within the mobile app. Users can access libraries through menu items or as attachments on loads. This makes it easy to distribute reference materials, training content, safety documents, and more. > [!CAUTION] > WARNING: Media items are not subject to the standard Platform data retention rules, as they are often intended to be long-lived reference materials. The Platform generates randomized URLs for media items, which means anyone who obtains the URL may be able to access it. Do not store sensitive or restricted content in media libraries. ## How It Works Media Libraries can be managed through [App Manager](https://dashboard.driveaxleapp.com/platform/libraries) or the [Media Items API](https://dev.eleostech.com/platform/platform.html#operation/postMediaItem). Each library contains one or more media items, which are uploaded and associated with the library via a unique `library_id`. There is no specific file size limit for items. > [!NOTE] > NOTE: Successful uploads depend entirely on the file's bitrate and resolution. If a video fails to upload, reduce its bitrate or resolution so it processes faster. ### Managing Media Content via API Uploading a media item is a three-step process: 1. Submit a `POST` request to create the media item placeholder, including a `media_type` property ( `pdf`, `image`, or `video` ) to receive a unique `handle`, an `upload_destination` , and a `url` . 2. Upload the binary file to the `upload_destination` returned in step 1, ensuring the `Content-Type` header matches the file being uploaded. > [!WARNING] > IMPORTANT: If the `Content-Type` header in step 2 does not correctly match the uploaded file, the media item may display or behave unexpectedly in the mobile app. - Use the exact `upload_destination` value provided, including any query string parameters. > [!NOTE] > NOTE: The `upload_destination` remains valid for up to two hours. If the upload is interrupted, repeat step 2 using the same `upload_destination` value. 3. Submit a `PUT` request to the `url` property returned in step 1 to confirm the upload is complete and move the item into the processing queue where its `status` transitions from `created` to `transcoding` to `ready`. > [!TIP] > TIP: You can check the status of the item at any time by making a [GET request](https://dev.eleostech.com/platform/platform.html#operation/getMediaItem) to the Media Items API. To include a media item in a specific library, provide the `library_id` (the “Permanent ID” from App Manager) in either the initial `POST` or the confirmation `PUT` request. Media items without a `library_id` are not accessible through App Manager, but they can still be displayed directly as a load attachment when explicitly referenced by their unique `handle`. When content changes, you can maintain your media using the following actions: - Submit a `PUT` request to update a media item's `title`, `library_id`, or `metadata`. - Submit a `DELETE` request to permanently remove a media item. > [!CAUTION] > WARNING: Deleting a media item removes it immediately. Any menu items, load attachments, or news items that reference the deleted item will no longer be displayed to users. ### Displaying Content Libraries and individual media items can be surfaced to users in two distinct ways: - **Menu Item**: Add a menu item of type `media-library` and set the `library` property to the relevant media library's `code` so users can tap the menu item to browse its contents. See our [Menus Guide](/v1/docs/guide-menus#overview) for more information. - **Load Attachment**: Reference a media item directly on a load using its `handle` or the item's ID from App Manager to display the item in the context of a specific load. > [!TIP] > TIP: Use the `sort` property on media items to control the display order within a library. Items sharing the same sort value will automatically be ordered by `created_at` in descending order. ### Tracking Engagement For media items of type `video`, you can track user engagement via the `view_metrics` property on `GET` and `PUT` responses. This property returns playback data including the username of the user who watched the video, when they watched it, and whether they completed playback or only partially viewed it. > [!NOTE] > NOTE: `view_metrics` will return up to 10,000 of the most recent view records. ## Resources #### API - [Create a Media Item](https://dev.eleostech.com/platform/platform.html#operation/postMediaItem) - [Update a Media Item](https://dev.eleostech.com/platform/platform.html#operation/putMediaItem) - [Fetch a Media Item](https://dev.eleostech.com/platform/platform.html#operation/getMediaItem) - [Delete a Media Item](https://dev.eleostech.com/platform/platform.html#operation/deleteMediaItem) #### App Manager Help Center - [Media Libraries](https://docs.eleostech.com/docs/app-manager-media-libraries)