question

AjayTyagi-9432 avatar image
0 Votes"
AjayTyagi-9432 asked LeonLu-MSFT commented

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.

dotnet-csharpdotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Pilli-1546 avatar image
0 Votes"
Pilli-1546 answered AjayTyagi-9432 edited

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Pilli Thanks for the response but I need to implement the story functionality like FB, Instagram.
Videos and Images will show/play automatically one by one not with the click event, user will have the swipe functionality and view will be closed after end of the stories as well that's why I've used carousal view.

0 Votes 0 ·
LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered LeonLu-MSFT commented

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.


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @LeonLu-MSFT Thanks for the welcome and quick response, The data types of path URL is string(Server URL), Images/videos can play directly in any control.

Ok, I will try to use this control to play videos in both platform.

Thanks

0 Votes 0 ·

Fine, waiting for your update.

1 Vote 1 ·

Hi @LeonLu-MSFT, Sorry for late reply actually I needed to change my project to .NET standard 2.0.

This plugin is working fine to play the video but when I am trying to add the control in carousel view getting some glitches while swiping like app freeze many times.

Thanks for your suggestion this control is very useful to play audio and video.

0 Votes 0 ·
Show more comments