Skip to main content

KollusContent

KollusContent Class

com.kollus.sdk.media.content.KollusContent

A class that comprehensively manages all details required for playback, including content metadata, security settings, subtitle and chapter information.

Classes & Enums

  • class ChapterInfo
  • class ChattingInfo
  • enum ContentType
  • class SubtitleInfo

Public Methods

list
  • KollusContent()
  • KollusContent(Parcel in)
  • void copy(KollusContent content)
  • String getAiScriptPath()
  • int getBitrate()
  • String getCaptionStyle()
  • List<ChapterInfo> getChapterInfos()
  • ChattingInfo getChattingInfo()
  • String getContentProvierKey()
  • String getContentProvierName()
  • ContentType getContentType()
  • String getDefaultChapterLanguage()
  • String getDetailInfoUrl()
  • boolean getDisablePlayRate()
  • boolean getDisableTvOut()
  • boolean getDownloadError()
  • int getDownloadPercent()
  • int getDuration()
  • String getErrorAdditionalInfo()
  • String getErrorReportUrl()
  • int getExpirationCount()
  • int getExpirationDate()
  • int getExpirationPlaytime()
  • boolean getExpirationRefreshPopup()
  • long getFileSize()
  • boolean getForceNScreen()
  • String getLicenseKey()
  • String getLicenseToken()
  • String getLicenseUrl()
  • String getLocalMediaUrl()
  • int getMaxPlaybackRate()
  • String getMediaContentKey()
  • String getMediaContentKeyMD5()
  • String getMediaUrl()
  • boolean getMute()
  • String getNextEpisodeCallbackData()
  • String getNextEpisodeCallbackUrl()
  • int getNextEpisodeShowTime()
  • String getOriginThumbnailPath()
  • int getPlaySectionEnd()
  • int getPlaySectionStart()
  • int getPlaytime()
  • long getReceivedSize()
  • long getReceivingSize()
  • int getRepeatPlaySectionEnd()
  • int getRepeatPlaySectionStart()
  • String getScreenShotPath()
  • boolean getSeekable()
  • int getSeekableEnd()
  • String getServiceProviderMessage()
  • String getSkinString()
  • int getSkipSec()
  • int getStartAt()
  • String getSubCourse()
  • Vector<SubtitleInfo> getSubtitleInfo()
  • Vector<SubtitleInfo> getSubtitleSubInfo()
  • String getThumbnailPath()
  • int getTotalExpirationCount()
  • int getTotalExpirationPlaytime()
  • String getUalErrorReportUrl()
  • String getUploadFileKey()
  • int getUriIndex()
  • int getVideoHeight()
  • int getVideoWaterMarkAlpha()
  • String getVideoWaterMarkCode()
  • int getVideoWaterMarkFontColor()
  • int getVideoWaterMarkFontSize()
  • int getVideoWaterMarkHideTime()
  • int getVideoWaterMarkShowTime()
  • int getVideoWaterMarkSpace()
  • int getVideoWidth()
  • boolean hasAudioWaterMark()
  • boolean isAudioFile()
  • boolean isCompleted()
  • boolean isContentExpirated()
  • boolean isDisableBackgroundAudio()
  • boolean isDownloadCanceled()
  • boolean isDownloading()
  • boolean isDrm()
  • boolean isIgnoreZero()
  • boolean isIntro()
  • boolean IsInvalidFileSize()
  • boolean isLive()
  • boolean isLoaded()
  • boolean isNextEpisodeShowButton()
  • boolean isThumbnailDownloadSync()
  • boolean isThumbnailEnable()
  • boolean isVideoWaterMarkRandom()
  • boolean isVmCheck()
  • boolean isVr()
  • void setByJson(String jsonString)
  • void setContentExpired(boolean expired)
  • void setContentType(ContentType type)
  • void setDownloadCanceled()
  • void setDownloadCompleted(boolean complete)
  • void setDownloadError(boolean bError)
  • void setDownloading(boolean downloading)
  • void setDownloadPercent(int percent)
  • void setFileSize(long fileSize)
  • void setForDownload(Parcel in)
  • void setForPlay(Parcel in)
  • void setLoaded(boolean bLoaded)
  • void setLocalMediaUrl(String mediaUrl)
  • void setMediaContentKey(String key)
  • void setPlaytime(int playtime)
  • void setReceivedSize(long receiveSize)
  • void setReceivingSize(long receiveSize)
  • void setServiceProviderMessage(String message)
  • void setUriIndex(int index)
  • String toString()
  • boolean useBlockEmulator()

