Cross-Source media Streaming
Implementation Overview
This guide will help you to configure playback sources via external URLs for DRM videos, non-DRM videos, local media files and live streaming using the VdoCipher SDK. The setup enables seamless integration, allowing your Android app to handle various video sources efficiently while leveraging the VdoCipher SDK's secure and smooth playback features.
Media Source Setup guide
Setup VdoCipher SDK
Ensure that the VdoCipher SDK is integrated into your project. Follow the official integration guide if you haven't done so already.
Configure Non Secure Media Source or Live Streaming URL
- Java
- Kotlin
String MEDIA_URL = "<MEDIA_FILE_URI>"; // <MEDIA_FILE_URI> could be the Non Secure Media Source or Live Streaming URI
VdoInitParams vdoInitParams = new VdoInitParams.Builder()
.configureMediaSource(MEDIA_URL)
.build();
val MEDIA_URL = "<MEDIA_FILE_URI>" // <MEDIA_FILE_URI> could be the Non Secure Media Source or Live Streaming URI
val vdoInitParams = VdoInitParams.Builder()
.configureMediaSource(MEDIA_URL)
.build()
Configure Secure Media Source With DRM License
- Java
- Kotlin
String MEDIA_URL = "<MEDIA_FILE_URI>";
String DRM_LICENSE_URL = "<LICENSE_URL>";
VdoInitParams vdoInitParams = new VdoInitParams.Builder()
.configureMediaSource(MEDIA_URL, DRM_LICENSE_URL)
.build();
val MEDIA_URL = "<MEDIA_FILE_URI>"
val DRM_LICENCE_URL = "<LICENSE_URL>"
val vdoInitParams = VdoInitParams.Builder()
.configureMediaSource(MEDIA_URL, DRM_LICENCE_URL)
.build()
Play Videos
To play videos using VdoCipher's SDK, initialize the player with the required configuration in vdoInitParams
, then load the video by calling vdoplayer.load(vdoInitParams)
. For detailed integration instructions, refer to the player integration guide.
If you have any questions or need further assistance, please contact us at support@vdocipher.com