Let me start by saying i'm not a user of this library - just the developer.
Looking back through this thread i thought that others had successfully displayed the VitamioVideoView sized so that it was less than full screen.
But testing the demo code i see that once a video starts playing, the VitamioVideoView is likely to expand to fully display the video.
The VitamioVideoView Top and Left will remain as originally set but the Width and Height will adjust to the video size.
In the demo project i modified the line that adds the VitamioVideoView to the Activity:
Activity.AddView(VitamioVideoView1, 20dip, 30dip, 100%x-40dip, 100%y-60dip)
Next i modified the 'Prepared' Sub:
Sub VitamioVideoView1_Prepared
Log("VitamioVideoView1_Prepared")
VitamioVideoView1.SetLayout(20dip, 30dip, 100%x-40dip, 100%y-60dip)
VitamioVideoView1.SetVideoLayout(VitamioVideoView1.VIDEO_LAYOUT_SCALE, 0)
End Sub
Trying to call SetVideoLayout in Activity_Create caused a null pointer exception so i thought calling it once the video was 'prepared' would be enough to force it to scale it's size as desired.
But it made no difference - the video expands rather than scales down in size.
Hopefully some other members can help...
Martin.