@@ -23,7 +23,7 @@ On build.gradle add the following code in dependencies:
2323
2424``` groovy
2525dependencies {
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
0 commit comments