Static Public Properties

  • static final Parcelable.Creator<KollusContent> CREATOR

Protected Properties

  • boolean mInvalidFileSize

Constructors & Destructors

com.kollus.sdk.media.content.KollusContent.KollusContent()

Creates a content object.

com.kollus.sdk.media.content.KollusContent.KollusContent(Parcel in)

Internal SDK Only  Restores content information from a Parcel object.

  • Parameters
    • in: Content information

Method Details

void com.kollus.sdk.media.content.KollusContent.copy(KollusContent content)

Copies the current object's information to the target object.

  • Parameters
    • content: The KollusContent object to copy the content information to

String com.kollus.sdk.media.content.KollusContent.getActionStatsSecretKey()

Retrieves the encryption key used when transmitting user activity history.

  • Returns: Encryption key

String com.kollus.sdk.media.content.KollusContent.getActionStatsUrl()

Retrieves the server address to which user activity history data is transmitted.

  • Returns: Statistics collection server address

String com.kollus.sdk.media.content.KollusContent.getAiScriptPath()

Retrieves the path of the AI Speed file. If this path is not an empty string, the content supports the AI Speed feature.

  • Returns: AI Speed file storage path

int com.kollus.sdk.media.content.KollusContent.getBitrate()

Retrieves the bitrate information of the downloaded content.

  • Returns: Content bitrate value

String com.kollus.sdk.media.content.KollusContent.getCaptionStyle()

Retrieves the subtitle style information configured for the content.

  • Returns: Subtitle style configuration data

String com.kollus.sdk.media.content.KollusContent.getCencSiteId()

Retrieves the site identifier (Site ID) for Multi DRM integration.

  • Returns: DRM service Site ID

String com.kollus.sdk.media.content.KollusContent.getChannelKey()

Retrieves the unique identification key of the channel to which the content belongs.

  • Returns: Channel key

List<ChapterInfo> com.kollus.sdk.media.content.KollusContent.getChapterInfos()

Retrieves the list of chapter details for the content.

  • Returns: Chapter information list

ChattingInfo com.kollus.sdk.media.content.KollusContent.getChattingInfo()

Retrieves the instance information required for configuring the chat service.

  • Returns: Chat configuration information

String com.kollus.sdk.media.content.KollusContent.getContentProvierKey()

Internal SDK Only  Retrieves the identification key of the content provider (CP).

  • Returns: Content provider key

String com.kollus.sdk.media.content.KollusContent.getContentProvierName()

Internal SDK Only  Retrieves the name of the content provider (CP).

  • Returns: Content provider name

ContentType com.kollus.sdk.media.content.KollusContent.getContentType()

Retrieves the data type (such as DRM type) of the content.

  • Returns: Content type (ContentType value)

String com.kollus.sdk.media.content.KollusContent.getDefaultChapterLanguage()

Retrieves the default chapter language code configured for the content.

  • Returns: Language code

String com.kollus.sdk.media.content.KollusContent.getDetailInfoUrl()

Retrieves the URL of the detail information page for the downloaded content.

  • Returns: Detail information URL

boolean com.kollus.sdk.media.content.KollusContent.getDisablePlayRate()

Retrieves whether playback speed adjustment is restricted for the content.

  • Returns: Playback speed restriction status (true: playback speed adjustment not available, false: playback speed adjustment available)

boolean com.kollus.sdk.media.content.KollusContent.getDisableTvOut()

Retrieves whether external display output (TV-Out, HDMI, etc.) is blocked.

  • Returns: Output block status (true: output blocked, false: output allowed)

