Teyuto provides a seamless solution for managing all your video distribution needs. Whether you require video distribution in the cloud, on OTT platforms, storage, public OTT platform distribution, or secure intranet distribution, Teyuto puts everything at your fingertips, making the management of your video content effortless.
This SDK provides analytical monitoring for Teyuto with ExoPlayer in Android applications.
Add the following to your project's build.gradle
:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Then, add the dependency to your app's build.gradle
:
dependencies {
implementation 'com.github.teyuto:teyuto-exoplayer-analytics:0.3.6'
}
The Teyuto ExoPlayer Analytics SDK now supports optional authentication tokens. You can initialize the SDK with or without a token, depending on your requirements.
import com.teyuto.exoplayeranalytics.TeyutoPlayerAnalyticsAdapter
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.MediaItem
class MainActivity : AppCompatActivity() {
private lateinit var player: ExoPlayer
private lateinit var analytics: TeyutoPlayerAnalyticsAdapter
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
player = ExoPlayer.Builder(this).build()
val mediaItem = MediaItem.fromUri("https://example.com/video.mp4")
player.setMediaItem(mediaItem)
analytics = TeyutoPlayerAnalyticsAdapter("channel-public", "user-auth-token")
analytics.init(player, "video-id")
player.prepare()
}
override fun onDestroy() {
super.onDestroy()
analytics.destroy()
player.release()
}
}
If you don't need to use an authentication token, you can initialize the SDK with just the channel:
analytics = TeyutoPlayerAnalyticsAdapter("your-channel-public")
analytics.init(player, "your-video-id-here")
The token is optional when initializing the TeyutoPlayerAnalyticsAdapter. If you provide a token, it will be included in the API requests. If you don't provide a token, the requests will be made without authentication.
For more details on how to use the Teyuto ExoPlayer Analytics SDK, including advanced features and configurations, please refer to our official documentation.
If you encounter any issues or have questions about using the SDK, please open an issue on our GitHub repository or contact our support team at support@teyuto.com.
This SDK is released under the MIT License.