Scale video to view size in Xamarin.Android not working

This forum is about all development around libVLC.
SvenCarstensen
New Cone
New Cone
Posts: 2
Joined: 05 Oct 2021 15:14

Scale video to view size in Xamarin.Android not working

Postby SvenCarstensen » 05 Oct 2021 15:44

Hello all,

I am trying to play a RTP stream via LibVLC 3.5.0 and LibVLCSharp 3.2.0.1 in a Xamarin.Android app.

The playback itself works, but the video does not scale to the size of the window.
So I see in a view with 640 * 360 points only the lower left part of the video.

Has anyone had this problem and can possibly give me a tip?
I would appreciate the help of the forum very much!

Regards

Sven

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: Scale video to view size in Xamarin.Android not working

Postby mfkl » 06 Oct 2021 04:11

Have you tried playing with the Scale and AspectRatio mediaplayer properties? Like this https://code.videolan.org/videolan/LibV ... Manager.cs
https://mfkl.github.io

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Scale video to view size in Xamarin.Android not working

Postby Rémi Denis-Courmont » 06 Oct 2021 22:29

With default settings, LibVLC automatically adjusts the video size to window area. But I don't know if that's implementable and correctly implemented on Android.

Maybe check if it works on X11.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

SvenCarstensen
New Cone
New Cone
Posts: 2
Joined: 05 Oct 2021 15:14

Re: Scale video to view size in Xamarin.Android not working

Postby SvenCarstensen » 07 Oct 2021 09:49

Hi mfki,

thank you for your reply.
Have you tried playing with the Scale and AspectRatio mediaplayer properties? Like this https://code.videolan.org/videolan/LibV ... Manager.cs
Yes, i have tried both of them with no success :-(


Return to “Development around libVLC”

Who is online

Users browsing this forum: Google [Bot] and 10 guests