boolean com.kollus.sdk.media.content.KollusContent.getDownloadError()

Checks whether an error occurred during content download.

  • Returns: Whether an error occurred

int com.kollus.sdk.media.content.KollusContent.getDownloadPercent()

Retrieves the current download progress of the content.

  • Returns: Download progress (%)

int com.kollus.sdk.media.content.KollusContent.getDuration()

Retrieves the total length of the content.

  • Returns: Total content length (ms)

String com.kollus.sdk.media.content.KollusContent.getErrorAdditionalInfo()

Internal SDK Only  Retrieves additional data to be transmitted to the collection server when an error occurs.

  • Returns: Additional data

String com.kollus.sdk.media.content.KollusContent.getErrorReportUrl()

Internal SDK Only  Retrieves the address of the collection server to which logs are sent when an error occurs.

  • Returns: Error server address

int com.kollus.sdk.media.content.KollusContent.getExpirationCount()

Retrieves the remaining number of playbacks available for the downloaded content.

  • Returns: Remaining playback count

int com.kollus.sdk.media.content.KollusContent.getExpirationDate()

Retrieves the playback expiration time of the downloaded content.

  • Returns: Playback expiration time data

int com.kollus.sdk.media.content.KollusContent.getExpirationPlaytime()

Retrieves the remaining playback time available for the downloaded content.

  • Returns: Remaining playback time (sec)

boolean com.kollus.sdk.media.content.KollusContent.getExpirationRefreshPopup()

Retrieves whether a user notification popup is displayed when expired content is updated.

  • Returns: Whether the popup is displayed

long com.kollus.sdk.media.content.KollusContent.getFileSize()

Retrieves the size of the locally downloaded content file.

  • Returns: File size

boolean com.kollus.sdk.media.content.KollusContent.getForceNScreen()

Retrieves whether the resume playback notification popup is forcibly displayed.

  • Returns: Whether the popup is displayed

String com.kollus.sdk.media.content.KollusContent.getLicenseKey()

Retrieves the key value used for Multi DRM license verification.

  • Returns: License key

String com.kollus.sdk.media.content.KollusContent.getLicenseToken()

Retrieves the authentication token required for Multi DRM license issuance.

  • Returns: License token

String com.kollus.sdk.media.content.KollusContent.getLicenseUrl()

Retrieves the URL of the server from which Multi DRM licenses are requested.

  • Returns: License URL

String com.kollus.sdk.media.content.KollusContent.getLocalMediaUrl()

Retrieves the actual file path or original address of the content stored in local storage.

  • Returns: Content local address

int com.kollus.sdk.media.content.KollusContent.getMaxPlaybackRate()

Retrieves the maximum allowed playback speed value for the content.

  • Returns: Maximum playback speed value

String com.kollus.sdk.media.content.KollusContent.getMediaContentKey()

Retrieves the media content key, which is the unique identifier for the content.

  • Returns: Media content key

String com.kollus.sdk.media.content.KollusContent.getMediaContentKeyMD5()

Retrieves the MD5 checksum value for integrity verification of the media content key.

  • Returns: MD5 checksum of the media content key

String com.kollus.sdk.media.content.KollusContent.getMediaUrl()

Retrieves the actual playback address or file path of the content.

  • Returns: Content path

boolean com.kollus.sdk.media.content.KollusContent.getMute()

Retrieves the mute setting status of the current content.

  • Returns: Mute status (true: muted, false: unmuted)

String com.kollus.sdk.media.content.KollusContent.getNextEpisodeCallbackData()

Retrieves the POST data to be transmitted when calling the next episode callback URL.

  • Returns: POST data string

String com.kollus.sdk.media.content.KollusContent.getNextEpisodeCallbackUrl()

Retrieves the callback URL address for checking next episode information.

  • Returns: Next episode callback URL

int com.kollus.sdk.media.content.KollusContent.getNextEpisodeShowTime()

Retrieves the point in time when the navigation button (UI) is displayed on screen when a next episode exists.

  • Returns: Button display time (sec)

String com.kollus.sdk.media.content.KollusContent.getOriginThumbnailPath()

