Commit f9d3e66e authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Attempt work around crash on video playback


Former-commit-id: 88f0581e1240e90c4f037fe1dd0a0ab649fea527
parent 6362d351
......@@ -59,10 +59,6 @@ class HistoryEventsAdapter(
}
fun playMedia(callLog: CallLog, lindoorFragment: GenericFragment) {
if (callLog.historyEvent().hasVideo) { //TODO Remove me
DialogUtil.toast("Unable to play back videos (pending crash fix) - audio calls work ok")
return
}
val intent = Intent(lindoorFragment.activity, PlayerActivity::class.java)
intent.putExtra("callId", callLog.callId)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
......
......@@ -39,7 +39,7 @@ class PlayerActivity : GenericActivity(allowsLandscapeOnSmartPhones = true) {
LindoorApplication.Companion.coreContext.core.createLocalPlayer(
null,
null,
if (event.hasVideo) binding.root.video else null
if (event.hasVideo) binding.root.video.surfaceTexture else null
)?.also { player ->
playerViewModel =
ViewModelProvider(
......
......@@ -18,7 +18,7 @@
android:id="@+id/video"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="16dp"
android:layout_marginTop="50dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment