Use ScrollView to Display StoryLabel and Image as List View Items and then ClickEvent you can show Videos and images on Grid depends upon your data.
Control to show the stories with images/videos
Hi,
I am developing an application in xamarin forms where user will be able to pull the stories with images and videos as well.
Right now I am using the WebView to show the images & videos in one control in carousal view but its not working well, I am getting some glitches to show the videos and bind the position for autoscroll.
Thanks.
2 answers
Sort by: Most helpful
-
-
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 67,781 Reputation points Microsoft Vendor
2021-05-25T06:41:18.597+00:00 Hello,
Welcome to our Microsoft Q&A platform!
Could you differentiate data types? When you get a path of images or videos.
If so, you can use different controls to display it.
For example, if you want to display video, you can use this plugin to play it: https://github.com/Baseflow/XamarinMediaManager, this plugin to play video by native control(Android:
ExoPlayer
, iOS:AVPlayer
), so it will have better performance.If you want to show the image by Image control Or use this FFimageloading nuget package(it have lots of features that Image control do not have it) to display it.
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.