Retrieves the path of the original representative image (thumbnail) set as default for the content.

  • Returns: Original thumbnail path

int com.kollus.sdk.media.content.KollusContent.getPlaybackLimitDuration()

Returns the remaining playback time until a specific UTC expiration time. Set via playback callback.

  • Returns: Remaining playback time (sec)

String com.kollus.sdk.media.content.KollusContent.getPlaybackLimitMessage()

Retrieves the error message to display to the user when the playback time limit (UTC-based) has expired.

  • Returns: Error message

String com.kollus.sdk.media.content.KollusContent.getPlaybackUrl()

Internal SDK Only  Retrieves the URL for transmitting QOE(Quality of Experience) playback analysis information.

  • Returns: Playback analytics URL

int com.kollus.sdk.media.content.KollusContent.getPlaySectionEnd()

Retrieves the end point of the specified playback section.

  • Returns: Playback section end time (ms)

int com.kollus.sdk.media.content.KollusContent.getPlaySectionStart()

Retrieves the start point of the specified playback section.

  • Returns: Playback section start time (ms)

int com.kollus.sdk.media.content.KollusContent.getPlaytime()

Retrieves the last playback position (resume point) of the downloaded content.

  • Returns: Last playback position (ms)

String com.kollus.sdk.media.content.KollusContent.getQoeNetworkUrl()

Internal SDK Only  Retrieves the server URL for transmitting QOE network quality information.

  • Returns: Network quality analytics URL

String com.kollus.sdk.media.content.KollusContent.getQoeSecretKey()

Internal SDK Only  Retrieves the secret key used for QOE data encryption.

  • Returns: QOE encryption key

String com.kollus.sdk.media.content.KollusContent.getQoeSessionUrl()

Internal SDK Only  Retrieves the URL for transmitting QOE session maintenance and statistics information.

  • Returns: Session analytics URL

long com.kollus.sdk.media.content.KollusContent.getReceivedSize()

Retrieves the size of content received from the server. Used to calculate the estimated completion time by comparing with the current transfer rate.

  • Returns: Size of data received

long com.kollus.sdk.media.content.KollusContent.getReceivingSize()

Retrieves the file size of content that has been physically stored on disk so far.

  • Returns: Currently downloaded file size

int com.kollus.sdk.media.content.KollusContent.getRepeatPlaySectionEnd()

Retrieves the end point of the loop section.

  • Returns: Loop section end time (ms)

int com.kollus.sdk.media.content.KollusContent.getRepeatPlaySectionStart()

Retrieves the start point of the loop section.

  • Returns: Loop section start time (ms)

String com.kollus.sdk.media.content.KollusContent.getScreenShotPath()

Retrieves the path pattern for snapshot images displayed as previews when seeking through the video. The first 3 images are for data calibration, and the actual valid snapshots are up to 1,200. (If the video length is 1,200 seconds or less, one image is generated per second.)

  • Pattern: {path}.width.height.count.{extension}
  • Returns: Snapshot image path pattern

boolean com.kollus.sdk.media.content.KollusContent.getSeekable()

Checks whether timeline seeking is available for the content.

  • Returns: (true: seekable, false: not seekable)

int com.kollus.sdk.media.content.KollusContent.getSeekableEnd()

Retrieves the maximum time range within which seeking is allowed. Even for content where full seeking is not available, seeking is possible within the range of this return value.

  • Returns: Seekable time range (sec)

String com.kollus.sdk.media.content.KollusContent.getServiceProviderMessage()

Retrieves the message delivered by the service provider (Provider) during DRM authentication. Can be called when the onDRMInfo event occurs.

  • Returns: Service provider message

String com.kollus.sdk.media.content.KollusContent.getSkinString()

Retrieves the skin data for configuring the player UI.

  • Returns: Skin data in JSON format

int com.kollus.sdk.media.content.KollusContent.getSkipSec()

Retrieves the time setting for restricting seeking at the start of content. Since the SDK does not automatically block seeking, the seek button must be disabled in the UI for the returned number of seconds.

  • Returns: Time during which seeking is restricted (sec)

