Control to show the stories with images/videos

Ajay Tyagi 1 Reputation point
2021-05-24T13:41:11.537+00:00

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.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,287 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,192 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pilli 1 Reputation point
    2021-05-24T22:39:45.89+00:00

    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.


  2. 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.