GstLibrary加上錯誤狀態

This commit is contained in:
Barney
2022-08-05 15:12:25 +08:00
parent 8afd65e63d
commit 3e6d7e9e1c
5 changed files with 17 additions and 24 deletions
@@ -91,11 +91,6 @@ class GridVideoFragment : Fragment(), GstCallback {
}
private fun initView() {
binding.baseView.setBackgroundColor(Color.rgb(
(0..255).random(),
(0..255).random(),
(0..255).random()
))
val maxRow = sqrt(splitMode.toFloat()).toInt()
val maxCol = sqrt(splitMode.toFloat()).toInt()
@@ -199,8 +194,6 @@ class GridVideoFragment : Fragment(), GstCallback {
Log.d("${TAG}_$mPageNum", "GstPlayer #$index: $message")
}
override fun onMediaSizeChanged(gstInstance: GstLibrary, width: Int, height: Int) {}
companion object {
private val TAG = GridVideoFragment::class.java.simpleName
private const val ARG_PAGE_NUM = "page_number"
@@ -22,7 +22,6 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="fitXY"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"