@@ -23,7 +23,7 @@ On build.gradle add the following code in dependencies:
23
23
24
24
``` groovy
25
25
dependencies {
26
- implementation 'video.api:android-live-stream:1.3.1 '
26
+ implementation 'video.api:android-live-stream:1.4.2 '
27
27
}
28
28
```
29
29
@@ -55,10 +55,10 @@ and `android.permission.RECORD_AUDIO`.
55
55
android : layout_height =" match_parent" />
56
56
```
57
57
58
- 3 . Implement a ` ConnectionChecker ` .
58
+ 3 . Implement a ` IConnectionListener ` .
59
59
60
60
``` kotlin
61
- val connectionChecker = object : ConnectionChecker {
61
+ val connectionListener = object : IConnectionListener {
62
62
override fun onConnectionSuccess () {
63
63
// Add your code here
64
64
}
@@ -73,10 +73,10 @@ val connectionChecker = object : ConnectionChecker {
73
73
}
74
74
```
75
75
76
- 4 . Creates an ` ApiVideoLiveStream ` instance.
76
+ 4 . Create an ` ApiVideoLiveStream ` instance.
77
77
78
78
``` kotlin
79
- class MyFragment : Fragment (), ConnectionChecker {
79
+ class MyFragment : Fragment (), IConnectionListener {
80
80
private var apiVideoView: ApiVideoView ? = null
81
81
private lateinit var apiVideo: ApiVideoLiveStream
82
82
@@ -99,7 +99,7 @@ class MyFragment : Fragment(), ConnectionChecker {
99
99
apiVideo =
100
100
ApiVideoLiveStream (
101
101
context = getContext(),
102
- connectionChecker = this ,
102
+ connectionListener = this ,
103
103
initialAudioConfig = audioConfig,
104
104
initialVideoConfig = videoConfig,
105
105
apiVideoView = apiVideoView
@@ -126,8 +126,8 @@ You can check device supported configurations by using the helper: `Helper`
126
126
127
127
We are using external library
128
128
129
- | Plugin | README |
130
- | ------ | ------ |
129
+ | Plugin | README |
130
+ | --------------------------------------------------------- | ------------------------------------------------------------------------------ |
131
131
| [ StreamPack] ( https://github.com/ThibaultBee/StreamPack ) | [ README.md] ( https://github.com/ThibaultBee/StreamPack/blob/master/README.md ) |
132
132
133
133
## Sample application
0 commit comments