Skip to main content

External Display

EXTERNAL_DISPLAY_MODE Enum

com.kollus.sdk.media.MediaPlayer.EXTERNAL_DISPLAY_MODE

An enumeration class that defines the connection method and output state of external display devices.

Public Properties

  • EXTERNAL_HDMI_DISPLAY
  • EXTERNAL_WIFI_DISPLAY

Property Details

PropertyDescription
EXTERNAL_HDMI_DISPLAYWired external display connection or disconnection state via HDMI cable
EXTERNAL_WIFI_DISPLAYDisplay connection or disconnection state via wireless network

MediaRouteState Class

com.kollus.sdk.media.MediaPlayer.MediaRouteState

An enumeration class that defines the Chromecast transfer state.

Public Properties

  • STARTING
  • STARTED
  • RESUME
  • END

Property Details

PropertyDescription
STARTINGState in which a Chromecast connection request has been initiated
STARTEDState in which the Chromecast connection is established and media is being transferred
RESUMEState in which a previously interrupted Chromecast session has been resumed
ENDState in which the Chromecast connection has been terminated

OnExternalDisplayDetectListener Interface

com.kollus.sdk.media.MediaPlayer.OnExternalDisplayDetectListener

An interface for detecting the connection state of external output devices.

Public Methods

  • void onExternalDisplayDetect(EXTERNAL_DISPLAY_MODE type, boolean plugged)

Method Details

void com.kollus.sdk.media.MediaPlayer.OnExternalDisplayDetectListener.onExternalDisplayDetect(EXTERNAL_DISPLAY_MODE type, boolean plugged)

Called when a connection or disconnection event occurs for an external output device.

  • Parameters
    • type: The type of external device detected (see: EXTERNAL_DISPLAY_MODE)
    • plugged: Device connection state (true: connected, false: disconnected)

OnMediaRouteInfoListener Interface

com.kollus.sdk.media.MediaPlayer.OnMediaRouteInfoListener

An interface for receiving the connection state of Chromecast.

Public Methods

  • void onAvailable(MediaPlayer mp, boolean bAvailable)
  • void onChangedState(MediaPlayer mp, MediaPlayer.MediaRouteState state)
  • void onError(MediaPlayer mp)

Method Details

void com.kollus.sdk.media.MediaPlayer.OnMediaRouteInfoListener.onAvailable(MediaPlayer mp, boolean bAvailable)

Called when a casting-capable device is discovered on the network.

  • Parameters
    • mp: Player instance
    • bAvailable: Device availability state (true: device found, false: no device)

void com.kollus.sdk.media.MediaPlayer.OnMediaRouteInfoListener.onChangedState(MediaPlayer mp, MediaPlayer.MediaRouteState state)

Called when the Chromecast connection state changes.

  • Parameters
    • mp: Player instance
    • state: The updated state value (see: MediaRouteState)

void com.kollus.sdk.media.MediaPlayer.OnMediaRouteInfoListener.onError(MediaPlayer mp)

Called when an unexpected error occurs during the media transfer process.

  • Parameters
    • mp: Player instance