TWMMediaContent

interface TWMMediaContent

TWMMediaContent Media content used by TWMMediaView.setMediaContent

Types

ImageSize
Link copied to clipboard
enum ImageSize : Enum<TWMMediaContent.ImageSize>
Image size that could be specified by setMainImageSize.

Functions

getCurrentTime
Link copied to clipboard
abstract fun getCurrentTime(): Int
Gets the current playback position.
getDuration
Link copied to clipboard
abstract fun getDuration(): Int
Gets the duration of the media file.
getMainImage
Link copied to clipboard
abstract fun getMainImage(): Drawable?
Returns the main image to be displayed.
getVideoController
Link copied to clipboard
abstract fun getVideoController(): TWMVideoController?
Returns the media content's video controller.
hasVideoContent
Link copied to clipboard
abstract fun hasVideoContent(): Boolean
Indicates whether the media content has video content.
setMainImageSize
Link copied to clipboard
abstract fun setMainImageSize(type: TWMMediaContent.ImageSize)
Sets the preferred main image size to be displayed.