I have an issue with the android video controls. I have a video player that is half the height of the device and positioned at top:0
When the video controls pop up, they are positioned below the video player, thus covering the content below the video player. What I'd like to do is position the controls over top the video, but still at the bottom. The same way the iOS video player works.
Right now the controls are basically outside the height of the video player. When I was developing for Android natively, I ran into this same issue and it was fixed by using the setAnchorView
method in Java. I haven't seen anything like this in titanium. Is this even possible?
I tried wrapping the player inside a view and it produced the same result.
var deviceWidth = Ti.Platform.displayCaps.platformWidth;
var deviceHeight = Ti.Platform.displayCaps.platformHeight;
var vidPlayer = Ti.Media.createVideoPlayer({
width:deviceWidth,
height:deviceHeight / 2,
top:0,
backgroundColor:'#ffffff',
autoplay:false
});
win.add(vidPlayer);
Here is an image of what I am talking about