3

I am using Plugin.MediaManager NuGet package to provide cross-platform video player for my app. However, it does not support playing RTSP video streams. Is there any other library that supports this?

I have looked around and the most common ones are platform-specific libraries such as KXmovie and Managed Media Aggregation but I am a little intimidated by the thought of having to port and/or recompile them.

The best case is if there is a Xamarin.Forms compatible NuGet package available. Failing that, an iOS library that requires binding, but not recompiling. As a last resort, something that needs to be compiled and linking manually, but works out of the box.

Steztric
  • 2,832
  • 2
  • 24
  • 43
  • 2
    If anyone is downvoting, could they please give a comment explaining why? The close votes are for the reason of 'off topic - doesn't appear to be about programming'. How is this not about programming? – Steztric Aug 08 '17 at 11:56
  • I agree with you, Hate when people doing that. – Yuri S Aug 09 '17 at 02:44
  • Are you sure it is not supported? https://forums.xamarin.com/discussion/23012/rtsp-streaming-cant-play-this-video. – Yuri S Aug 09 '17 at 02:46
  • @YuriS Hi! From what I can tell the native Android video player supports RTSP but the native iOS video player does not. The article you linked me to is for Xamarin.Android. If you can find one for Xamarin.IOS or Xamarin.Forms I will be a happy guy! – Steztric Aug 09 '17 at 09:19

2 Answers2

3

OK so the resounding conclusion is that one does not exist with Xamarin bindings. I will start with this project on GitHub and see if I can compile and generate the bindings myself.

Steztric
  • 2,832
  • 2
  • 24
  • 43
2

A bit late, but there is now. LibVLCSharp supports RTSP (and many other stuff).

mfkl
  • 1,914
  • 1
  • 11
  • 21
  • Only one disadvantage that it will increase app size ~60mb – valentasm Mar 28 '21 at 07:31
  • This can be alleviated https://code.videolan.org/videolan/libvlc-nuget/-/blob/master/cherry-picking.md – mfkl Mar 29 '21 at 01:19
  • Sadly it doesn't work for android. "There is not such inclusion/exclusion mechanism for Android because libvlc is built as one monolithic library on this platform.". What i did, i excluded X86, x86_64 architectures so size increased "only" ~40mb, instead ~60mb – valentasm Mar 29 '21 at 06:13
  • then you need to build your own custom libvlc build with just the features you need. We can't provide every single possible build combinations for every platform. – mfkl Mar 29 '21 at 08:19
  • Relax man. It is not complain. Just small note. Overall VlcSharp is great. – valentasm Mar 30 '21 at 09:16