feat: add neutral avatar video call MVP in Android 0.6.0
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package android.view
|
||||
import android.content.Context
|
||||
import android.graphics.SurfaceTexture
|
||||
import android.graphics.Matrix
|
||||
class Surface(texture: SurfaceTexture) { fun release() {} }
|
||||
class TextureView(context: Context) {
|
||||
var alpha = 1f; var isOpaque = true
|
||||
val isAvailable = true; val surfaceTexture = SurfaceTexture()
|
||||
val width = 480; val height = 848
|
||||
var surfaceTextureListener: SurfaceTextureListener? = null
|
||||
fun setTransform(matrix: Matrix) {}
|
||||
interface SurfaceTextureListener {
|
||||
fun onSurfaceTextureAvailable(texture: SurfaceTexture,w: Int,h: Int)
|
||||
fun onSurfaceTextureSizeChanged(texture: SurfaceTexture,w: Int,h: Int)
|
||||
fun onSurfaceTextureUpdated(texture: SurfaceTexture)
|
||||
fun onSurfaceTextureDestroyed(texture: SurfaceTexture): Boolean
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user