Suggestions for using Cloudy with a Video View? #10
Unanswered
kiranrao-somnox
asked this question in
Q&A
Replies: 1 comment
-
I dont know if this works but
you can just show or hide the image view here based on your use case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a video player (implemented using ExoPlayer). When the video is paused, we show an overlay with controls to resume/replay the video.
My design calls for blurring the paused frame for showing this overlay. I attempted to do this using
Cloudy
. However no matter what I do I cannot get the blur to appear/disappear based on whether the video is paused or not.Initial attempt
My initial attempt was this:
Essentially it extracts the videoPlayerSection into a composable lamda and then if the video is paused it renders that lamda inside Cloudy, else renders it directly.
However this does not work as expected; it results in the factory being called every time the isPaused status changes so in my case it starts playing the video from start every time (since my
factory
block resets the video to the beginning).Second attempt
For my second attempt, I abandoned trying to extract the Video playing into a composable lambda. Instead I tried to get Cloudy to blur or not blur using the radius
This also doesn't seem to work. I see a white overlay on top of my video. I don't know if there exists a blur radius that means "no blur".
Does anyone have any suggestions? Is this even supposed to work with a VideoView at all?
Footnote
Here is what my design calls for:
Beta Was this translation helpful? Give feedback.
All reactions