GstLibrary加上錯誤狀態
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user