feat: add neutral avatar video call MVP in Android 0.6.0

This commit is contained in:
zenord
2026-10-12 15:12:57 +08:00
parent 4d305ad0df
commit fdd91234b5
39 changed files with 1325 additions and 184 deletions
+18
View File
@@ -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
}
}