int com.kollus.sdk.media.content.KollusContent.getStartAt()

Retrieves the time at which the server was connected for content playback.

  • Returns: UTC time of the connection point

String com.kollus.sdk.media.content.KollusContent.getSubCourse()

Retrieves the subtitle or lecture title of the content.

  • Returns: Content title

Vector<SubtitleInfo> com.kollus.sdk.media.content.KollusContent.getSubtitleInfo()

Retrieves the list of subtitle information included in the content.

  • Returns: Subtitle details list

Vector<SubtitleInfo> com.kollus.sdk.media.content.KollusContent.getSubtitleSubInfo()

Retrieves the list of sub subtitle (additional multilingual, etc.) information included in the content.

  • Returns: Sub subtitle information list

String com.kollus.sdk.media.content.KollusContent.getThumbnailPath()

Retrieves the local path or server address where the content's thumbnail image is stored.

  • Returns: Thumbnail address

int com.kollus.sdk.media.content.KollusContent.getTotalExpirationCount()

Retrieves the total number of playbacks initially granted for the downloaded content.

  • Returns: Total playback count

int com.kollus.sdk.media.content.KollusContent.getTotalExpirationPlaytime()

Retrieves the total playback expiration time initially granted for the downloaded content.

  • Returns: Playback expiration time (sec)

String com.kollus.sdk.media.content.KollusContent.getUalErrorReportUrl()

Internal SDK Only  Retrieves the server address to which logs are sent in UAL (User Action Log) format when an error occurs.

  • Returns: UAL error server address

String com.kollus.sdk.media.content.KollusContent.getUploadFileKey()

Retrieves the upload file key used as an identifier when uploading files to the server.

  • Returns: Upload file key

int com.kollus.sdk.media.content.KollusContent.getUriIndex()

Retrieves the unique index number that the content holds within the playlist or database.

  • Returns: Content index

int com.kollus.sdk.media.content.KollusContent.getVideoHeight()

Retrieves the vertical resolution (height) of the downloaded video content.

  • Returns: Video height (px)

int com.kollus.sdk.media.content.KollusContent.getVideoWidth()

Retrieves the horizontal resolution (width) of the downloaded video content.

  • Returns: Video width (px)

int com.kollus.sdk.media.content.KollusContent.getVideoWaterMarkAlpha()

Retrieves the transparency (alpha) setting of the video watermark displayed on the video.

  • Returns: Watermark transparency value

String com.kollus.sdk.media.content.KollusContent.getVideoWaterMarkCode()

Retrieves the text of the video watermark to be displayed on the video.

  • Returns: Watermark text

int com.kollus.sdk.media.content.KollusContent.getVideoWaterMarkFontColor()

Retrieves the font color value applied to the video watermark text.

  • Returns: Watermark color

int com.kollus.sdk.media.content.KollusContent.getVideoWaterMarkFontSize()

Retrieves the size of the video watermark text.

  • Returns: Watermark text size

int com.kollus.sdk.media.content.KollusContent.getVideoWaterMarkHideTime()

Retrieves the time interval for hiding the video watermark on screen.

  • Returns: Watermark hide time (sec)

int com.kollus.sdk.media.content.KollusContent.getVideoWaterMarkShowTime()

Retrieves the display duration of the video watermark on screen.

  • Returns: Watermark display time (sec)

int com.kollus.sdk.media.content.KollusContent.getVideoWaterMarkSpace()

Retrieves the number of screen divisions in which the video watermark is displayed.

  • Returns: Number of screen divisions

boolean com.kollus.sdk.media.content.KollusContent.isAudioFile()

Checks whether the content is a pure audio file.

  • Returns: File type (true: audio-only file, false: file containing video)

boolean com.kollus.sdk.media.content.KollusContent.isCompleted()

Checks whether the content download has been completed.

  • Returns: Download completion status (true: download complete, false: incomplete)

boolean com.kollus.sdk.media.content.KollusContent.isContentExpirated()

Checks whether the playback validity period of the downloaded content has expired.

  • Returns: Content expiration status (true: expired, false: valid)

