Reputation: 1225
Is there any live broadcasting mechanism in xamarin forms? Any plugins or any native codes? I wanted it for iOS and Android.
Upvotes: 1
Views: 2130
Reputation: 2899
You can use Plugin.MediaManager.Forms plugin for this purpose. Additionally you must have a source broadcasting.
A video app needs a window for viewing content. For this reason, a video app is usually implemented on a single screen.
CrossMediaManager.Current.Play("https://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4", MediaFileType.Video);
And in your view like this:
<forms:VideoView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
Source="YourVideoFile" AspectMode="AspectFill" />
Here is source code for this plugin: https://github.com/martijn00/XamarinMediaManager
More information on the Xamarin Blog.
Upvotes: 1