From 7ead55894f58bdf8a20b30baac3a5653f8f56fc7 Mon Sep 17 00:00:00 2001 From: ThibaultBee Date: Tue, 1 Oct 2024 19:42:47 +0000 Subject: [PATCH] Feature/srt --- .../apivideo-android-livestream-module.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sdks/livestream/apivideo-android-livestream-module.md b/sdks/livestream/apivideo-android-livestream-module.md index ff2d3176..298e569b 100644 --- a/sdks/livestream/apivideo-android-livestream-module.md +++ b/sdks/livestream/apivideo-android-livestream-module.md @@ -23,7 +23,7 @@ On build.gradle add the following code in dependencies: ```groovy dependencies { - implementation 'video.api:android-live-stream:1.3.1' + implementation 'video.api:android-live-stream:1.4.2' } ``` @@ -55,10 +55,10 @@ and `android.permission.RECORD_AUDIO`. android:layout_height="match_parent" /> ``` -3. Implement a `ConnectionChecker`. +3. Implement a `IConnectionListener`. ```kotlin -val connectionChecker = object : ConnectionChecker { +val connectionListener = object : IConnectionListener { override fun onConnectionSuccess() { //Add your code here } @@ -73,10 +73,10 @@ val connectionChecker = object : ConnectionChecker { } ``` -4. Creates an `ApiVideoLiveStream` instance. +4. Create an `ApiVideoLiveStream` instance. ```kotlin -class MyFragment : Fragment(), ConnectionChecker { +class MyFragment : Fragment(), IConnectionListener { private var apiVideoView: ApiVideoView? = null private lateinit var apiVideo: ApiVideoLiveStream @@ -99,7 +99,7 @@ class MyFragment : Fragment(), ConnectionChecker { apiVideo = ApiVideoLiveStream( context = getContext(), - connectionChecker = this, + connectionListener = this, initialAudioConfig = audioConfig, initialVideoConfig = videoConfig, apiVideoView = apiVideoView @@ -126,8 +126,8 @@ You can check device supported configurations by using the helper: `Helper` We are using external library -| Plugin | README | -| ------ | ------ | +| Plugin | README | +|---------------------------------------------------------|------------------------------------------------------------------------------| | [StreamPack](https://github.com/ThibaultBee/StreamPack) | [README.md](https://github.com/ThibaultBee/StreamPack/blob/master/README.md) | ## Sample application