LocalVideoResource

data class LocalVideoResource(val assetId: String) : AdaptyCustomAsset

References a local video resource bundled with the app. The file should be placed under: commonMain/composeResources/files/...

The resource path can be obtained using:

val videoPath = Res.getUri("files/videos/demo_video.mp4")
AdaptyCustomAsset.LocalVideoResource(assetId = videoPath)

Parameters

assetId

URI of the local video resource (from Res.getUri()).

Constructors

Link copied to clipboard
constructor(assetId: String)

Properties

Link copied to clipboard