boolean com.kollus.sdk.media.content.KollusContent.isDisableBackgroundAudio()

Retrieves whether background audio playback is forcibly restricted regardless of user settings.

  • Returns: Background playback restriction status (true: restricted, false: follows user settings)

boolean com.kollus.sdk.media.content.KollusContent.isDownloadCanceled()

Checks whether the content download has been canceled.

  • Returns: Download cancellation status (true: download canceled, false: download in progress)

boolean com.kollus.sdk.media.content.KollusContent.isDownloading()

Checks whether the content is currently being downloaded.

  • Returns: Download progress status (true: download in progress, false: not downloading)

boolean com.kollus.sdk.media.content.KollusContent.isDrm()

Checks whether DRM (Digital Rights Management) security has been applied to the content.

  • Returns: DRM application status (true: DRM applied, false: DRM not applied)

boolean com.kollus.sdk.media.content.KollusContent.isIgnoreZero()

Retrieves whether to ignore very short resume information (e.g., less than 10 seconds) and play from the beginning.

  • Returns: Resume information ignore status (true: play from beginning, false: display resume popup even if the resume position is shorter than the threshold)

boolean com.kollus.sdk.media.content.KollusContent.isIntro()

Checks whether the video is an intro video displayed before the main content plays.

  • Returns: Intro video status (true: intro video, false: not an intro video)

boolean com.kollus.sdk.media.content.KollusContent.IsInvalidFileSize()

Checks whether the physical size of the downloaded content file is invalid.

  • Returns: File size validity (true: invalid, false: valid)

boolean com.kollus.sdk.media.content.KollusContent.isLive()

Checks whether the content is a real-time live streaming video.

  • Returns: Live video status (true: live video, false: not a live video)

boolean com.kollus.sdk.media.content.KollusContent.isLoaded()

Checks whether the content metadata information has been successfully loaded for download.

  • Returns: Load status (true: load complete, false: load failed)

boolean com.kollus.sdk.media.content.KollusContent.isNextEpisodeShowButton()

Retrieves whether the navigation button is displayed within the configured time (getNextEpisodeShowTime) when in auto-play next episode mode.

  • Returns: Button display status (true: displayed, false: not displayed)

boolean com.kollus.sdk.media.content.KollusContent.isThumbnailDownloadSync()

Retrieves whether thumbnail image download is processed synchronously (Sync) when content is loaded.

  • Returns: Processing method (true: synchronous processing, false: parallel processing)

boolean com.kollus.sdk.media.content.KollusContent.isThumbnailEnable()

Retrieves whether the thumbnail display feature is enabled for the content.

  • Returns: Thumbnail activation status (true: thumbnail enabled, false: thumbnail disabled)

boolean com.kollus.sdk.media.content.KollusContent.isVideoWaterMarkRandom()

Retrieves whether the video watermark is displayed at a random position on screen.

  • Returns: Watermark position setting (true: random display, false: fixed position)

boolean com.kollus.sdk.media.content.KollusContent.isVmCheck()

Retrieves whether content playback is allowed in a virtual machine (VM) environment.

  • Returns: VM environment playback permission (true: playback allowed, false: playback blocked)

boolean com.kollus.sdk.media.content.KollusContent.isVr()

Checks whether the content is a VR (virtual reality) video.

  • Returns: VR video status (true: VR video, false: standard video)

void com.kollus.sdk.media.content.KollusContent.setByJson(String jsonString)

Internal SDK Only  Parses a JSON string and sets the content information.

  • Parameters
    • jsonString: A JSON-formatted string containing content information

void com.kollus.sdk.media.content.KollusContent.setContentExpired(boolean expired)

Sets the playback expiration status of the downloaded content.

  • Parameters
    • expired: Content expiration status (true: playback expired, false: playback available)

void com.kollus.sdk.media.content.KollusContent.setContentType(ContentType type)

Sets the content type that defines the security method or streaming format of the content.

  • Parameters
    • type: Content type (ContentType value)

