By fully customizing your native Android player UI using the Android Player SDK, you can create a unique and seamless playback experience for your users.
Step 1: Create a Custom UI
Follow the provided sample codes to disable the official UI and create a custom one:
/**
* Integrate with UniView
*/
// Xml file
<com.kkstream.playcraft.paas.player.mobile.UniView
...
app:disableControlPanel="true" />
<xxxx.CustomizeControlPanel
... />
/**
* Integrate with UniTvFragment
*/
// Xml file
<fragment
android:id="@+id/uni_tv_fragment"
android:name="com.kkstream.playcraft.paas.player.stb.UniTvFragment"
... />
<fragment
android:id="@+id/custom_tv_fragment"
android:name="xxxx.CustomTvFragment"
... />
// Kotlin file
vali uniTvFragment = supportFragmentManager.findFragmentById(R.id.uni_tv_fragment) as UniTvFragment
uniTvFragment.setup(uniPlayer, true)
Step 2: Add Customized UI Components
Use the provided APIs to create controllers on your player UI for custom playback behavior.
What's More
- To ensure a smooth playback experience, check the compatible operating systems and browsers.
- To track the playback, refer to the Playback Event documentation.
- To enable advanced features, refer to the following guides: