native media player service
While you do have control over the screen orientation, you do not have control over the video orientation. It is handled internally by the native media player service.
Did you see this tutorial:
Android Process and activities life cycle
Hi Erel,
I looked at the tutorial and although it contains very useful information about general programming aspects, blunt as I am, I did not find any useful information on how the native media player service is configured in/by the device.
I am sure there must be a method to set it initially somewhere (either in the rom or a settings file). I've discovered over time that portrait based home screen devices (mostly phones) handle this differently to landscape based home screen devices (mostly tablets).
It remains a bit weird that there IS the opportunity to control your app in any orientation possible via programming (the Phone.SetScreenOrientation command or through the IDE in general) and the video play orientation just seems to be fixed.. Doesn't make sense to me. OR does a videoview, when added in the program, simply not ''respect'' the current SetScreenOrientation?
I have no objections to go native (if I knew how) although I am a big fan of B4A and absolutely adore it flexibility and prefer to do all things from this portal.
Would you be able to point me into the right direction to find out how to set this native media player (either initially or -hopefully- on the fly)?
Or am I just not doing it correctly by adding a videoview? At the moment I've got the overall program set to portrait mode only (the option in the IDE) and just initiate a videoview. Or should I use SetScreenOrientation explicitly instead, just before initiating a videoview?
Thanks
Eric