Skip to content

Commit

Permalink
Merge branch 'master' into dev/3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Dec 18, 2020
2 parents ddeaefb + 75f572d commit de52ca6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Callback.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import io.agora.rtc.RtcEngine
import kotlin.math.abs

abstract class Callback {
fun code(code: Int?, runnable: ((Int) -> Any?)? = null) {
fun code(code: Int?, runnable: ((Int?) -> Any?)? = null) {
if (code == null || code < 0) {
val newCode = abs(code ?: Constants.ERR_NOT_INITIALIZED)
failure(newCode.toString(), RtcEngine.getErrorDescription(newCode))
Expand Down
4 changes: 1 addition & 3 deletions MediaObserver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class MediaObserver(

override fun onMetadataReceived(buffer: ByteArray, uid: Int, timeStampMs: Long) {
emit(hashMapOf(
"buffer" to String(buffer),
"uid" to uid,
"timeStampMs" to timeStampMs
"data" to arrayListOf(String(buffer), uid, timeStampMs)
))
}
}
1 change: 1 addition & 0 deletions RtcSurfaceView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class RtcSurfaceView(
surface.setZOrderMediaOverlay(isMediaOverlay)
surface.setZOrderOnTop(onTop)
addView(surface)
surface.layout(0, 0, width, height)
canvas.view = surface
if (canvas.uid == 0) {
engine.setupLocalVideo(canvas)
Expand Down
1 change: 1 addition & 0 deletions RtcTextureView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class RtcTextureView(
removeAllViews()
texture = RtcEngine.CreateTextureView(context.applicationContext)
addView(texture)
texture.layout(0, 0, width, height)
canvas.view = texture
if (canvas.uid == 0) {
engine.setupLocalVideo(canvas)
Expand Down

0 comments on commit de52ca6

Please sign in to comment.