Skip to content

Commit

Permalink
Feature/srt
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee authored Oct 1, 2024
1 parent b962c2a commit 7ead558
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sdks/livestream/apivideo-android-livestream-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down Expand Up @@ -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
}
Expand All @@ -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

Expand All @@ -99,7 +99,7 @@ class MyFragment : Fragment(), ConnectionChecker {
apiVideo =
ApiVideoLiveStream(
context = getContext(),
connectionChecker = this,
connectionListener = this,
initialAudioConfig = audioConfig,
initialVideoConfig = videoConfig,
apiVideoView = apiVideoView
Expand All @@ -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
Expand Down

0 comments on commit 7ead558

Please sign in to comment.