Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK README - api.video-android-live-stream] Feature/srt #387

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading