website logo
Ask a Developer
⌘K
πŸš€Introduction
🏒Org Set Up
πŸ„Creator Onboarding
πŸ› οΈStream Creation
πŸ–₯️Dashboard
πŸŽ™οΈStreams
πŸ“½οΈCreator Audio and Video
πŸ“šMedia Integration
πŸ—¨οΈChat
πŸ“ˆPolls, Points, & Leaderboards
πŸ€™Guest Call-In
🀫Moderator tools
πŸ–ΌοΈPicture-In-Picture
πŸ’°Monetization
🏦Tipping or In-App purchases
βœ‹Paywalls
πŸ›’Products (Live Shopping)
πŸ’΅Ads
🌐Integrations & SDKs
πŸŽ›οΈAPI
πŸ€– Android SDK
🍎iOS SDK
🎨Custom Themes
πŸ“ŠSDK Analytics
πŸ”‘Single Sign-On (SSO) (BETA)
πŸ””Webhooks (BETA)
πŸ‘­Social Features
πŸ“½οΈRecordings & Content Management
🏷️Custom Fields & Tags
πŸ“œChangelog
Docs powered byΒ archbeeΒ 

Using Your Own Player (Android)

HotMicMediaPlayer allows you to integrate your own player into your application. In order do to this, you must:

  • Include the player in your application to be played. (e.g. Bitmovin, JWPlayer, Exo).
  • Use our protocol to forward commands to your player when the HotMic protocol dictates (e.g. pause the player).
  • Send to HotMic various player events (e.g. notify HotMic the player is paused).

For using a custom player, the implementation should do the following:

  1. Extend their custom player to support the BaseHMPlayer implementation.
  2. Implement the PlayerCallback getPlayer() function

BaseHMPlayer Interface

This code shows the different values and functions in the BaseHMPlayer interface. If you have any questions about this, please contact our team.

Kotlin
|

ο»Ώ

Player Callback Interface

This function is how you define whether you want to use a custom, third party player, or the default one. Implement the getPlayer function in the callback to return a custom player. Returning null will result in the SDK using the inbuilt exo player implementation.

Kotlin
|

ο»Ώ

Other supporting classes

For your reference, these are other classes which may be helpful with your custom player implementation.

Player Event Listener

Kotlin
|

Player Error Class

Kotlin
|

Player Error Type Enum

Kotlin
|

Player State Enum

Kotlin
|

Player Progress Data

Kotlin
|
Updated 11 Jan 2023
UP NEXT
iOS SDK
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
BaseHMPlayer Interface
Player Callback Interface
Other supporting classes
Player Event Listener
Player Error Class
Player Error Type Enum
Player State Enum
Player Progress Data