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_DISPLAYEXTERNAL_WIFI_DISPLAY
Property Details
| Property | Description |
|---|---|
EXTERNAL_HDMI_DISPLAY | Wired external display connection or disconnection state via HDMI cable |
EXTERNAL_WIFI_DISPLAY | Display 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
STARTINGSTARTEDRESUMEEND
Property Details
| Property | Description |
|---|---|
STARTING | State in which a Chromecast connection request has been initiated |
STARTED | State in which the Chromecast connection is established and media is being transferred |
RESUME | State in which a previously interrupted Chromecast session has been resumed |
END | State 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 instancebAvailable: 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 instancestate: 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