HI guys I hope all of you doing well .... in my CM...
# multiplatform
a
HI guys I hope all of you doing well .... in my CMP project I am using AVPlayer for ios ..... if your AVPlayer inside a scrollView you should set that .... like avplayer.setScrollView() the problem is that it talks a ScrollView component from IOS but it's really inside lazyColumn from compose ..... how can I set my lazyColumn as the scrollView ?
s
I think im doing the exact same thing— are you trying to make a scrolling video of vertical videos? I ended up making an expect class for the VideoPlayer that uses exoplayer / avplayer under the hood. I make sure that this view doesn’t consume scroll events, then I host it in a VerticalPager
a
@Scott Lanoue thank you for your comment ..... not exactly .... I have lazy column that have many items .... each item has a video player (like you did I make it with expect and actual with exoplayer /avplayer) my problem is that if avplayer is wrapped inside scrollView you need to set that scrollView for it like avplayer.setScrollView() but here is the problem ... the setScrollView method takes from you object from native type UIScrollView .... and the lazyColumn isn't from that type so ? if you didn't do that your video content will scroll up and down when you scroll