void com.kollus.sdk.media.content.KollusContent.setDownloadCanceled()

Sets the download cancellation status triggered by the user. Due to the nature of asynchronous message communication, progress updates may temporarily occur even immediately after setting.


void com.kollus.sdk.media.content.KollusContent.setDownloadCompleted(boolean complete)

Sets the download completion status of the content.

  • Parameters
    • complete: Download completion status (true: complete, false: incomplete)

void com.kollus.sdk.media.content.KollusContent.setDownloadError(boolean bError)

Sets the error occurrence status during download.

  • Parameters
    • bError: Whether an error occurred

void com.kollus.sdk.media.content.KollusContent.setDownloading(boolean downloading)

Sets whether the content is currently being downloaded.

  • Parameters
    • downloading: Download in-progress status

void com.kollus.sdk.media.content.KollusContent.setDownloadPercent(int percent)

Sets the current download progress value of the content.

  • Parameters
    • percent: Download progress (%)

void com.kollus.sdk.media.content.KollusContent.setFileSize(long fileSize)

Sets the final physical file size of the downloaded content.

  • Parameters
    • fileSize: Content file size

void com.kollus.sdk.media.content.KollusContent.setForDownload(Parcel in)

Internal SDK Only  Extracts and sets the content information required for download from the received Parcel object.

  • Parameters
    • in: Parcel object containing content data for download

void com.kollus.sdk.media.content.KollusContent.setForPlay(Parcel in)

Internal SDK Only  Extracts and sets the content information required for playback from the received Parcel object.

  • Parameters
    • in: Parcel object containing content data for playback

void com.kollus.sdk.media.content.KollusContent.setLoaded(boolean bLoaded)

Sets whether the content metadata has been successfully loaded for starting a download.

  • Parameters
    • bLoaded: Load completion status

void com.kollus.sdk.media.content.KollusContent.setLocalMediaUrl(String mediaUrl)

Sets the local file path or actual playback address where the content is stored.

  • Parameters
    • mediaUrl: Media path address to set

void com.kollus.sdk.media.content.KollusContent.setMediaContentKey(String key)

Sets the media content key, which is the unique identifier for the content.

  • Parameters
    • key: Media content key

void com.kollus.sdk.media.content.KollusContent.setPlaytime(int playtime)

Sets the resume information, which is the last playback position.

  • Parameters
    • playtime: Last playback position (ms)

void com.kollus.sdk.media.content.KollusContent.setReceivedSize(long receiveSize)

Sets the size of data received from the server. Used for bitrate-based remaining time calculation and must be synchronized with the getReceivingSize value after calculation.

  • Parameters
    • receiveSize: Size of received data

void com.kollus.sdk.media.content.KollusContent.setReceivingSize(long receiveSize)

Sets the size of download data physically stored so far.

  • Parameters
    • receiveSize: Size of data currently stored

void com.kollus.sdk.media.content.KollusContent.setServiceProviderMessage(String message)

Sets the user message received from the service provider (Provider) during DRM authentication.

  • Parameters
    • message: Service provider message content

void com.kollus.sdk.media.content.KollusContent.setUriIndex(int index)

Sets the unique index number within the content list.

  • Parameters
    • index: Content index

String com.kollus.sdk.media.content.KollusContent.toString()

Returns all field information held by the KollusContent object as a string.

  • Returns: Object information

boolean com.kollus.sdk.media.content.KollusContent.useBlockEmulator()

Returns whether the emulator environment playback blocking feature is enabled.

  • Returns: Emulator blocking activation status (true: blocking enabled, false: disabled)

Property Details

static final Parcelable.Creator<KollusContent> com.kollus.sdk.media.content.KollusContent.CREATOR

Internal SDK Only  An interface implementation used to restore or create a KollusContent object from Parcel data.

Implementation example

static final Parcelable.Creator<KollusContent> CREATOR = new Parcelable.Creator<KollusContent>() {
@Override
public KollusContent createFromParcel(Parcel in) {
return new KollusContent(in);
}

@Override
public KollusContent[] newArray(int size) {
return new KollusContent[size];
}
}