hashimks
hashimks

Reputation: 1225

Video live broadcasting for xamarin forms

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

Answers (1)

Wilson Vargas
Wilson Vargas

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

Related Questions