https://kotlinlang.org logo
#compose
Title
# compose
j

Jason Inbody

07/17/2021, 3:11 AM
I'm trying to build a background video player and copying from this code https://github.com/takahirom/jetpack-compose-exoplayer-sample/blob/master/app/src/main/java/com/github/takahirom/composeexoplayer/MainActivity.kt. But I'm trying to track down imports that have changed. I can't seem to find
import androidx.compose.runtime.savedinstancestate.savedInstanceState
and I didn't see any name changes from the update logs. Did this name change? The android studio also cant find it...
c

Colton Idle

07/17/2021, 5:43 AM
On mobile, but if you search for me here I asked a similar question like two/three times and I kind of documented my journey along the way since I couldn't get it to work at all. Maybe you can follow along by searching my name?
👍 1
a

Albert Chang

07/17/2021, 11:23 AM
Should be equal to
rememberSavable { mutableStateOf(value) }
.
j

Jason Inbody

07/17/2021, 4:37 PM
I actually found a newer example of the video player in the jetpack compose demo apps that's kinda working but a little choppy (could just be my simulator is slow)
c

Colton Idle

07/17/2021, 4:39 PM
Try on a real device. It's always choppy on emulator
👍 1
4 Views