Skip to content

Commit 7ead558

Browse files
authored
Feature/srt
1 parent b962c2a commit 7ead558

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sdks/livestream/apivideo-android-livestream-module.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ On build.gradle add the following code in dependencies:
2323

2424
```groovy
2525
dependencies {
26-
implementation 'video.api:android-live-stream:1.3.1'
26+
implementation 'video.api:android-live-stream:1.4.2'
2727
}
2828
```
2929

@@ -55,10 +55,10 @@ and `android.permission.RECORD_AUDIO`.
5555
android:layout_height="match_parent" />
5656
```
5757

58-
3. Implement a `ConnectionChecker`.
58+
3. Implement a `IConnectionListener`.
5959

6060
```kotlin
61-
val connectionChecker = object : ConnectionChecker {
61+
val connectionListener = object : IConnectionListener {
6262
override fun onConnectionSuccess() {
6363
//Add your code here
6464
}
@@ -73,10 +73,10 @@ val connectionChecker = object : ConnectionChecker {
7373
}
7474
```
7575

76-
4. Creates an `ApiVideoLiveStream` instance.
76+
4. Create an `ApiVideoLiveStream` instance.
7777

7878
```kotlin
79-
class MyFragment : Fragment(), ConnectionChecker {
79+
class MyFragment : Fragment(), IConnectionListener {
8080
private var apiVideoView: ApiVideoView? = null
8181
private lateinit var apiVideo: ApiVideoLiveStream
8282

@@ -99,7 +99,7 @@ class MyFragment : Fragment(), ConnectionChecker {
9999
apiVideo =
100100
ApiVideoLiveStream(
101101
context = getContext(),
102-
connectionChecker = this,
102+
connectionListener = this,
103103
initialAudioConfig = audioConfig,
104104
initialVideoConfig = videoConfig,
105105
apiVideoView = apiVideoView
@@ -126,8 +126,8 @@ You can check device supported configurations by using the helper: `Helper`
126126

127127
We are using external library
128128

129-
| Plugin | README |
130-
| ------ | ------ |
129+
| Plugin | README |
130+
|---------------------------------------------------------|------------------------------------------------------------------------------|
131131
| [StreamPack](https://github.com/ThibaultBee/StreamPack) | [README.md](https://github.com/ThibaultBee/StreamPack/blob/master/README.md) |
132132

133133
## Sample application

0 commit comments

Comments
 (0)