Playing one Video at a time in xamarin - xamarin

I am designing list of videos scrollable page in xamarin forms i want to play the video which its position is at the center of the page only all other videos in the list paused (like facebook watch idea).
I tried Collection View and Carousel view but this mission failed. Any idea?

Related

Xamarin forms Plugin.MediaManager Android : Video is not visible but audio is playing

I am using Xamarin MediaManager plugin to play videos. Since there is no fullscreen option available in Android. I have created two screens A and B. When I play video in screen A and when user clicks on maximizing the same video I am trying to play it in screen B. Video is playing in screen B no issues, but when I go back from screen B to screen A then i can hear only the audio and the video is stuck. When i click the maximizing again Video is playing fine in Screen B without any issues. I am not getting where I am doing wrong here.
Any help, guidance is much appreciated

Integrating moving, common background image for carousel page in Xamarin.Forms

I'm trying to integrate a common wide background image for Xamarin Forms Carousel page. As the requirement I need to smoothly change the visible part of the image according to changes of child pages (Ex. moving the visible part of the theme background image of a mobile phone when moving the menu pages). Is there any way to achieve this approach.

MultiSelect Videos not playing in xamarin forms android

We are using below link for multiselect photos/videos in xamarin forms both android and ios. https://www.xamboy.com/2019/03/12/select-multiple-images-and-videos-in-xamarin-forms/
After multiselect the video, click play button video need to play. First we are using crossmedia for single select, that time video played properly. Now we are using multiselect refered above mentioned link. After multiselect the videos, video not playing in android. In IOS this was working fine. How to resolve this problem?

Is there a Slide Image Gallery for Xamarin Android?

I am looking for a image gallery to use on Xamarin Android for a app i am creating but cant cant find any Gallery that slides left or right, Cant even find any blogs post on creating it to
I found a this one for Android its Called Android Image Slider
https://github.com/daimajia/AndroidImageSlider
But I cant open it Xamarin Studio
Also I am using the free version of Xamarin Studio
Is there any way i can achieve this using Xamarin?
I have implemented a image slider in xamarin android using FragmentStatePager adapter. You need three things
1) Main Activity which implements Adapter (Point #2)
2) Implementation of FragmentStatePagerAdapter for items and instantiate the fragment class (Point#3).
3) You need to implement fragment and set the image on the view. This fragment is then instantiated from the FragmentStatePagerAdapter and displayed on the screen as you scroll.
All you have to do count the no.of images you have in library and then on the activity, you need to shift the images on the view pager at certain time interval.
//displaying image for 2 seconds
Thread.Sleep (2000);
//Updating the view pager with the next image.
this.RunOnUiThread (() => _pager.SetCurrentItem (imageValue, true));
SetCurrentItem method on viewpager will show the display of the fragment.
Full Example and explanation in detail is available on Code Project
http://www.codeproject.com/Tips/1038358/Xamarin-Android-Image-Auto-Slider-and-OOM-Issue-Ha
Source code can be downloaded from my GIT HUB.
https://github.com/sahilkhan99/learnings/tree/master/autoImageSlider
Cheers

microsoft.phone.controls.webbrowser won't show video clips

In my Windows Phone application I'm loading a html site into a view, really simple stuff with this method:
var itemView = view as NorwegianBrowserView;
var webBrowser = itemView.browserContainer;
webBrowser.Navigate(new Uri(_globalAccessObjects.ActiveNorwayLink,UriKind.RelativeOrAbsolute));
The site loads everything except a video clip. Or well it knows the video is there but it just shows a black square. And pressing that black square does nothing.
As i side note i can add that i got the same application for iOS and Android and they both got no problem in loading the very same website(+ they load the video). And here i can press the video clip and it will start playing.
Am i loading the website into my view the wrong way? or does microsoft.phone.controls.webbrowser not support a video clip?
Any help is much appreciated.
The ability to play video clips in line in a web page is dependent upon the version of Windows Phone you are running on and the format of the video.
Only Window Phone 8.1 supports playing video within a page. Unfortunately this isn't yet widely available.
Even then the video format may still be an issue and if not supported could lead to a placeholder image being displayed.

Resources