This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/android/samples/inline-multimedia-kotlin.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Inline Multimedia

Play videos and browse galleries embedded within a PDF document.


/*
* Copyright © 2020-2026 PSPDFKit GmbH. All rights reserved.
*
* The PSPDFKit Sample applications are licensed with a modified BSD license.
* Please see License for details. This notice may not be removed from this file.
*/
package com.pspdfkit.catalog.examples.kotlin
import android.content.Context
import com.pspdfkit.catalog.R
/**
* This example showcases the inline multimedia extension of Nutrient. The multimedia-capable document
* as well as the media files themselves are located within the asset folder.
*/
class InlineMediaExample(context: Context) :
AssetExample(context, R.string.inlineMultimediaExampleTitle, R.string.inlineMultimediaExampleDescription) {
override val assetPath: String
get() = "media/multimedia_android_v2.pdf"
}

This code sample is an example that illustrates how to use our SDK. Please adapt it to your specific use case.