neqopa
neqopa

Reputation: 119

Xamarin.forms .NetStandard How to play a video?

I currently developing a Xamarin.form app that use .NetStandard as code sharing technique. On a certain point in the app, the app must show a video from a url. A video could take up to 5 minutes. I currently can't find a way how I can play a video in my Xamarin.Forms app. Most of the examples on the web using PCL with .NET Framework.

I tried This plug in, but it isn't fully supported for .NetStandard, since it is written for .Net Framework: https://github.com/martijn00/XamarinMediaManager

I already managed to play a video on Android and iOs following this tutorial: https://blog.xamarin.com/delivering-rich-media-experiences-xamarin-forms-video-player/

However, it can only play videos up to 15 seconds for free and in UWP, it seems to be a bit broken.

I simply cannot figure out how I can play a video up to 5 minutes using .Net Standard.

Can someone please explain step by step how I can show a video in a Xamarin.Form app using .NetStandard as code sharing technique?

Or If anyone could explain in detail how to make my own video control, that works on each platform, that would be fantastic.

Your help is really much appreciated.

Upvotes: 1

Views: 490

Answers (2)

mfkl
mfkl

Reputation: 2159

You may want to have a look at LibVLCSharp which provides a netstandard target as well as well native controls for each platforms.

Disclaimer: I am the maintainer.

Upvotes: 1

Houssem
Houssem

Reputation: 1072

You can find a full tutorial how implementing a video(local or web) in your app manually at Xamarin documentation either there is a sample

Upvotes: 0

Related Questions