Committed by
GitHub
Make SurfaceViewRenderer/TextureViewRenderer open (#137)
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -6,7 +6,7 @@ import android.view.View | @@ -6,7 +6,7 @@ import android.view.View | ||
| 6 | import io.livekit.android.room.track.video.ViewVisibility | 6 | import io.livekit.android.room.track.video.ViewVisibility |
| 7 | import org.webrtc.SurfaceViewRenderer | 7 | import org.webrtc.SurfaceViewRenderer |
| 8 | 8 | ||
| 9 | -class SurfaceViewRenderer : SurfaceViewRenderer, ViewVisibility.Notifier { | 9 | +open class SurfaceViewRenderer : SurfaceViewRenderer, ViewVisibility.Notifier { |
| 10 | constructor(context: Context) : super(context) | 10 | constructor(context: Context) : super(context) |
| 11 | constructor(context: Context, attrs: AttributeSet) : super(context, attrs) | 11 | constructor(context: Context, attrs: AttributeSet) : super(context, attrs) |
| 12 | 12 |
| @@ -28,7 +28,7 @@ import java.util.concurrent.CountDownLatch | @@ -28,7 +28,7 @@ import java.util.concurrent.CountDownLatch | ||
| 28 | /** | 28 | /** |
| 29 | * Display the video stream on a TextureView. | 29 | * Display the video stream on a TextureView. |
| 30 | */ | 30 | */ |
| 31 | -class TextureViewRenderer : TextureView, SurfaceHolder.Callback, TextureView.SurfaceTextureListener, VideoSink, | 31 | +open class TextureViewRenderer : TextureView, SurfaceHolder.Callback, TextureView.SurfaceTextureListener, VideoSink, |
| 32 | RendererEvents, ViewVisibility.Notifier { | 32 | RendererEvents, ViewVisibility.Notifier { |
| 33 | // Cached resource name. | 33 | // Cached resource name. |
| 34 | private val resourceName: String | 34 | private val resourceName: String |
-
请 注册 或 登录 后发表评论