Skip to content

Commit

Permalink
fix video playback error for TransformVideoPage
Browse files Browse the repository at this point in the history
  • Loading branch information
2018JunyoungLim committed Dec 7, 2023
1 parent cd5f25c commit 429d578
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -74,6 +75,13 @@ fun TransformVideoPage(
}
}

DisposableEffect(Unit) {
onDispose {
exoPlayer.stop()
exoPlayer.release()
}
}

var createdEmojiList by remember { mutableStateOf<List<CreatedEmoji>>(emptyList()) }

Scaffold(
Expand Down

0 comments on commit 429d578

Please sign in to comment.