-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from DolbyIO/release/3.10.0-beta.3
Release/3.10.0 beta.3
- Loading branch information
Showing
49 changed files
with
580 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
android/src/main/java/io/dolby/sdk/comms/reactnative/view/VideoViewWrapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package io.dolby.sdk.comms.reactnative.view | ||
|
||
import android.content.Context | ||
import android.util.AttributeSet | ||
import android.view.LayoutInflater | ||
import android.widget.FrameLayout | ||
import com.voxeet.android.media.MediaStream | ||
import com.voxeet.sdk.views.VideoView | ||
|
||
import io.dolby.sdk.comms.reactnative.R | ||
|
||
|
||
class VideoViewWrapper(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : FrameLayout(context, attrs, defStyleAttr) { | ||
|
||
constructor(context: Context) : this(context, null) | ||
constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0) | ||
|
||
val isAttached: Boolean | ||
get() = videoView?.isAttached ?: false | ||
|
||
private val videoView: VideoView? | ||
|
||
init { | ||
val root = LayoutInflater.from(context).inflate(R.layout.video_wrapper, this, true) | ||
videoView = root.findViewById(R.id.video_view) | ||
} | ||
|
||
fun attach(participantId: String, stream: MediaStream) { | ||
videoView?.attach(participantId, stream) | ||
requestLayout() | ||
} | ||
|
||
fun unAttach() { | ||
videoView?.unAttach() | ||
requestLayout() | ||
} | ||
|
||
fun setVideoFill() { | ||
videoView?.setVideoFill() | ||
} | ||
|
||
fun setVideoFit() { | ||
videoView?.setVideoFit() | ||
} | ||
|
||
fun setMirror(mirror: Boolean) { | ||
videoView?.isMirror = mirror | ||
} | ||
|
||
override fun requestLayout() { | ||
super.requestLayout() | ||
post { | ||
measure( | ||
MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), | ||
MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY) | ||
) | ||
layout(left, top, right, bottom) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="#000000" | ||
> | ||
<com.voxeet.sdk.views.VideoView | ||
android:id="@+id/video_view" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" /> | ||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
docs/enums/internal.RecorderStatus.md → docs/enums/internal.AudioPreviewStatus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.